« first day (992 days earlier)      last day (3965 days later) » 

8:00 PM
@JerryCoffin yeah, Scotland has always been a slippery fecker :P
 
Can't you hear his voice when the gif plays?
 
> Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies. The specified module could not be found.
The file is right there ashdfasdlfasdhf
 
Woo!
My proof of concept works!
 
8:08 PM
For what?
 
Uh. CTRP and encodings and making it so I implement all the machinery outside of the actual encoding.
So you only have to write two functions: encode_one and decode_one
The machinery will take care of the rest (kind of like boost::iterator_facade).
 
user142019
 
user142019
> You Tube
 
Still haven't put validation in there, but who cares! I'm a game developer; since when do I need to be careful? :3c
 
user142019
That's… fucking unprofessional. :|
 
8:09 PM
@Xeo o.O
 
@ThePhD That's what I have as an implementation interface, but instead of CRTP or whatever, I just have two free functions...
 
@R.MartinhoFernandes Ooh, that... actually is very good. I never thought of it like that. o.0 Does the encoding just become a tag, then?
 
Um guys, can you help me with some assembly language basics?
I'm not sure where to start
 
encode_one ( codepointrange, utf8{} ); ?
@R.MartinhoFernandes ^ like that?
 
@ThePhD More or less. It has encode_one and decode_one, but that's not supposed to be a client interface.
 
8:11 PM
Sigh.
 
@ThePhD Ha, no. I mean encode uses utf8::encode_one.
 
@R.MartinhoFernandes Oooh. Um. I'm not sure I understand then. x3
 
That didn't make any sense.
 
Haha.
 
8:12 PM
encode using decode.
I was like "WHAT IS THIS NEXT LEVEL MAGIC?!"
 
Quick question. Which of these is better? And why?
{
    path = std::move(path_new);
    return;
}

{   std::swap(path,path_new);
    return;
}
 
Cool, that required VS2012 redist. Nice, helpful errors.
 
is there a way to emulate x86 processors?
 
Xeo
@ThePhD A recipe for Python 2 error messages.
 
@Mysticial Whatever makes more sense semantically.
And then again it's probably path = path_new;.
 
8:13 PM
@Mysticial If you are not keeping path_new, use the former.
 
@R.MartinhoFernandes Yeah, that's what I was thinking too. Since I'm returning immediately and path_new dies.
 
@Mysticial Better under what circumstances? The first more directly expresses what you're (apparently) try to accomplish. The second will work with older compilers.
 
Xeo
@R.MartinhoFernandes And if path_new is a by-value parameter or local var, both factually do the same, but the former is clearer on intent.
 
@JerryCoffin I'm just trying to an efficient move-assignment. C++11.
 
Xeo
8:14 PM
Btw, what's the type of path_new?
 
@Mysticial In that case, I'd probably prefer the first.
 
@Xeo A local variable.
 
Xeo
@Mysticial Wait, why are you implementing a move-assignment op yourself? :P
 
thx!
@Xeo I'm not.
 
Or ARE YOU?!
 
Xeo
8:15 PM
Ah, I read an "implement" into that sentence.
 
//  Rename it.
if (_wrename(path.c_str(),_path.c_str()) == 0){
    path = std::move(_path);
    return;
}
 
@Mysticial Of what type though? (My guess would have been std::string, but...)
 
Xeo
My bad
 
Moving is so needed here.
 
8:16 PM
What?
 
> Operation 'ForUserSignup' in contract 'IAvatarService' has a path variable named 'id' which does not have type 'string'. Variables for UriTemplate path segments must have type 'string'.
WCF sucks.
 
Is there a way to emulate a x86 processor? I'm on an amd x64
 
Xeo
Virtual machine
 
@JosephPotts Run it in 32-bit mode.
 
8:18 PM
you can do that? :O
 
Well yeah...
 
@JosephPotts Yes - run a 32-bit OS.
 
You can run x86 programs on x64.
 
So say I install Ubuntu, I should select the 32 bit option?
 
On Windows, you can even do it through a 64-bit OS.
 
8:19 PM
So I can start with assembly language on my 64-bit processor
 
@JosephPotts What for?
x64 is a superset of x86.
 
Most assembly language books i'm looking at say to only use x86 processors, so I ask
 
Also waste of time.
 
Well yeah but I wasn't sure whether it would work
 
@JosephPotts At least AFAIK, most 64-bit OSes provide a 32-bit mode, so you can run 32-bit executables on them (Windows certainly does).
 
user142019
8:19 PM
FUUUUUUUUUUUUUUUUUUUUUUUUCK
 
user142019
Stupid YouTube y u stop video halfway through you piece of shit.
 
posted on July 04, 2013 by Jim Hogg

If you have arrived in the middle of this blog series, you might want instead to begin at the beginning. This post examines Constant-Folding – one of the simplest optimizations performed by the VC++ compiler.  In this optimization, the compiler works out the result of an expression while it is compiling (at “compile-time”), and inserts the answer directly into the genera

 
Alright, thanks guys :)
 
Constant folding requires a whole article?
 
Curious, do any of you know assembly?
 
8:21 PM
@JosephPotts I've used several different assembly languages at times (including x86) but not much recently.
 
How would you say your experience was?
 
What do you need assembly for?
 
@JosephPotts That's a pretty open-ended question (enough to occupy a couple of large, very boring, volumes).
 
0
Q: can i post a question already posted on travel.stackexchange.com to stackoverflow.com

Anmol SarafIn case I haven't received any answers for a question at travel.stackexchange.com, can i post it at stackoverflow.com as it has a bigger community. Are there chances of getting it a off topic flag if it is not related with programming and more specific to travel related. Thanks in advance !!

 
I'm interested in the challenge
 
8:23 PM
Travel and programming aren't the same thing. So NO. — Tony The Lion 14 secs ago
 
It's just as challenging like beating someone to death with a spoon.
Tedious, uninteresting and impractical.
 
So yeah, very challenging then :D
 
Listen to the wise Cat
don't kill yourself trying write assembler, that's what compilers do
 
Dafuq is it with the fireworks. This is not the fucking USA.
 
Now for the question of the day, why does this project reference Entity Framework.
 
8:25 PM
How would we know?
 
user142019
 
user142019
Pretty easy. :D
 
dat spoon
 
Ell
Hi guise
 
@Mysticial: Just for what it's worth: a few years ago at the Golden Gate Bridge, the women's room was closed for cleaning, so women were lining up and using the men's bathroom. Slowed things terribly, because (almost) nobody could/would use the urinals.
 
8:25 PM
@R.MartinhoFernandes There were fireworks here, too.
 
That's a ridiculously big spoon
where'd you get it?
 
@JerryCoffin lolwut
 
@JerryCoffin Why couldn't you?
 
It's still light here
 
8:26 PM
@R.MartinhoFernandes Well, I suppose you could, but almost nobody would.
 
Hah, it's not even referenced, just installed via NuGet.
 
user142019
switch f := function.(type) { … }
 
@Mysticial Seriously. Nearly the only time I ever had to wait in line to use a bathroom. Funny part was a couple of women in line ahead of me complaining about the wait, and saying they just shouldn't let men use the bathroom at all until the women's room was open again.
 
user142019
Go syntax, we need to talk.
 
8:28 PM
@JerryCoffin WTF
 
@JerryCoffin wow...
 
How can you say that with a straight face?
 
user142019
@JerryCoffin Piss in their mouths so the stop complaining.
 
user142019
Problem solved!
 
8:30 PM
@R.MartinhoFernandes I can pretty easily, because I'm just telling you what happened. How they could...well, let's just say that republican vs. democrat isn't the only way in which people in this country have gotten so polarized that they get completely unreasonable at times (or, in a few cases, at all times).
 
@JerryCoffin Man, politics...
dayum
 
Bye guys, thanks for the help :)
 
> It's a bit like the old joke about the guy looking for his wife's wedding ring -- looking under the street light because the light's better, even though she lost it 100 yards away.
oh @JerryCoffin
 
@TonyTheLion Of course, this being in San Francisco, it's also entirely possible that one (or both) of said women was physically male (though people at the bridge are mostly tourists, not natives).
 
> People who play with bits should expect to get bitten.
LOL
 
8:34 PM
@JerryCoffin Right, well I haven't made it to San Francisco yet, but having been to LA several times, I can believe you.
@Jeffrey dat pun
 
@TonyTheLion IMO, SF is a better visit. There's an old line about LA that "when you get there, there's no there there." I think it's pretty accurate.
 
@JerryCoffin I've heard a lot of positive things about SF. I don't mind LA for visiting, mostly because I have some great friends there.
 
LA is basically 1000 giant suburbs in close proximity, but not much that's really interesting. SF is a lot more interesting (IMO, of course).
@TonyTheLion Visiting friends who happen to live there is a whole different story.
 
I liked Seattle a lot.
 
Seattle is fun.
 
user142019
8:39 PM
Hmm, no idea how to represent try/catch/finally blocks in bytecode.
 
I'm in Redmond, next to Seattle right now.
There's an awesome Sushi place in Bellevue too.
 
I should come say hi next time I'm there
 
@TonyTheLion I haven't been there in years, but when I visited Seattle I thought it was awesome.
 
Run by like, 1 guy and his son.
 
user142019
Maybe something like RegisterCatch, RegisterFinally, UnregisterCatch and UnregisterFinally instructions that take offsets as their operands.
 
8:41 PM
I think try, catch, and finally are just scope-defying gotos @rightfold.
So if you've implemented goto, you can do those.
 
@JerryCoffin I can only begin to imagine what some other places are like.
 
Ok, I'm not walking into the Javascript room ever again.
2
 
@Jeffrey what happened?
 
@ThePhD There's a little more to it than goto with scope. You have to match the thrown type to the caught type and destroy locals on the way up the stack, so you want an efficient way to find/destroy locals, and to match a thrown type with the types that can be caught at any point.
Though of course you're generally more concerned about efficiency of the main code than of catching.
 
8:44 PM
Catching is almost always an extremely expensive process, so.
 
Not really.
Also finally always executes.
Even if try block uses return.
 
@TonyTheLion I went there to ask to stop flagging bullshits and they all began arguing about this sexist comment that got flagged and it was like "That comment was sexist" and the others: "Grow up". And then "But it was sexist". "You should grow up". And again and again. And I was like: 0.o, slowly moves towards the exit.
 
@CatPlusPlus I had a professor once who argued this point vehemently with me, even after I explained him the concept of resource acquisition and release
 
.... Oh, dear...
I had forgotten this would be a consequence of what I'm doing...
 
he corrected himself in the next lecture after reading up on the subject, but still wouldn’t accept that this behaviour made sense
 
8:45 PM
@Jeffrey oh gawd. What a bunch of children
 
It's more of a after wrapper than goto.
 
It's like a come from!
 
Please.
 
@CatPlusPlus finally doesn't always execute! thedailywtf.com/Articles/My-Tales.aspx
 
auto mystr = "Arf arf arf"; <-- this is always const char* or const char[n]
decode ( mystr ) // What the fuck am I supposed to do to make this gel nicely? =/
 
8:47 PM
@ThePhD Uh, what?
 
I have no way of figuring out the encoding and decoding that string into a collection of charcodepoints.
The best I can do is assume [unsigned] char is utf8, and wchar_t is utf16/32 (windows/linux). :c
 
Xeo
@ThePhD Hey, guess why unicode support sucks in C++!
@ThePhD char const*
 
q_q
 
Ugh, don't.
 
my TV is updating software
 
8:48 PM
Don't make assumptions your ass can't cash.
 
Wait, that's the wrong second half.
 
Xeo
lol
 
Lol.
 
Xeo
How'd the quiz go, btw?
 
8:48 PM
Terribly.
 
@ThePhD Ugh.
 
@CatPlusPlus What else can I do? ;~;
 
The best you can do is take the goddamn encoding info as an argument.
 
Okay. :c
 
Esp that you should never use wchar_t anyway, and char* being a binary blob is perfectly fine as storage for encoded UTF-16/32.
 
8:51 PM
More like UTF-16?E/32?E then.
 
And there we go again...
 
;~;
C++ y u suck at your job? ;~;
 
@Borgleader wazzama joke
 
I have a class buffer_view<T> that allows looking into arrays, std::arrays, and std::vectors in a fashion of non-owning look-at-and-modify mechanics. If I wanted to have a factory function that made buffer_view<T>s, would I call it make_view or view ?
 
make_buffer_view
 
8:54 PM
make_class_name is convention
 
make_buffer_view is a mouthful, though. I'd have more fun doing buffer_view<T>( container ); then make_buffer_view( container );
 
What's the extra & at the end of C& operator=(const C&) &?
For a copy-assignment operator.
 
@Mysticial lvalue-only qualifier.
It's like post-const on a class member function, except it says "this function only works with lvalues"
 
So the parameter you pass in must be an lvalue?
 
No. More like *this (that's an abuse of language).
 
8:56 PM
@StackedCrooked cool technique. I can use that sometimes
 
It means it is called only when lhs of assignment is an lvalue.
 
The type you're using operator= on has to be an lvalue.
 
@Mysticial It's a modifier on *this.
 
C() = x; would not be valid.
 
@R.MartinhoFernandes ahhh
thx
 
8:57 PM
@StackedCrooked It isn't. /cc @sehe
 
@sehe It totally flew over my head, I can bearely contain my embarassment
 
@ThePhD The point is to hide the type behind inference.
 
std::common_type is unique in that it can be specialised by the user.
Don't use it for anything it wasn't designed for.
 
I'm looking at the rule of 5 here. And it has:
C(const C&) = default;
  C(C&&) = default;
  C& operator=(const C&) & = default;
  C& operator=(C&&) & = default;
  virtual ~C() { }
 
@Borgleader I see what you did
 
8:58 PM
So if I wanted to make a move-only object, I omit the copy constructor and the copy-assignment constructor?
 
Follow rule of zero.
 
@CatPlusPlus True enough, I guess. I'll guess I'll have view as a shortcut function. <3
 
Omit, as in, don't implement, and force the linker to fail if they are invoked.
 
@Mysticial You best just delete it and screw all the bullshit of that rule of 5.
Everybody knows that only Rule of Zero is true.
o/
 
@ThePhD You're going the same way all those using namespace std; idiots go.
 
8:59 PM
@Mysticial Rule-# works at compilation time.
 
@CatPlusPlus Can't, my destructor needs to close a file handle.
 
@Mysticial Is your class a file handle?
 
@CatPlusPlus yes
 
@CatPlusPlus But... but it's nice ;~;
 
It's quite literally a wrapper of a filehandle.
 
8:59 PM
view( container ); // SO SHORT AND SWEET <333
 
If you want it move only, mark op=(const T&) and T(const T&) with = delete.
 

« first day (992 days earlier)      last day (3965 days later) »