« first day (2293 days earlier)      last day (2658 days later) » 
00:00 - 17:0017:00 - 00:00

12:05 AM
why isn't std::sqrt defined as constexpr?
 
FPU control word?
Wait, that won't matter because compile-time starts with that defaulted.
 
I mean, I know how to Google for a constexpr version. But I think the control word might be the reason it wasn't done as constexpr.
 
@JerryCoffin Reminds me of when E3 proudly announced that they would be opening the convention to "everyone". Which begged the question: who the fuck were all those people on the convention floor who were playing games and flirting with booth babes? They certainly weren't all industry people.
 
I would rather have a constexpr square root rather than special arithmetic modes for infinity. Or god forbid, 24bit arithmetic.
 
@Mysticial Obviously hard (impossible, really) to pin down exact numbers, but it is pretty easy to see at least some of the effects--for example, even where I live (20+ miles from Comic-Con) hotel prices will probably close to double during Comic-Con--and every one of them will be full anyway.
 
12:09 AM
wow someone here considers constexpr actually useful
surprising
 
@JerryCoffin And each room will probably have 10 people in it.
 
@Mysticial Certainly a lot of them will, anyway.
 
That was definitely the way it was when I went to Anime Central with our club from school. 10 people in one room. No gender separation at all. You couldn't even see the floor cause the whole place was covered in sleeping bags and blankets. Someone even slept in the bathtub.
 
Yet strangely, all of them seem to have room to offer her to stay with them though...
 
The following year after that we separated into drinking and non-drinking rooms. That was the arguably the dumbest decision ever because us (non-drinkers) couldn't keep an eye on the drinkers and someone ended up getting their stomach pumped that night.
 
12:13 AM
@Mikhail std::sqrt sets the errno on out-of-domain inputs
 
@Mysticial Ouch!
 
@JerryCoffin We (the non-drinking room) didn't even know about it at all. We were all partying or running back-and-forth between the hotel and con for late-night events.
The drinking room guys were all at the hospital watching over the guy who got pumped.
That was the last year I stayed with the club rooms. I left school after that.
So I don't know how they manage it now.
 
Ell
@Mysticial that's pretty funny
 
@Ell It's funny in retrospect, but it really could've been worse. The only reason you'd join the drinking room is if you really wanted to drink - a lot. And when everyone there is completely stoned, there's nobody who will tell them to stop.
Well, they stopped when the guy passed out and someone realized they should probably call the ambulance.
Which explains why at ACEN, I hear an ambulance every 10 min. or so.
@Ell It's also funny when someone pulls the firealarm at 1 am and then everyone has to get out if you're sober enough to do so. But then you realize that it might not be that funny to someone who's autistic.
 
12:29 AM
@milleniumbug And the result is -NaN, magnificent
 
Well, every positive number has 2 square roots!
 
12:44 AM
@Mikhail But each of them is a number...
 
Is i a number?
also 0 has only 1 square root
 
@LucDanton Parce que les poulets, ça vole, c'est bien connu
 
0 is not positive.
 
@Mikhail It's as much a number as 1 is.
 
1:06 AM
@Mikhail i doesn't belong to the set of real numbers :V
 
1 is positive ... 0 is negative ... if we are thinking boolean :p
 
nor, for that matter, do I.
 
Nor is 0 negative.
 
the IEEE would like to have a word with you folks
 
?
i is an imaginary number
 
1:15 AM
so, you can have - and + zeros
 
yes
because it's a sign + magnitude representation
 
but actually not really because the IEEE tries to cover its butt by saving that they are limits
 
okay
 
1:33 AM
Learning c++ and I see this
std::vector<uint8> buf;
    buf.resize(4);

    Read((char*)&buf[0], 4);
Read is defined as Read(char *buffer, int length);
How come you can use a char and a uint8 interchangeably there?
 
because uint8 is probably a char or an unsigned char
welcome to the world of weak typedefs and pain
 
also should be buf.data(), also no advantage of using unsigned char vs char.
 
nvm misread
 
1:58 AM
@Mikhail buf.resize should be .data or &buf[0];
 
yes but don't do that
also note that buf has a constructor that includes resize
 
Now you got me confused, "should be" but don't do that
 
user6438653
Anyone here made a compiler? A programmimg language parser? If so could I read your code?
 
@Mikhail and I gave you two options in the first question there not sure which one you're saying yes to
 
@Datsik but have the same functionality, but .data() is more paradigmatic
 
2:03 AM
in compared to resize, or &buf[0]
 
&buf[0]
 
ok thanks
When he said that uint8 is probably a char or unsigned char does me mean it was declared like typedef char uint8 or something
I just see it like this typedef std::uint8_t uint8;
nvm
>It turns out that they are equal respectively to: unsigned char, unsigned short, unsigned int and unsigned long long.
 
This is amazing: Now you can fact-check Trump’s tweets — in the tweets themselves, with a @washingtonpost extension… https://twitter.com/i/web/status/823727781292998656
I need a fact check on this ;)
 
u can fact check me anytime bby
 
user6438653
okay, no, bye
 
2:13 AM
@jaggedSpire kinky ;3
 
@WATERYMEL0N lol
@Borgleader <3
 

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
2:29 AM
Rich Silicon Valley doomsday 'preppers' buying up New Zealand land ... do rich people from silicon valley prefer earthquake prone zone?
This is a list of large earthquakes that have occurred in New Zealand. Only earthquakes with a magnitude of 6.0 or greater are listed, except for a few that had a moderate impact. Aftershocks are not included, unless they were of great significance or contributed to a death toll, such as the M 6.3 2011 Christchurch earthquake and the M 7.3 aftershock to the 1931 Hawke's Bay earthquake. Earthquakes occur frequently in New Zealand as the country is situated in the collision zone between the Indo-Australian and Pacific tectonic plates, part of the Pacific Basin Ring of Fire, where many earthquakes...
only about 20 or so of magnitude 6 or above in the past few years
if you are afraid of dying, moving from one end of pacific ring of fire to the opposite side of it seems to be a really rational thing to do
Not saying doomsday scenario is going to happen any time soon, but if it does multiple nukes are probably going to be used, earth atmosphere is going to be changed. And if earth is going to rip, it will be at it's most vulnerable places - ring of fire.
 
You're missing the point, when the nukes come down, global warming will cause New Zealand to flood
Also the point is that the dissatisfied masses will revolt and kill them October resolution style.
 
I am sure the super rich can afford boats
 
2:44 AM
fuck I need to learn to spell
2
 
What I am trying to say is that one of the reasons those people choose New Zealand is probably because of the landscape, those beautiful tall mountains. But tall mountain implies instability in the ground formation.
 
That's not the point of the article
 
there is little point trying to escape the nukes only to get killed in earthquakes
 
@Mikhail you missed a perfect opportunity for a misspelling there
Nature will do her very best to murder you in the face no matter where you are.
 
yeah right, if New Zealand is anything like Australia, eventually they will try to tax the super rich like they shave their sheep
 
2:49 AM
in the end it's about choosing where to die
 
mmm
 
3:09 AM
Who the heck is still living in New Zealand./:
 
new zealanders
 
it's basically same as living on the top of hibernated volcano.
 
Fact: the logo of the New Zealand airforce is a flightless bird
4
 
3:26 AM
The most unaffordable housing markets is Sydney
Seriously though, by just looking at the picture supplied in the article, I don't understand why Hong Kong is more desirable (thus more expensive) than Sydney :p
 
It's because there are more people in a smaller space, not necessarily because it's more desirable.
 
user406009
More desirable doesn't always correlate with more expensive.
 
user406009
A lot of it probably has to do with the much more limited building room in Hong Kong
 
so, can anyone decipher what is supposed to be about? All I'm seeing is it applied to questions for C++, C#, python and javascript in the first few dozen questions, and the questions are distributed among modular design, modular arithmetic and who knows what else...
It has no wiki, 233 questions and 5 followers, and I'm thinking about posting to meta about it.
also, lol at the first comment:
55
Q: How can I create C header files

user340838I want to be able to create a collection of functions in a header file that I could #include in one of my C Programs.

with a text editor? — stefanB May 14 '10 at 1:45
 
3:44 AM
nice comment
 
and cover the two common use cases for with significantly less ambiguity, I think
 
@CheukKinSing ah mais si tu regardes de près tu remarqueras que ce sont des poulets célestes alors hein
 
4:23 AM
floof and small floof /cc @Borgleader @TonyTheLion @Ven
 
4:49 AM
@LucDanton Et ça se mange en sauce ?
 
5:23 AM
@WATERYMEL0N I made a couple, but I don't have any online. The only one that's "complete" is company property
 
user6438653
Dammit. that sucks.
 
user6438653
Here's my parser currently it's in javascript: gist.github.com/WATERYMEL0N/e955837d8ce16af6f61447734b75feb7
 
@WATERYMEL0N oh, I do have a simple RDP: ideone.com/wVqRw
 
user6438653
May I ask what RDP is?
 
@WATERYMEL0N recursive decent parser. relatively easy to understand the order of operations, but they're slow
 
user6438653
5:25 AM
Ahh..
 
user6438653
I'm learning.
 
user6438653
Thank you for this code. Much apperciated.
 
In computer science, a recursive descent parser is a kind of top-down parser built from a set of mutually recursive procedures (or a non-recursive equivalent) where each such procedure usually implements one of the productions of the grammar. Thus the structure of the resulting program closely mirrors that of the grammar it recognizes. A predictive parser is a recursive descent parser that does not require backtracking. Predictive parsing is possible only for the class of LL(k) grammars, which are the context-free grammars for which there exists some positive integer k that allows a recursive descent...
 
user6438653
My one may have to do some backtracking...
 
user6438653
Ahh, thanks :)
 
user6438653
5:28 AM
I love your profile pic, that's my favourite pokemon, lol.
 
5:53 AM
@Mikhail Haha.
 
user6438653
@Mikhail It really is, I'm from NZ, that bird is a kiwi.
 
lul, the mass hysteria over Trump on Twitter is entertaining.
 
6:12 AM
did he write something today?
 
6:44 AM
@WATERYMEL0N What are you trying to parse?
 
7:04 AM
can I get a sanity check on a question I tried to answer?
 
7:17 AM
you are insane
 
user6438653
7:30 AM
@JerryCoffin Code.
 
user6438653
Bloody @rlemon, why are you in every room?
 
fruit rivalry ...
 
melon vs lemon
 
Ven
7:49 AM
Hi
 
user6438653
haha
 
Xeo
8:22 AM
@Mysticial KanColle has become fucking huge
(Anime helped)
 
Ven
8:48 AM
@Xeo it has an anime now??
does it even have an english translation?
 
9:12 AM
never mind :P
 
Xeo
@Ven yes, crunchyroll
 
Ven
@Xeo No, I mean–the game. Is it av. in english?
 
Xeo
Oh, that. No.
 
Ven
Last time I looked (3 years ago, 2years ago, one year ago) it didn't
 
Xeo
But it has an Android Version now
 
Ven
9:19 AM
I'm arguably not too interested in sexing ships so I didn't look into it too much....
 
Xeo
And you don't need he translations, really
 
Heya :)
 
Hey guys
Amazon is cool!
 
Ven
@Xeo you just want moonrunning grills?
 
@WATERYMEL0N Sort of
@WATERYMEL0N Yeah have you studied grammars yet?
@WATERYMEL0N My current project is building a parser + interpreter along with my team
 
Ven
9:52 AM
Cisco is paying 3.7b$ for a startup that does app monitoring?????
 
@Ven :D
 
Ven
thank you, buggybug.
 
10:14 AM
@Ven hey what does Prefix Command do
sorry about that, wanted to vent ._.
 
Ven
ventedhiel?
it prefixes a command, btw.
 
oh that’s good to know
 
So I have booked accommodation for a sailing weekend. After payment has been deducted from my account, I rang them and asked 'I didn't receive any confirmation email about my booking'. To which, the reception replied 'you will receive confirmation in the mail in a couple of days'.
who send confirmation of online accommodation booking through the post nowadays??
 
nwp
people who know that our legal system is terrible because it decided that an email is not a letter and has no legal binding?
though I suppose they could just have sent an email anyways
 
they also only take credit card payment over the phone for booking
feel so unsafe
 
10:28 AM
Welcome to the Lounge! Make sure you're familiar with the Rules.
12
 
Ven
too generic
 
nwp
no competition, win by default
 
Mod abuse!
 
you have 14 days to come up with a better one
 
Ven
11:09 AM
>> 'As you can see, we largely came from the stateful procedural world.'
> No, you come from the 'my first languages' world....
 
Is anyone here familiar with data-oriented design? I have a quick question about loops in a data-oriented context.
 
11:26 AM
I somehow doubt it will be quick
 
11:37 AM
@stimulate data-oriented is just a meme about the worst cppcon keynote to date here
(That's just a way of saying "no-one really cares about this".)
 
Ven
@Griwes worst cppcon keynote¿
 
@Griwes Oh yeah, that one about writing ugly code everywher and dropping cool paradigms and useful tools for the sake of speed?
 
@Ven Mike "See How Fast My Hand Is Going?" Acton
 
not enough abstractions over the data you mean?
 
If I may try:
I have an array of structs. These structs contain seperate data that i have to do independent processing on.
Is it correct that it is better to loop through this array multiple times for every type of processing i want to do, to have the cpu do the same thing over and over? The intuitive approach would obviously be to iterate through the array once and do all the processing for each object for each step.
 
Ven
11:40 AM
@Griwes what'd he do?
 
@stimulate can you change the array of structs to a struct of arrays?
 
Ven
wtf?
 
though besides that jsut profile both options
(well 4 if you include the SoA vs. AoS)
 
@Ven Also this gem from his linkedin:
> As Engine Director at Insomniac Games, my work is to lead one of the best engine teams ever assembled in the gaming industry focused on both usability and performance. Right now we're pushing the edge by developing our game development tools as a webapp.
 
Ven
11:42 AM
L
O
L
 
wut? High performance is required but then they make it a webapp?
 
You'd've seen it a while ago had you stayed on Discord. :P
 
Ven
yeah, well.
that ship sailed for now.
I'll come back to prepare for uncon or for the next gamedevjam if people are okay with that :P
 
I am just noticing that, since these structs almost only contain arrays, i basically have to iterate through an array of arrays, and i dont think there is much more to optimize.
I will just always ask myself what you just asked me, that will help :)
 
but instead iterating over array of structs of arrays you can then iterate over struct of long concatenated arrays. If the operations you do on them are actually helped by it
 
11:47 AM
People here dont really seem to trust data-oriented design or am i wrong? To me it actually seems like a good idea to learn how to make code easier to read for computers (not for humans).
 
here they like their zero overhead abstractions a bit too much
screw the compile times
 
Premature optimization is the root of all evil.
Is this whole data-oriented nonsense anything but a premature optimization (that, by definition, doesn't bring much and mightly hurts maintainability)?
 
but when you have to iterate over hundreds of thousands of objects 60 times a second it becomes a necessary optimization
 
but wouldnt that mean i lose the seperation between the arrays? To give something concrete, i want to iterate over an array of 3D-Models which each contain an array of meshes. If i append all the mesh-arrays to oneanother, i would have to keep a reference to the respective model...
Well i guess thats possible. I am still in thinking progress, so I guess i am okay on my own from here
 
then you start caring about data locality even when it hurts maintainability
@stimulate that's going to depend on the operations you will be doing on the models
though most of the time 3D meshes just stay on gpu memory and the vertex shader just does the modifications on the fly
and geometry that stays on the cpu is then a simplified version that's simpler to compute with
 
11:59 AM
I guess some optimizations cannot be done when your product is finished. Since i am just learning to program i thought it was a good idea to get into a data-oriented mindset now
@ratchetfreak Well at some point i want to render the models and at that point it will be even more important to determine which data i will actually need. If i have all meshes in one array and only keep references around, i will have to drag in every single model just to draw one triangle. Originally, i actually did it like that, with one huge array of vertices. But it seems really unefficient to me.
 
every modern 3D graphics api will let you draw just a subsection of the mesh
also keeping all vertex data in a single long array will prepare you for managing vertex data on the gpu
 
So I have had an interview for the new job. They gave me a programming knowledge test, fairly easy, IMHO.
The HR lady interviewing me mentioned the previous Codility test results. So I asked her whether anybody actually read the code. She said not yet. I started laughing. I cam out clean and told her I have copy&pasted the second task solution.
Her face showed confusion for a few seconds but then she let me do that programming knowledge test anyway and I did well.
 
@ratchetfreak Ha, so i did everything right from the very beginning? wow.
@Griwes you were right, Premature optimising, that son of a bitch
 
12:15 PM
@Ven I think I have the very, very basics down (i.e. how to config, how to help, how to open thing, edit it, save it, etc.) but the road ahead is still very rough :(
 
Outstanding. A Trump fan tells Martina Navratilova, who fled Communist Czechoslovakia aged 18, to "educate yourself… https://twitter.com/i/web/status/823806240207863808
^ Pure gold.
 
@wilx the best is still the "Alt-Salad" tweet
 
@R.MartinhoFernandes Haha.
 
12:31 PM
@jaggedSpire I want to use this big floof as a pillow
 
@DeiDei Even STL who maintains the "Standard Library" calls it the STL. Pointless pedantism is pointless. — Borgleader 7 secs ago
 
@Borgleader Me too :3
 
12:53 PM
so trump wants to build the wall, interesting to see who actually pays for it
 
Ven
@LucDanton you need more experience with a computer, it's fine
3
 
how 2 pres butans
 
Ven
1:08 PM
> Interesting. I'm curious as to how lists are images of a surjective homomorphism starting from a free monad over some f? Surely there has to be one, seems like the defining property of 'freeness'?
Haskell Gone Wrong™.
Now the jury will decide whether to classify this as HaskellPorn or HaskellGore...
 
HaskellGorn
 
1:35 PM
on the topic of security and UI/UX: THE LINE OF DEATH cc @sehe I think this is your jam?
 
@Borgleader: Except he doesn't "maintain the standard library"; he maintain's Microsoft's (Dimkumware's) implementation of it. And, ultimately, he's just a guy! — Lightness Races in Orbit 5 mins ago
Not sure if joking, or providing more pointless pedantry -.-;
@Ven None of that made sense to me.
Was it supposed to?
 
Ven
@Borgleader I'm scared everytime it does.
 
Ven
@Borgleader Actually, you're exactly sure.
 
nwp
1:52 PM
I'm thinking of buying that actually even though I have no time to play it
 
2:05 PM
@nwp That's what I have been doing last few years. For me it is mostly not having a machine/OS to play it on.
Does this have a name: Whenever I watch videos of me doing something, it always seems a lot faster than I have experienced in my own mind. I have just recorded a video of me doing something with our application. I was deliberately trying to move slower but when I watched the recording, it seemed a lot faster than I thought I did.
Same holds for me driving a car and the video I have from my dash camera.
 
2:20 PM
I tried to get siri to split editor in xcode
not able to
AI ... artificial idiot
 
dodgy ... sneaky ...
 
2:36 PM
@wilx I'm pretty sure I saw this before, but I can't find it again :/
It was in the context of witness testimony during trials.
"papillon adhésif repositionnable", lol
 
@R.MartinhoFernandes j’avais jamais vu papillon utilisé comme ça mais ça date apparemment
 
Je ne parle francais yayayayayayayayay
 
Ven
2:56 PM
@LucDanton why do people say you need template definition checking for concepts-induced better error messages?
Seems to me the only constraint is that you manually need to keep the requirements and the templates in check
but if you do have them synchronized, the error messages should be good
 
Ell
@Ven is it because without them, the error can't tell you which requirement you have missed?
 
you can delay the "definition-time" check to instantiation time
 
Ven
@Ell only if you weren't exhaustive in your requirements
hence my messages
 
@Ven I don’t understand
 
Ven
@LucDanton which part?
 
3:01 PM
honestly for starters why I have to defend someone else’s position lol, why not ask them? I don’t know why people say things
 
Ven
I thought you held that view.
Maybe it was @Xeo.
 
or maybe compilers could be smarter and whitelist all templates listed in their own include headers
 
@Ven I do have opinions on actual type systems that could give concepts a run for their money but obviously that’s unrealistic. the potential of concepts will be reached very fast, it can only carry so much while only remaining an additional layer on top and QoI is already very good
 
Ven
@LucDanton QoI? RoI?
 
quality of implementation, i.e. the actual diagnostics we get
 
Ven
3:05 PM
aaaah. ok, thanks
 
3:39 PM
I want to sleep ><
 
oh my VS2017 implements a good chunk of C11
 
Ven
but not all of C99 yet.
 
@Mgetz ...is it the chunk that got pulled into C++17?
 
@Griwes I didn't think <threads.h> got pulled in
and yet it's there
 
3:53 PM
No, it didn't get pulled in. Hmm.
 
if I was to guess they implemented it because they removed _lock and _unlock in VS2015, leaving C developers high and dry. It appears they've implemented all of <threads.h> though.
that said this is pre-release, so it is fully plausible it could poof in the final release
 
Ven
@milleniumbug you won! github.com/matz/streem/commit/…
 
4:11 PM
@Ven hurray!
 
4:31 PM
@Xeo You know what that means? Touhou needs to get a full series Anime. A single OVA is not good enough.
 
Xeo
There is no official anime
the two well-known OVAs are fan-made
and there are several other fan-made ones as well
 
I think the definition of "fan-made" needs to be refined a bit. Because some of this "fan-made" stuff is indistinguishable from (or even better than) a lot of the official/professional stuff.
 
Ven
I remember the presentations of the Touhou "fanmade" games at Japan Expo. They were amazing.
@Xeo for Touhou, you mean?
 
Xeo
ye
 
@Mysticial all that means is that some fans have more budget than sanity
 
Ven
4:35 PM
I'm afraid the Kancolle anime will have too much fanservice, à la Infinite Stratos kind of crap
 
not that I've noticed
 
Xeo
@Ven what do you mean "will have"?
 
Ven
s/will have/has/
("will have when i'll be watching it". frenchism, sorry)
 
oh my god you’re French
 
@ratchetfreak Make me a 24-episode series of Touhou, I will watch it.
@Ven There's nothing wrong with that is there?
 
Ven
4:40 PM
@Mysticial yes, Infinite Stratos was incredibly dull and boring.
The manga was a bit better, but got an early ending. I know the author "forked" it (yugioh style) but ihavn't looked at it.
which reminds me of shaman king. it was supposed to get a decent ending at some point...
 
@Ven gud stuff
 
Ven
@LucDanton ça titille ma fierté de français
 
lol
 
he he he
 
4:55 PM
int x = 12345;
puts(&x);
// 90
What an amazing coincidence; the decimal value 12345 is represented as 39 30 00 00, where 39 and 30 are the highest and lowest decimal digits :)
 
00:00 - 17:0017:00 - 00:00

« first day (2293 days earlier)      last day (2658 days later) »