« first day (1656 days earlier)      last day (3285 days later) » 

12:00 AM
lol this got downvoted
 
5
Q: 🍌 count is wrong in "More to go" for comments

tchristWhen you go to add a comment, the text incorrectly reads: enter at least 15 characters However, it does not enforce this, as only 8 characters are required. This can be readily demonstrated by adding a 🍌 character one at a time. Characters Message String --------...

/cc @R.MartinhoFernandes
 
I like 🍌s
 
Using 🍌s is part of the Derpstorm Development Guide.
 
we should be able to overload the 🍌 operator
I can't believe we can't do it in this century
 
@LightningRacisinObrit Well it is still accepted, better than nothing I guess :) You got my upvote, as I think it properly address the question (which nevertheless was a bit unclear).
 
12:03 AM
@AlexM. Bjarne be so happy.
 
@vsoftco thx
@AlexM. yeah it's 2015 ffs not the dark ages where is my operator🍌??
You have to pay for assisted childbirth in the USA???
 
wait you pay to make kids in the USA?
holy shit that's a perfect excuse
brb going to the USA
 
rip
And before you bloody start, Jerry, that link came up randomly on my Facebook news feed. I didn't go seeking it out just to complain about Americans. Gees.
I can't help it if I'm not the only one who's noticed. shrug
Now, Castle or bed?
 
those people do not have insurance
 
@LightningRacisinObrit Castle
what a silly question
 
12:12 AM
taking down castles in stronghold is great
best RTS ever
now, off to sleep for me
 
@AlexM. is it me or youre always playing old games?
 
@Borgleader I remembered about it because of LRiO with the cryptic "Castle" (w/e that is)
I also play new games tho
not only old
 
ok yeah you're right
going to bed nnnn
oh btw I just got home an hour or so ago, right, and I found the delivery note for @Xeo's parcel :D
it's waiting for me at the local post depot
and I live like right next door to the local post depot
I can pretty much see it from my bedroom window
#excite
 
FWIW these I chose as my all time favorite games
> Sacrifice
Fallout
Gothic
Diablo
The Elder Scrolls IV: Oblivion
Arx Fatalis
Dethkarz
The Devil Inside
Dink SmallWood
Unreal Tournament: Game of the Year Edition
I don't think enough time passed to add a newer title there
maybe in a few years
 
Dink was meh overall
 
12:17 AM
@AlexM. halleluja
 
@CatPlusPlus I played it when I was too young to even comprehend the idea of satire lol
I took everything in it seriously and it seemed legit
I played mods for a while and I still end up on the dink forums from time to time
 
I mostly remember feeding pigs, duck town and terrible balance
 
surprisingly people there still live and make content
 
Maybe I should play it again
I don't think I'd play Gothic again though
lol FreeDink has controller support
 
> teacher tells class to upload their (python) code to website crap school has set up so you can run it from browser
> neglects to mention issues with carriage return
what a troll
i bet she'll say it tomorrow
 
12:29 AM
yep
it also has versions for the PSP
it probably has some for android or w/e but dink got an official "HD remake" for all mobile platforms anyway
 
Enumerators default to 32-bit int, however is it possible to restrict an enumerator to a specific type?
 
> Fixed a few cases where reserve ammo was shared between multiple weapons. All weapons now individually handle their own reserve ammo.
with every new patch I wonder more and more how CS GO's codebase looks
this bug along with the one that caused the speed w/ multiple weapons to change when they only intended to change one makes me think a lot of things are shared cough globals everywhere cough there
 
0
Q: Is round-trip through floating point always defined behavior if floating point range is bigger?

orlpLet's say I have two arithmetic types, an integer one, I, and a floating point one, F. I also assume that std::numeric_limits<I>::max() is smaller than std::numeric_limits<F>::max(). Now, let's say I have a positive integer value i. Because the representable range of F is larger than I, F(i) sho...

 
@AlexM. Its a show
 
12:57 AM
 
@orlp lol
 
1:30 AM
@AlexM. u r forgetting lyfe is da bes game mahn don foregit tit
 
@Cinch you should stop drinking on weekdays
 
@Blob wat u wrong i no old no drink
no drink no lyfe
u no dat gud?
dat not gud. no drink.
 
Programmer[Noun;proh-gram-er] : A person who turns beer/coffee into software.
Coding Under Influence.
 
Cant figure out what the difference between this and this is besides the price
they both have the same normal price so i guess it might be down to different specials
(i should stop shopping and go to bed)
 
1:47 AM
@Borgleader Blu-ray + Digital Copy vs Blu-ray only
 
well it says "Digital HD" on both images but i guess the image could be wrong on one of them
 
@Borgleader limited time savings!
 
@Borgleader yeah, the images don't always correspond
 
alright then, thanks. now that that is settled, sleepy time
 
@vsoftco y hi vlad
 
1:50 AM
@Cinch hi
 
a teacher asked his kids to solve the equation y = 2x + 2 for the result if they knew y=4
a student said they didn't know how to solve it
the teacher replied, "Well, why don't you know?"
The student said "I don't know why"
"of course you know y. you don't know x you idiot!"
runs away
 
@Cinch What is the && operator for in that code? Is that a type casting to rvalue?
http://stackoverflow.com/questions/29180610/simple-c-program-gets-compilation-errors/29180689#29180689
 
@DeanSeo Oh that is soo ugly
@DeanSeo No it's the logical AND operator.
 
@Cinch Oh...
 
It makes absolutely no sense to do that.
 
1:58 AM
@Cinch Yeah the code looks very ugly. Lol.
Haha.
 
@DeanSeo k
 
@Cinch Thanks for the answer.
 
@DeanSeo You're very nice. Lounge<C++> just got a little brighter.
 
@Cinch I am Korean.
 
darn... I spent 5 min trying to figure out what was going on in that code
 
2:00 AM
@DeanSeo (How is this even relevant)
 
@Cinch kkkkk
 
@Cinch :)
 
@DeanSeo bad korea or best korea?
 
@Blob Well that depends. Have you ever been to South Korea?
@Cicada is coming here soon.
 
@DeanSeo not that i remember
 
2:05 AM
@DeanSeo My twin is leaving me what
noo
 
@Blob You should sometime. We got some crazy places.
@Cinch Yeah May 5.
 
@DeanSeo koowaezee
 
Korea even has so called afterclubs opening at around 5 where you can drink/dance/play until 10~11AM when you don't think you are done.
You will feel quite sad going back home afterwards though, seeing a lot of people eating lunch and having a normal life on streets.
 
@DeanSeo Of course Kim Jong Il must love them!
runs away
 
@Cinch He's the true winner. He has all.
@Cinch Twin?
 
2:11 AM
@DeanSeo it's an old joke; you won't grep it
#
Once upon a time, there was an expression.
He was always told by his mother that he'd be an excellent regular one.
And then calamity struck--he realized he didn't want to be just "regular."
So our dear little expression sought out to become more than regular.
He want to visit Master CPU.

"Master CPU, what-"
"In you go."

ERROR: INVALID REGULAR EXPRESSION.

(the end)
#
 
(γ… ___γ… )
 
Lol
 
> The HoloLens can also be programmed for certain social scenarios: β€œSocial situation,” β€œbusiness situation,” β€œparty,” β€œwedding,” β€œmeeting,” and β€œpresentation,” are all settings you can choose from.
 
A girl just poured half a litre of water over my head.
 
2:16 AM
@MarkGarcia .................................
 
Who the hell would bring a HoloLens at a wedding???
 
@MarkGarcia Holopeople.
 
@R.MartinhoFernandes Intentional? If it is, awwww.
TIL about Magic Leap. Though HoloLens is still the closest one to reality I guess.
 
Yes, intentionally.
 
@Rapptz ...
 
news.ycombinator.com/item?id=9456154 "...written in an object oriented, scripted or ~unscripted~ programming language... such as C++"
 
3:09 AM
And... I convinced my buddy to depart now.
 
I wish there is a BBQ session when Mao's body's finally removed from the 'fridge' in Beijing.
 
> Pearl
lol
 
I just noticed that as well, but "unscripted" languages is forever going to be with my heart now.
 
Do compilers handle endianness on bitwise operators? I found out that you can check the endianness of a processor using a union hack. However if the endianness of your processor really was big-endian rather than the normal little-endian, then how would bitwise operators react to this?
For example with the << would the shift happen at the left-most byte and shift it right? Or still try and shift the right-most byte left?
 
3:25 AM
C++ numbers do not have endianness.
Just like any numbers, really.
 
Processors have endianness. So does C++ just default to little-endian? It has to use one of the two...
 
No. Numbers don't have endianness
5 is 5 is 5 is 5.
 
All numbers have endianness on CPUs....
 
No. They don't.
Endianness is a property of sequences of bytes or bits.
5 << 1 is 10 because 5*2 is 10.
Just arithmetic.
 
Is it possible to have a lock-free read-write pattern for multithreading? Rather: is there a way to have one thread be the writer and have many threads read one volatile variable?
 
You're largely incorrect.. CPUs don't store 5, 1, 10, etc.
They store bytes. So if you have the number 0xFF00(65280) then you'd need endianness to determine if the number is actually 65280 or 255....
 
Oooh boy.
 
@Fatal C++ numbers are numbers.
 
The only time you should be caring about that is when you're reading or writing data to a stream. Because that's when you have bytes.
 
@EtiennedeMartel Reading from binary files, so byte order matters.
 
3:31 AM
@FatalSleep That's a good question.
 
Not the one of the computer you are in.
 
@R.MartinhoFernandes Stop speaking.
 
Just read the article I gave you.
The number 65280 is the number 65280.
 
@FatalSleep gr8 argument
 
@R.MartinhoFernandes The reason endianness doesn't actually matter is because the ocmpiler handles it for you. However this is not the case when dealign with binary files.
 
3:33 AM
@FatalSleep Just read the fucking article.
 
have you ever written code that handles binary files
or are you just guessing
 
The reason is because C++ deals with numbers.
 
@Rapptz I have.
 
The compilers just do what C++ needs.
 
@R.MartinhoFernandes We aren't talking about C++ itself, we're talking about binary files.
 
3:34 AM
If you read it you know all you need to read any sequence of bytes into numbers.
 
Kids these days.
 
@FatalSleep binary files don't care about the CPU.
The data stored exists independently of the CPU.
If you are you not reading that data with C++ then I don't know why you asked about C++ operators.
C++ doesn't care about the CPU either because numbers.
 
111
Q: Detecting endianness programmatically in a C++ program

Jay TIs there a programmatic way to detect whether or not you are on a big-endian or little-endian architecture? I need to be able to write code that will execute on an Intel or PPC system and use exactly the same code (i.e. no conditional compilation).

 
@R.MartinhoFernandes Was a bit confused on how operators worked across different CPUs. That doesn't matter though, I get that now.
 
Does that answer your question?
 
3:36 AM
Ugh.
 
I almost want to bin that.
 
@Cinch Nope. I've seen the post, it was a great help.
 
Because it's not helping at all.
 
RIP
 
It's the wrong question to start with :(
 
3:38 AM
Yes it was.
 
lol I like the answer
"I don't like type punning so I'm going to use it anyway"
 
I don't like casts but they say C++ casts are better than C casts so I'll use them.
 
@FatalSleep Oh you're asking how the bitwise operators might react to his
 
I only worry about endianness in networking
 
@Cinch correct, but I get it now.
 
3:42 AM
I'm pretty sure that the compiler will handle this unless but unless your binary data wasn't written by a system with your same native endianness it shouldn't be a problem I suppose.
I mean, why wouldn't it?
 
You said 'native endianness'.
 
@Cinch Yeah, thought the same thing after I asked.
 
You're automatically wrong.
 
@R.MartinhoFernandes How???...
 
Refer to Rob Pike's article above.
 
3:43 AM
Don't all computers have a native endianness?
 
But of course you never listen.
 
@CInch They do. @R.MartinhoFernandes seems to be confused about a lot here...
 
I like how Cinch just bumbled in without even reading about what was already said.
 
15 mins ago, by R. Martinho Fernandes
@FatalSleep http://commandcenter.blogspot.de/2012/04/byte-order-fallacy.html?m=1
In case it's too far.
 
I'm reading it.
 
3:44 AM
I'm quite confident about what I'm saying.
 
@FatalSleep That's pretty arrogant.
 
You peeps seem to be confused by bringing irrelevant concepts in, like 'native endianness'.
No irrelevant concepts, no confusion.
 
@Rapptz Not entirely. Saying that endianness is altogether irrelevant is arrogant. Depending on the subject, endianness places a huge role.
 
The host's endianness is irrelevant.
Because... numbers.
 
The host's endianness is important when handling endian dependent data across CPUs of different endianness.
 
3:46 AM
yikes
 
"Because... numbers" isn't an argument.
 
You didn't read Rob's article.
 
You can really tell he didn't.
 
@FatalSleep Read the article.
 
That article applies to programs and compilers...
Because again, the compiler handles everything for you.
 
3:47 AM
Oh. You're not talking about programs?
 
@FatalSleep No it doesn't. Read it again.
 
sigh
 
> If the data stream encodes values with byte order B, then the algorithm to decode the value on computer with byte order C should be about B, not about the relationship between B and C.
There, quoted the important bits for your convenience.
 
"No pun intended"
 
Hm.
 
3:54 AM
I really like aggregate initialization with {}
 
If you write a piece of data with byte-order B, then how would a computer with byte-order C understand not to use byte-order C, but rather B? That's the confusing part.

It doesn't make sense for endianness to exist, yet be irrelevant between platforms.
 
But it doesn't work with make_unique/make_shared :[
 
@FatalSleep The code snippet in the article works for any endianness.
 
init-list doesn't have a type
I've been using Unity lately.
 
Oh? What do you think about it?
 
3:56 AM
I've already used Unity before
 
@Prismatic why would you expect to work? make_unique is a function
 
They fixed one issue I had with it.
@vsoftco He means make_unique<T>({...}).
@EtiennedeMartel 2easy4me
I don't find it very fun as a result. Pretty weird eh?
 
@vsoftco I just dont like that I cant use make_shared (which is more performant... apparently) without having a constructor if I want to specify my aggregate's values at construction time
 
Okay back
 
4:00 AM
@Prismatic I see...
 
Jun 18 '14 at 1:41, by Rapptz
I haven't used a single game engine I really like. Unity was okay I guess. I liked how easy it was but it felt weird. It feels like ECS is just not my thing.
 
@Rapptz hahahahahhaah
Is that EECS or some other acronym?
 
Entity/component/system.
So called because the three core parts of the architecture are named that.
 
@Prismatic what about this: auto uptr = std::make_unique<Foo>(Foo{1,2});
 
it's already an r-value
 
4:02 AM
oh hyes
yes
 
I tried UE4 too.
I didn't like it though.
 
UE4 is ECS too, I think.
 
At least Unity's system is bearable.
 
Everybody is ECS now because it's easier to make tools for that.
 
I kinda blame the overwhelming editor.
Last I tried UE4 for C++ I needed a 20k file VS project to use its templates.
Pretty amazing tbh.
 
4:03 AM
Let's not forget that UE is heavily artist-oriented.
 
and Blueprints were totally lame.
 
I wonder if these end up being the same:
shared_ptr<Foo> foo = make_shared<Foo>(Foo{x,y,z})
shared_ptr<Foo> foo(new Foo{x,y,z})
 
@Prismatic no, the make_shared has less overhead
 
@Prismatic it constructs the ref. counting and pointer-to-data in one step
 
4:05 AM
I meant as in, will creating Foo with make_shared have the same overhead ignoring the shared_ptr ref count allocations
because I'm passing it Foo{x,y,z} (copy/move constructor?) vs just aggregate initialization
 
So C++ abstracts away endianness, and endianness is related only to binary storage. Good to know.
 
I remember a guy at Eidos Montreal telling me about UE: "your 20 programmers are gonna be pissing blood, but at least your 200 artists are going to be super productive".
 
@EtiennedeMartel I've heard this before.
 
But if I were to cast the other way... What would happen?
 
I didn't find UE4 to be user (programmer?) friendly at all.
 
4:07 AM
@Cinch You mean, if you turn a number into another number, do you get another number?
 
Hmm... I think I get it now
If you don't deal with bytes, why do you care?
 
Does this even answer the question?
0
A: Why is processing a sorted array faster than an unsorted array?

Mike RobinsonIt may also be worthwhile to comment that pre-sorting data can also significantly benefit other algorithms, as well, and in other ways. If you have enormous files to process (think: "tape drives in the 60's") you can process those files sequentially, therefore in just one pass, by creating a so...

 
@Rapptz Speaking both from first and second hand experience, I can tell you that the artist workflow is completely different. For one, your average artist has a built-in workaround detector that will lead him or her to brute force through any limitation a tool might have.
 
It's just I'm wondering what happens if I cast an uint32 -> char*, what would the endianness be?
For the char "string"
But... That's serialization, right?
 
"Oh, my translate handle is disappearing behind my object when I'm too close? No worries, I can just zoom out."
Sometimes I feel like I never have to fix any bug because these guys will just find a way to work around them.
 
4:11 AM
@Prismatic In the second case you just pass a pointer, new Foo{x,y,x}, there is no move ctor. In the first case, you end up moving + an internal pointer construction. But there shouldn't probably be any significant difference.
 
@EtiennedeMartel no, what I'm asking is if I mutulate a 32 bit int into char, what endian is it?
Freaking mobile.
 
he wasn't even talking to you
 
I can't easily mark a specific post in the mobile chatroom
Wanna tell me how?
 
you can't
 
@Mysticial Nope. It's just a very long comment.
 
4:15 AM
@Cinch en.wikipedia.org/wiki/Endianness So you'll have the most significant byte in the first byte of the char* for Big Endian, and the least significant for Small Endian
 
@Mysticial VtD.
 
I don't know how to handle collisions cleanly with Unity.
 
@EtiennedeMartel Probably just another person answering for rep. We see that a lot on high traffic questions.
@JerryCoffin Yeah, just VTD'ed.
 
@vsoftco which is what @FatalSleep was asking, right
 
@Cinch I missed that
 
4:17 AM
@Rapptz velocity normal vectors, perhaps?
s/velocity normal/ velocity and normal
 
So I found an apartment that's within walking distance of the office I'll be at.
42'nd floor. High enough to actually have a view.
 
i do not know how to do that please can you help me — lerry 14 mins ago
 
Velocity, normal vectors, angles, slopes, bofunding planes
 
are these people real?
sometimes I just can't believe some people on the internet are real
 
@orlp wut
 
4:19 AM
you leave lerry alone
okay... the first one has an extra copy right?
    // create temp MySweetPod with args, copy all members of temp MySweetPod to allocated MySweetPod
    shared_ptr<MySweetPod> pod0 = make_shared<MySweetPod>(MySweetPod{ 1,2,3.0 });

    // allocate MySweetPod with args
    shared_ptr<MySweetPod> pod1(new MySweetPod{1,2,3.0});
 
it'd call the generated move constructor
 
I thought make_shared<T> already perfected forwarded the arguments to the class' constructor.
 
which would do moves per-member
@Nican it does but he's talking about aggregate init.
 
Ah
 
but since they're ints and floats it's the same as copying
 
4:23 AM
LAME
 
btw isn't there some form of non-atomic read with an atomic write relationship?
 
@Prismatic Yes, if MySweetPod is non-movable. If it contains movable elements, like std::string, then it's moved (or at least that's what I think, in C++11 a POD is a trivial class and also a standard layout class, and this allows for default move constructors)
 
That means you're screwed either way. If you use make_shared, you get a better/faster/safer shared_ptr construction but you get an extra copy or move with pods
My PODs most hold stuff that is meaningless to move (equivalent to a copy) :[
 
lol losing sleep over copying a couple of ints
 
@Rapptz @EtiennedeMartel Apologies. I get what you meant now and what the article means. @Cinch in that particular case, yes. However I completely misunderstood the point they were trying to get across.
 
4:25 AM
@Prismatic yes in this case you copy
 
@Rapptz my actual pod has a bunch of matrices
 
I like how he doesn't apologize to @R.MartinhoFernandes
 
I was going to, but forgot the username.
 
Is there sort of model for an optional mutex?
 
@R.MartinhoFernandes apologies as well.
 
4:27 AM
@Prismatic what do you mean your POD has matrices? As members? If yes, make the matrices movable.
 
whenever I'm answering questions on SO I feel I'm only limited by questions worth answering
 
@Rapptz I found link
 
yeah he's in kakariko village
 
@Mysticial Cool. Is it a view of the lake, or are you in the wrong part of town (or wrong side of the building) for that?
 
4:34 AM
@R.MartinhoFernandes @Rapptz @EtiennedeMartel Thanks for the clarification and correction. Was about to write some total BS code due to a fake endiannes issue...
 
@Prismatic How's that? Doesn't make_shared use perfect forwarding, or has my memory lost some more bits again?
 
he's doing aggregate init
T{1, 2, 3}
the stdlib should have used universal initialisation if it was actually universal.
Such a fucking blunder.
 
@Rapptz Hmm...I guess I should have read the thread before jumping in.
 
@JerryCoffin Wrong direction. It's facing north. So I can see much of the skyline, but not the lake.
 
I wonder if creating a shared_ptr with new also affects dereferencing
 
4:39 AM
The building I'll be working in is in direct line of sight from that apartment.
 
I hate that there is a 200 rep daily limit
 
I'm not 100% sure I'll be able to get into that room. But assuming nobody reserves it in the next few hours...
 
the limit should be per answer/question, not per time
 
@orlp Not something you want to mention around @Mysticial. He's probably lost more to it than all the votes you've ever gotten...
 
 
4:43 AM
@JerryCoffin perhaps
but I think an answer should give diminishing returns or something
0-10 votes = 10 rep per vote, 10-50 = 5 rep per vote, etc
 
@orlp I'm not your friend anymore. :)
 
@Mysticial aww we were friends <3
 
@Feeds Funny. The XKCD link is giving a 404.
 
lounge-exclusive comic
 
someone should add webcomics that don't suck to the feed bot
 
4:46 AM
@Prismatic Example?
 
I like ... SBMC and nedroid
not really programming related though
 
they suck
 
I love XBMC. I never heard of nedroid.
Oh, this is nedroid- I am not really into it.
 
4:49 AM
@Rapptz which webcomics do you like
 
@Nican Guess you have brain problems!
 
@Prismatic None.
All webcomics are too hit or miss for me to really say I like them.
 
You need to be less uptight with your sense of humour
 
RIP mitch hedberg
 
4:51 AM
I like C&H I guess.
Though only Rob's comics are really any funny.
 
You can't not like Cucumber Quest it is not allowed
 
Seriously, are these true?
I mean, the claim, not the stories.
 
@Prismatic This is what years of YLYL threads do to you.
 
struct C {
    C& operator=(const C&) & = default;
};
what the fuck is the & after closing parenthesis and why can't I seem to find it documented/named anywhere
 

« first day (1656 days earlier)      last day (3285 days later) »