« first day (1308 days earlier)      last day (3649 days later) » 

user3010322
7:00 PM
void* f = ...;
std::size_t arf = f; // what's the necessary cast?
 
reinterpret_cast
 
user3010322
Ah. Okay.
 
@ThePhD C-Style, what else?
 
This entire answer (particularly as it begins with the ridiculous "If post is incorrect, then it's [sic] score is irrelevant") is predicated on the assumption that you know best. That you alone must be right, and all those upvoters must be wrong. That's offensive, and bigoted. This is a community. If you think more debate needs to be had on the merits of an answer, then you should try to draw attention to it and engage people. You shouldn't stomp in going "I KNOW BEST" trying to delete everything. How do you know you're right? Who are you to decide that for everybody? — Lightness Races in Orbit 1 min ago
fucking hate that attitude some people have
very American attitude. closed-minded. unable to see past ones self.
@EtiennedeMartel ?
 
7:03 PM
@LightnessRacesinOrbit We're wondering if our games might be violating their patent of theirs.
 
@BenjaminGruenbaum That's nothing :) This answer is still the accepted answer, at -5 :) I flagged this for mod attention when I found out it was wrong (jan 4th). It has gotten 3 downvotes since. — sehe 6 secs ago
 
@EtiennedeMartel $3.7k per title. Nice.
 
@LightnessRacesinOrbit Such stereotypes.
 
greetings.
 
@LightnessRacesinOrbit Pardon me for saying this, but how can you call an attitude you claim you hate "American" while bashing that same attitude for being bigoted?
 
7:05 PM
@EtiennedeMartel yep, turns out the stereotypes fit! :P
@Avery What do you mean?
 
user1804599
lol @ taking people serious
 
@LightnessRacesinOrbit You're contradicting yourself. I'm not sure if you're trying to be ironic or something though...
 
@Avery If you're saying I'm working in meaningless generalisations, then you're absolutely right (welcome to the Lounge :P). I don't think you know what "bigoted" means, though.
 
There's plenty of wrong/crappy answers that are highly upvoted
 
@Avery I'm not contradicting myself.
 
7:06 PM
Voting on SO means nothing
 
@LightnessRacesinOrbit I may have thought of the wrong word in the instant.
 
@Avery Don't waste your energy
 
ITT using the word "American" automatically means you're using whatever attitude you're talking about, even if it bears no resemblance to your actual attitude
@Avery He's right; @sehe learnt the hard way that you cannot win!
@CatPlusPlus Not to mention the auto upvote people give questions just for having been posted
 
@Avery He's a smarmy cunt.
 
Now that's just stepping over the line.
 
7:13 PM
Seriously?
 
Leave it
 
Yes, seriously. Behave yourself.
 
user1804599
No, be naughty.
 
I've got a lonely dog on my lap.
 
user1804599
I like the naughty. :3
 
7:14 PM
@rightfold or nice!
 
Being nice is boring and you don't get anything
 
@LightnessRacesinOrbit I should have probably used a stronger example, the Angular one is stronger but I finally reached its author and got him to remove it.
 
Maybe it's because "cunt" isn't seen as very offensive 'round here.
 
hmmm
Bloomberg recruiter, I'm getting a strong feeling of "moron".
 
@DeadMG You should instead get a feeling of "potential money".
 
7:16 PM
what are the symptoms
 
@LightnessRacesinOrbit It is suggesting a feature that was suggested in a pull request (but never actually accepted), because of it and a blog post, a lot of people (like thousands) have a statement in their code base that does absolutely nothing and they believe it helps with cross domain requests. The JS type system didn't help here either since they also got no warning for setting an undefined property.
 
@BenjaminGruenbaum That JS OP should show up; he's been active so I poked him again in comments
 
I believe the two are not mutually exclusive.
@ScarletAmaranth Wants to hear my thoughts on "the new C++11".
 
@EtiennedeMartel Here it's about the only swear word left that's still seen as actually intended to be offensive to someone
 
@BenjaminGruenbaum :lol:
 
7:17 PM
@LightnessRacesinOrbit Well, then, I apologize.
 
I mean, I'm glad that he wants to discuss it, but not feeling so reassured about the bad grammar and the not-very-newness of C++11.
 
@EtiennedeMartel I accept your apology, sweetheart.
 
@DeadMG Did you tell him you're happier about it than the old C++11?
 
@LightnessRacesinOrbit Let's make out.
 
hah
 
7:17 PM
I'm glad you didn't get suspended. giggle
@EtiennedeMartel No.
 
I haven't replied yet.
 
@DeadMG tell him: "C++11 o_O?"
 
@BenjaminGruenbaum What was the post
 
is it that new fancy thing that college kids use these days?
 
"Wouldn't you rather hear my thoughts on C++14 and on how C++17 is progressing? C++11 is old now."
 
7:18 PM
@LightnessRacesinOrbit there's not too much to have thoughts on in there : - \
 
@ScarletAmaranth Yeah but the Bloomberg cunt doesn't know that
 
"C++11? Isn't that what the old coffin-dodgers used back in 1965?"
 
except for: yada yada polymorphic lambdas they can now make a templated operator()()
 
@CatPlusPlus I found it at +25 and 0 upvotes and was like "huh? I remember discussing that PR when it was made years ago, I clearly recall it never making it in."
 
7:18 PM
> Just setting useXDomain to true is not enough.
Ahahah
No shit
 
It's like: code.makeFaster = true;
 
code.GiveBlowjobs();
 
Aaaa the device lives
 
g++ -O4
 
@BenjaminGruenbaum leads to speed-of-light violations. You want code.makeFast = true;
 
7:21 PM
@ScarletAmaranth Sure you don't want g++ -O9 for extra-awesomeness?
 
@BenjaminGruenbaum: How come these people say it works, then?
 
@Edward phew
 
Oh, because it's removing the header that does it?
Or summat
nm I don't care suddenly
 
g++ -O2^^^10
 
that produces a beautiful shimmering 0 that ascends to heaven before running
but it certainly was optimized
 
7:31 PM
ttyl ladies
 
user3010322
0x1 is an invalid address for everything except a byte, right?
 
not really
 
@ThePhD improbable
 
depends on architecture
 
user3010322
Hm.
 
7:32 PM
aside from the fact that it's clearly derived from a null pointer
 
user3010322
I'm trying to depend on that improbability.
 
but on some archs like x86 you can issue unaligned loads and stuff.
so there's no guarantee that a pointer with an alignment of 1 cannot be an int.
 
@ThePhD gosh. don't tell me you're trying to hide information in the LSB
 
or a bool for that matter.
@sehe LLVM already has a class for doing that and it's better.
 
much better yes
 
7:33 PM
I usually hide my special code behind nullptr
Hmm. it was there a minute ago...
 
They use it for -fsanity=undefined etc.
 
@melak47 Congratulations :)
 
nah
they static_assert the alignment of the type.
some LLVM types are intentionally overaligned to make room in the pointer.
 
@FredOverflow thanks :)
 
apparently, this is a substantial optimization for them.
 
7:35 PM
@melak47 So how awesome is it to have stack overflowers as colleagues? :)
 
user3010322
Mmm. Well, I have a std::vector<Primitive> stuff;. To identify which primitive is hit, I return a reference to it (and then take its address) (stuff never resizes once this begins). My multi-sampling algorithm stores a pointer per each pixel traced. It then compares that pointer to its neighbors to see if a different primitive was hit.
 
user3010322
If there is a change, then it triggers that pixel for multisampling. The problem gets more complex with things like Shadows and Refractions, however.
 
user3010322
So, I change from storing a pointer to storing a char* that has the same address as the referenced primitive... only, when I detect a shadow was hit, or when I detect a refraction happen, I increment that pointer by 1.
 
user3010322
I'm not accessing that pointer directly. Just using it for comparisons.
 
@ThePhD If you want an "impossible pointer", you could use 0xffffffffffffffff. No object could live there, because for any object pointed to by a pointer p the one-past-the-end-pointer p+1 must also be a valid pointer. Which it clearly wouldn't be for 0xffffffffffffffff.
 
user1804599
7:37 PM
nullptr
 
@FredOverflow pretty cool :)
 
user3010322
The size of Primitive is some 16 bytes, so my thinking was that I had some 16 extra "flavors" I could place on a potential primitive.
 
@FredOverflow Why shouldn't 0x0 be a valid pointer?
 
the size is irrelevant
only alignment can grant you space in the pointer to use for other purposes.
 
nullptr isn't necessarily 0
 
7:38 PM
@Deduplicator Pretty sure p+1 must be greater than p.
 
@FredOverflow You haven't considered all the downsides yet, have you? Every time you screw up on SO or chat, it will be round your entire office in milliseconds:) Luckily, your work screwups will be protected, (to some extent), by your NDA.
 
pretty sure that pointer overflow is certainly not defined in Standard
 
@Deduplicator because...nullptr? :S
 
but I think that it would work intuitively as an "end" address.
 
user3010322
Primtive* x = ...;
++x; // Should increase the integer value of the pointer by at least sizeof( Primitive )
 
7:39 PM
There's no such requirement for pointers past the end of objects, AFAICR.
 
ah, there is.
pointers are random-access-iterators.
 
user3010322
^ I was depending on the idea that the byte-address values between x and x + 1 above would be something I could use to distinguish it.
 
and RAIs certainly do not permit overflow.
and operator< (and friends) have strict SWO semantics.
FredOverflow is right.
 
user3010322
Is that a bad idea?
 
hm
it should be legal
but it's confusing as fuck.
 
7:41 PM
So, I got some Tina Turner stuck in my head. Anybody has a cure that doesn't involve destroying said head?
 
@DeadMG Searching for a quote.
 
Think of an even more annoying song...
 
user3010322
 
@Edward Celine Dion seems overkill.
 
7:42 PM
@EtiennedeMartel I forgot to say, "and don't tell us what you've chosen"
 
@Deduplicator Actually, there is, see [expr.add] §4:
> For the purposes of these operators, a pointer to a nonarray object behaves the same as a pointer to the first element of an array of length one with the type of the object as its element type.
 
hey ho
 
@Edward Aaaaaa neeeewwww daaaaayy hhaaaaaaas cooooommmeeeee
 
damn you
 
Featuring her face
 
7:44 PM
@FredOverflow Doesn't prove the point. At most it seems tangential
 
Hm, then I may have misunderstood you.
Anyway, I don't think pointer additions are allowed to overflow.
But that's just my gut speaking.
 
(All of this was a ploy to put some Céline in here)
 
Ah, it's the last words of the next §.
 
@EtiennedeMartel don't let me into my zone
 
Le epic.
 
7:47 PM
 
@Deduplicator So does that imply no object can live at 0xffffffffffffffff, or does it simply mean p+1 is illegal for such an object?
 
hmm
 
ooh, I just realised, if I come to the unconference, I can bring more candy for @thecoshman :o
 
if I have a unique_ptr<T>, is it safe to do ptr->func(std::move(ptr), ...);?
 
What you guys are going to do at the unconference?
Maybe I should read the wiki.
 
7:49 PM
@Jefffrey I'm gonna be fapping because I won't be there.
 
@Jefffrey No clue. Let me know if you find out :D
 
> A bunch of us are finally meating in meetspace.
nice one
 
@DeadMG Depends on a simple question: in f(x), is f guaranteed to be evaluated before x is passed to f?
I'm sure it would make a nice SO question.
 
@FredOverflow No Object can own that last address, because the address one past would overflow, which is forbidden.
 
#define SILLY_PTR ((void*)0xffffffffffffffff) is is, then :)
 
7:52 PM
@EtiennedeMartel Should I add you to the confirmed no?
 
would it be legal for that value to represent the null pointer then? :)
 
HAHA VICTORY I CAN ISSUE COMMANDS VIA BLUETOOTH
 
Doesn't take much to excite you.
 
@CatPlusPlus I won't be impressed until you hack a Bluetooth toothbrush to actually give you blue teeth.
 
That means I'm done reverse engineering the stupid protocol and can start writing what I'm supposed to
 
7:54 PM
...
 
the two usb ports on my laptop are too close to each other and I can't connect both my 3G modem and my mouse :(
trackpads suck
 
And the BT stuff is done via DBus, so I don't have to write any shitty low-level glue either!
Probably
 
@jalf Sure thing.
 
@FredOverflow God bless Wide's strictly defined evaluation orders.
 
@jalf :'(
 
7:58 PM
2
Q: In f(x), can x be evaluated before f?

DeadMGI have a C++ program. This program does something like this: std::unique_ptr<T> obj = /* some init */; obj->memfunc(std::move(obj)); Is this guaranteed to be valid, or can I end up calling a member function on nullptr? Standard quotes applicable. I know that the order of evaluation of the argu...

go go Captain Gratuitous Standard Quotes.
 
Gratuitous Standard Quotes rules are in effect- upvotes are directly proportional to how much of the Standard you can quote as relevant. — DeadMG 43 secs ago
I'm sorry, I just love GSQ.
 
It's guaranteed not to be valid if memfunc modifies the object, as per the classical §5/4. No?
 
it's hilarious
and I love those guys who named their game Gratuitous Space Battles.
it wasn't that great of a game, but it was incredibly well-named.
 
move doesn't move
 
8:04 PM
everybody knows that by now
vOv
 
Oh, right. Then it's guaranteed to be valid.
 
@FredOverflow Dat thumbnail
 
@CatPlusPlus This is the kind of talk @DeadMG's parents should have with him.
 
user1804599
8:11 PM
How the fuck do you get the tabs below the address bar in latest Firefox?
 
you're assuming it's possible
 
Why would you do that
Also probably user CSS
 
user1804599
@CatPlusPlus My father wants the old look back.
 
user1804599
He just updated after like two years, lol.
 
You could turn off the tabs
 
8:18 PM
The tabs were below? I don't even remember
 
0
A: Simplest way to read a CSV file mapped to memory?

seheHere's my take on "fast enough". It zips through 116 MiB of CSV (2.5Mio lines[1]) in ~1 second. The result is then randomly accessible at zero-copy, so no overhead (unless pages are swapped out). For comparison: thats is 2.5x faster than a naive wc csv.txt takes on the same file i...

Moar Spirit wankery. I love boost::string_ref
 
I have to do some assignment in a team and since nobody was doing anything I decided to be the lead; gave everyone todos that were really asking them to write 3 sentences about themselves and a function that can be as simple as the area of a square
they said they'll do it sometime during the next 3 days
fml
 
3 days? uh oh
 
you are so bad at asking questions :P
 
8:21 PM
yeah it was implied, not stated.
 
user1804599
@FredOverflow Do compilers optimise the recursive version to the iterative version?
 
@AlexM. school, me hopes?
 
@AlexM. You're a sucker for taking lead
 
yes, this is a very important assignment to me because if I manage to finish them all I won't have to take the written exam
and I so don't want to take a written exam in HCI
 
Do it yourself and kick others from the team
 
8:25 PM
Or write 3 alternative sentences about each person. :)
 
we're supposed to rate each others' activity and if something seems weird the prof will jump in and rate it herself by asking us questions
 
Which you'll use if they fail to do their own
 
I don't have time to answer questions either
 
Rate everyone 0, stop caring
 
that would seem weird :D
I'll just wait until Sunday
 
8:26 PM
@AlexM. Or you could simply keep a running list of what each team member accomplished.
 
hopefully I'll get something from them
 
You'll end up doing everything yourself and they'll benefit. Sucker :v
 
still better than having to go to an exam though
 
whoah 12 upvotes already?
 
@AlexM. what motivation do they have to participate?
 
8:26 PM
I've taken a look at the slides, it's all a bunch of bullshit
@Edward I think it's the same
good point, I should remind them about it
 
user1804599
Everything is a bunch of bullshit.
 
@DeadMG Last one was mine
 
Some is just more densely packed.
 
@rightfold inb4 Everything is terrible.
 
user1804599
Almost everything is terrible.
 
8:28 PM
Almost?
 
Sex. Not terrible.
 
user1804599
Sex is what I don’t have.
 
user1804599
But I’m an example of what is not terrible.
 
user1804599
But I am part of everything.
 
Explain?
 
8:29 PM
my fingers hurt now, using a trackpad is not only annoying but also painful
damnit
 
@TonyTheLion Everything is terrible
 
trackpads are terrible
@sehe lol
 
user1804599
I have used my trackpad for two years with joy.
 
user1804599
It works great.
 
@rightfold ... and everything is a bunch of bullshit. Thus completing the cycle.
 
user1804599
8:30 PM
Time to get food, browse clothing shops, sleep and fap.
 
You didn't have a lot of it yet, then :/
It has good parts too, which is why we keep doing it
@rightfold dat order
 
Thus, we can conclude from this "delightful" conversation: Everything is terrible and bullshit, except if you're Rightfold
 
user1804599
@sehe It’s an unordered list.
 
@sehe You're doing it wrong. :)
 
@rightfold And I'm all out of fap
 
8:31 PM
we can safely replace 'sex is not terrible' with a class further up in the hierarchy though
 
user1804599
I’m not.
 
satisfying any need is not terrible
 
user1804599
Been fapping for nine years straight.
 
user1804599
Never not liked it.
 
practice makes perfect
 
8:32 PM
Farts
 
ITT Rightfold's faphits
 
user1804599
cat i fap to your farts
 
an unusual fetish, Dr. Freud...
 
I use farts whenever I'm waiting for someone to come to me and I've no more patience
 
nothing is unusual on the Internet
 
8:33 PM
You're right. There's probably a youtube channel devoted to it
 
it's almost 100% guaranteed that when you fart, someone will randomly show up just to make you feel embarrassed
 
user1804599
@AlexM. The doctor uses farts whenever he’s waiting for someone to come to him and he’s got no more patients
 
in Trash can, 4 mins ago, by Mentee
stackoverflow is the best site to get laid
got flagged in the trash can ^
 
Awesome
 
SO is a terrible place to get laid
 
8:34 PM
@rightfold lol
 
Bah audit messages tricked me into joining C# room
UGH
 
You moron.
 
wash your hands
 
so, are you { get; set; }-ing yet?
 
@Edward Oh come on. You have a npn transistor symbol as avatar. Either you're old enough to predate hippies, or I'll speak to you in 15 years :)
@TonyTheLion Not really. I invalidated that when it was still in the C# room
@AlexM. happened to me today. Not the sound. The smell. Oh god. That's killing
 
8:40 PM
@sehe Been married for over 20 years. It ain't old yet!
 
@Edward Ok. Opinion granted. :)
 
user1804599
I won’t ever be married.
 
I'll marry when I decide it's time to get an inheritor
until then, nah, I just don't feel like giving someone else any of my time
 
I'm resisting the urge to make a shared_ptr joke...
 
this 3G modem takes me way back
I have to pause vids to let them load upfront a bit
dat 240p
 
8:48 PM
I still have an acoustic-cup 110 baud dialup modem around here somewhere...
 
I wouldn't have to use it if my router worked fine
my mother is visiting and I'm stuck using the only keyboard that does not make noise: the one on my laptop
desktop keyboard 2mechanical4her
she came to see the doctor about this: britannica.com/EBchecked/topic/382525/milk-leg so it's all worth it if she gets better
 
@Edward I haven't kept it. But I still have my ISDN box (which you could use to join two external lines to get 2x 56k6bps).
 
Probably worth as much as my Novation Cat. lol
 
user3502455
hi
 
user1804599
Hello.
 
8:54 PM
Has anyone here recently tried to use crosstool-ng to build g++ version 2.9.0?
 
user3502455
sup
 
user3502455
no
 
Guess I know what I'll be fiddling with all weekend...
5
 
user3502455
what
 
8:57 PM
building g++
But it is kind of fun that the starred quote will be entirely out of context in a few hours. :)
 
That's why it's starred
 
Of course
 
Guess what version is this
 
Fibonacci, also boring
 

« first day (1308 days earlier)      last day (3649 days later) »