« first day (1588 days earlier)      last day (3362 days later) » 

11:00 AM
like loading save states :P
 
@thecoshman yea
 
@NeelBasu sounds terrible
 
user1804599
@NeelBasu use boost fusion
 
@thecoshman Hmm. I cant use serialization because I may need to do the same for tiny sensors where C is the only way
 
user1804599
it can create isomorphisms between structs and tuples
 
user1804599
11:02 AM
and tuples can be iterated over
 
But how can I let the other end know what types this tuple have ?
 
@NeelBasu 'enum' isn’t used for this meaning in C++-land. You can have a look at Boost.Variant; or, since you mention POD types, use a union (coupled with a tag).
 
the other end may be tiny sensors where C is the only way
 
@NeelBasu you need to specify that somehow and document it
dunno, [header size| tuple_size | n * [type_identifier] | data_size (in elements)][data]
 
Why is attracting new users a goal in itself? This isn't a social gathering. — Josh Caswell yesterday
damn fucking right
 
11:04 AM
@LucDanton If I do Boost.Variant today it will be hard to implement the same with other languages
@BartekBanachewicz what is that type_identifier ?
 
@NeelBasu As opposed to what? What will be easy?
Also you should have started with all your requirements up front. Makes it easier to give a suggestion.
 
@LucDanton What if I use some fixed enums to identify each type and keep one bit for signed/unsigned ?
 
@Mysticial write once, read many -- Stack wants to attract the right kind of users. Those who have questions, sure, but mostly the experts who can provide answers. So it is true to say that Stack wants to filter its users a bit. If all you want is a quick answer fix, no need to log in, just read what is already there. If all you want is new users, at any cost, of any quality, it is doubtful any experts would stick around. — Jeff Atwood ♦ yesterday
Jeff is so out of touch he's calling the network "Stack"
 
@NeelBasu dunno, a character? 'F' for float, 'D' for double, etc
 
Did you notice when I mentioned a tagged union?
 
Xeo
11:06 AM
Damn this is getting frustrating - now one part works, and another stops working.
 
@BartekBanachewicz kind of I may use 0x1 for ints, 0x2 for floats etc .. also
 
@Xeo in/for/with what?
 
@NeelBasu Read again Luc's comments
 
@LightnessRacesinOrbit uh oh
 
@BartekBanachewicz I presume you are trying to say that is a list of type_identifiers
 
11:08 AM
w/e
 
Xeo
@thecoshman Work game
Works in editor, doesn't afterwards.
This is so weird
 
@Xeo what's different between the editor and the standalone
doesn't standalone need baked resources?
 
Xeo
Lots of things, apparently
 
I liked this post until you encouraged murdering defenceless animals. You animal. — Lightness Races in Orbit 11 secs ago
An American, go figure.
 
Xeo
It's kinda the same environment, and kinda completely different
so frustrating
And there's exactly one other post on this issue - with just a workaround provided.
 
11:11 AM
TIL about programmers.se history.
85
A: How can I encourage Stack Overflow to rein in the 'subjective' vigilantes?

Yannistl;dr We already tried supporting those questions, we even gave them their own site. Sadly, it didn't work out. C'est la vie. In 2010, a Stack Exchange site called Not Programming Related came out of Area51, the Stack Exchange staging zone. NPR was supposed to be a site where questions that ...

probably old for all of you but I wasn't around in 2010.
 
I hight Lightness
 
@Xeo proprietary shit?
 
> Programmers and Stack Overflow may overlap significantly, but they are also crucially different:
>
> - Stack Overflow moderators are psychotic lunatics,
> - Programmers moderators are paranoid psychos.
 
@MSalters There's enough leeway in the size of the standard types and enough implicit conversions that I'd bet that for just about any non-trivial C program there's a choice of legal integer sizes that will cause it to do the wrong thing or cause undefined behavior. — Doval 17 hours ago
 
@Rapptz I still feel a vague of disgust whenever p.se is mentioned.
 
11:14 AM
@LightnessRacesinOrbit thoughts on mentalist final?
 
@Rerito sad
that final revelation was unnecessary
 
(I still have to watch the 13th)
 
it was okay - production could have been improved slightly. one of my favourite aspects of Iron Man 3 is that it starts and ends with voiceover, like it's telling a story with a point to it. the Mentalist finale could have used that I think
some snappy final comments from Jane as the wedding party continues and the screen fades
I also got confused by the over-credits voiceover saying "stay tuned for scenes from our next episode" lol
@Rerito oh.
 
I feel that they planted seeds (especially during season 5/6) they left unexploited
 
@Rerito top tip: don't solicit spoilers!
 
11:17 AM
(I know they get married my brother spoilt it)
 
@LucDanton Reading the scope of the site seems more confusing than SO.
 
Even reading their "intro guide" for SO users is a bit odd.
They say design questions are bad in the question body but the help center says it's okay.
 
welp
 
Anyway, I'll watch it when commuting back from office this evening :p
 
11:20 AM
Is there a term for "static polymorphism using SFINAE instead of CRTP"?
 
@Rapptz MichaelT is just a guy
 
@LightnessRacesinOrbit It's featured and it's .
 
@Rapptz sod it
 
@Rapptz not to my knowledge
 
@Rapptz "shite"
Why is a message "done" starred?
 
11:21 AM
I don't know.
@LightnessRacesinOrbit -1.
@LucDanton I'm thinking of doing it. Bad idea?
 
@LightnessRacesinOrbit The person that asked for whatever was done "upvoted" it, I guess.
 
silly people
 
@Rapptz Finding a term? Nothing wrong with that.
 
Oh I meant the actual design.
 
@LucDanton heh
 
11:23 AM
guys
 
Sure, why not. I don’t use CRTP very often.
 
can ln -s work recursively OOTB?
 
SarcasmDetector<Rapptz>--
 
Hmm..
 
@BartekBanachewicz That doesn't make sense, does it?
 
11:23 AM
welp I suppose not
 
Not because it’s undesirable or flawed, but I find it very specialised.
 
@R.MartinhoFernandes there's an lns utility that has -r option
 
and incidentally that's what I need, I think
 
@BartekBanachewicz What does it do?
 
11:24 AM
@R.MartinhoFernandes creates a "faux-copy" where each file gets a related symlink
then it would allow to replace some of the links with new content
and that's what I'm trying to achieve
 
a folder that works like another one with just some of the things changed
 
@LightnessRacesinOrbit Answer is fairly good.
 
find and xargs, I guess.
 
without copying the contents of the first one, because it's an SVN repository
@R.MartinhoFernandes or I can see if that lns utility is available for cygwin
derp, nope. Maybe I can build it from sources
 
No flash.
@LucDanton Not sure. I find it a bit odd. To be more clear I'm thinking of doing things like template<typename T, typename U> struct my_stuff {} and then doing some SFINAE based on the template parameters to enable some extra functions or removing some. I've done it before but this is the first time I've thought about it in the 'polymorphic' sense I guess.
Maybe it's too late and I'm spewing nonsense. That's a possibility too.
 
Yeah I do that. It’s bread & butter for ranges for instance; filter_range<R, P> can only be double-ended if R is.
Which means a lot of template<typename D = void, Blarg<D>...> noise sadly.
 
1
Q: Can select() be used with blocking sockets?

rony_tI want to use select() to monitor if a socket has data to be read, but I do not want to use non-blocking sockets. So can select() be used with blocking sockets? I am using Windows.

 
Love how you're using a linux man page for a question about WinSock.
 
11:41 AM
@Rapptz oh shit
will fix it in a minute
 
> We've become aware that you were refunded twice for your order xxx-xxxxxxxx-xxxxxxx. We're sorry about this and to redress the issue, we'll charge your card again in the next 2-3 days, to recover the incorrect refund.
 
They're sorry about it. Nice.
 
glad they're looking out for you
 
@R.MartinhoFernandes quick! cancel your card!!!
 
11:41 AM
to be fair, making you think you have more money than you do is cause for apology
 
@LightnessRacesinOrbit It's honestly not a big issue since WinSock has a BSD API compatibility layer.
 
I wonder whether that's strictly legal for them to just help themselves to their accidental donation like that
 
so I've created the symlinks via cygwin
 
@jwg: I don't see how that has anything to do with it. Most 1 year olds are not able to understand English but we still speak to them all the time. That's how they become accustomed to it and learn to understand it. A nice book with pictures and large text is how we teach our children to read and, more importantly, to be interested in reading. Shoving an animated piece of gorilla glass in front of their face must be awful for personal development at that age, surely? — Lightness Races in Orbit 1 min ago
 
but they of course don't work as regular windows shortcuts
 
11:42 AM
^ I started off trying to troll but in hindsight I completely believe in this
only thing I'm not sure of is the age example I picked. I don't recall when kids start to understand our speech
 
Signs of insanity.
 
so... is there anything that could be gained if a compiler were to not be as slutty as the likes of GCC that is scared to break legacy code? Like if it only focused on compiling new code, maybe even but some extra restrictions on the language?
 
@LightnessRacesinOrbit Like 10 months old.
 
@Rapptz alright thanks
I replaced it with a placeholder
 
@thecoshman cant you just pass flags to gcc to prevent it from doing that kind of stuff
 
11:43 AM
do you agree with the sentiment?
@thecoshman What do you mean? Like a compiler with no legacy extensions? You're asking whether it would be a simpler, faster, leaner compiler? Or what?
 
@Pris maybe, I don't know. There's a flag to enable c++14 features... but AFAIK no flags to say "btw, you can presume this is not shitty old code"
 
> These symlink .lnk files are compatible with Windows-created .lnk files
 
It is not "really a constructor call" in the slightest. — Lightness Races in Orbit 14 secs ago
sigh
 
My cousin was ~10 months old when she could understand basic commands like "give me that".
 
@thecoshman that's what MS claims to be aiming for
 
11:46 AM
Hm.
@LightnessRacesinOrbit He raises a good point bub.
@LightnessRacesinOrbit I'm not sure why you think that speech, written words and images are a good thing if they're on paper but toxic if they're on a 'piece of gorilla glass'? — jwg 2 mins ago
 
fuck yeah
setting cygwin flags to make lnk files works with lns
i have a folder full of shortcuts
 
@Rapptz too slow old man
@jwg: Granted I'm making a few assumptions, particularly the assumptions that the tablet is being used to play games and look at gee-whizz flashy images rather than for basic educational purposes. I would also submit that interaction with physical media is to be encouraged over this "everything's virtual" brain remapping. — Lightness Races in Orbit 23 secs ago
 
I don't like your response to it.
Children play games all the time to learn.
 
I will process your refund right away!
Hopefully only once
Well I don't like the idea of young children learning life through a tablet. Perhaps one day I'll come up with an argument in support of that
 
@Mgetz Whenever I look up some cross platform issue, 90% its MSVC doing some dumb shit to keep legacy code working. I find it hard to believe they're going to make MSVC significantly break old code in future updates
 
11:48 AM
I guess I'd need to dig out research papers and whatnot for data and I am not that invested
 
Developmental psychology was my favourite part tbf.
I thought it was fascinating.
Worth a read just to learn it anyway tbh.
 
@Pris yes, but as an opt-in flag
 
@Rapptz ain't nobody got time for dat
 
> Middle school child gets 15 minutes a day, and can earn more, but she is also allowed to use the laptop as long as necessary if she is doing homework. Non-electronic homework must be done before electronic homework, and electronic homework before game time.
Lmao.
That's amazing.
 
11:50 AM
things used to be simpler
 
@Rapptz I wonder why they get cranky and irritated when they're taken away.
 
send your child out into the garden to kick around a ball. not onto the computer.
 
We get it man. Times change.
 
@Rapptz Or why they just don't stop at all if she lets them.
 
@LightnessRacesinOrbit There's no reason you can't do both.
 
11:51 AM
@R.MartinhoFernandes there was a great post the other day lemme see if I can find it
@Rapptz Both is fine
 
I think you're making way too many assumptions dude.
 
@Rapptz "Times change" is not an excuse for "we are crap at parenting now"
 
I don't think people can learn to self-regulate if they're permanently regulated by others.
 
"that's just the way it is" is not a defence for anything
@Rapptz What? I'm not making any assumptions. I'm just stating my opinion. I didn't say anyone was not sending their child into the garden. I'm just saying they should.
 
@LightnessRacesinOrbit I know that.
 
11:52 AM
So you're the one making assumptions :P
 
@LightnessRacesinOrbit Well when you're forming your opinion you're doing so with assumptions in your mind bub.
 
asset folder : 17MB. symlinked folder : 2MB
 
@Rapptz Total bullshit
 
worth it
 
11:53 AM
@LightnessRacesinOrbit Is it?!
 
That's like if I said "we should all eat green vegetables" and you went into a flying rage "OMG STOP MAKING ASSUMPTIONS HOW DO YOU KNOW I DONT EAT GREEN VEGETABLES FUCK U BUB"
ah, here it is:
7
Q: How do you handle "materialist" behaviour?

Michel DaviotMy 4 years old daughter attaches a lot of importance to toys, clothes, presents ... How do you help your kids take some distance with that ? Sample behaviour I'm uncomfortable with : asking grandma "what present did you bring today ?" (she comes most weeks with a small toy or stuffed animal) t...

 
    // NOTE cannot use booleans as these are used from multiple threads, must use variable with machine word size for atomic read/write
^ is that true? I thought bools were atomic read/write
 
grandma brings a gift every single week. mum is confused as to why the child expects a gift every week and generally acts like a spoilt brat
 
I don't understand the angle for that mini-rant.
@LightnessRacesinOrbit Good answer.
 
What mini-rant?
 
11:56 AM
11
Q: Can a bool read/write operation be not atomic on x86?

szxSay we have two threads, one is reading a bool in a loop and another can toggle it at certain times. Personally I think this should be atomic because sizeof(bool) in C++ is 1 byte and you don't read/write bytes partially but I want to be 100% sure. So yes or no? EDIT: Also for future reference...

huh
 
@Pris Where did you hear that?
 
@Pris C++ is not x86.
 
@Pris std::atomic<bool> vOv
 
woah, just spotted those comments lol
 
> what is a kernel?
 
@Rapptz little bumpy things on korn
 
didn't expect this to be a math question when I saw it in the hot question list
@R.MartinhoFernandes lol
 

« first day (1588 days earlier)      last day (3362 days later) »