« first day (902 days earlier)      last day (4039 days later) » 

user1357851
1:00 PM
newbness
 
user784668
@LightnessRacesinOrbit -1 too much -ess
 
user142019
Lightnessness.
 
user1357851
beauty is in the eyes of beer holder
 
@DeadMG That was the 2000s, not the 1990s!
 
Ell
very long short my_short;
 
1:01 PM
@R.MartinhoFernandes Yes, and DoTA was a 2000's thing.
 
@R.MartinhoFernandes Next thing you know, he'll finish a project.
3
 
@DeadMG And non-retarded-C++-with-RAII aka "Modern C++"?
 
dunnoes, I wasn't paying attention before about 2009.
 
Modern C++ is when you don't use malloc
 
1:03 PM
bwelrg
 
user784668
Modern C++ is when you UB?
 
user142019
UB <3
 
@DomagojPandža The thing with Zoidbergs is that 7/8 of the mass of the project is always hidden from view.
 
drowning in UB
<3
 
user1357851
modern C++ is Java++
 
user1357851
1:04 PM
(C+Java)++
 
No stars for you, Telkitty. Go away.
 
user1357851
@ScottW woof
 
user142019
Awesome.
 
user142019
In Objective-C you don't have to initialize your variables. :v
 
user142019
1:05 PM
They'll all be initialized with zero, NULL or nil.
 
zero is a dumb initialvalue.
 
user142019
I agree.
 
user1357851
I think until a year ago you still have to delete the object by doing [object release]; in objective c
 
I like the poetic bit that the code does involve UB.
 
user1357851
then they changed architecture
 
1:06 PM
I might be reading too much into it.
 
user142019
@R.MartinhoFernandes -O2
 
user142019
Probably optimized out. :v
 
You cannot optimise out asserts unless they hold.
 
user142019
1:07 PM
@R.MartinhoFernandes Oh. :v
 
Sure you can
 
pretty sure the compiler can optimize it out if the condition involves UB.
 
user1357851
@R.MartinhoFernandes Oh thought you said: you cannot optimise our asses
 
#define ASSERT(x, msg) ASSERT(false, "fuck off and check it yourself")
@DeadMG heh
 
1:08 PM
@DeadMG Meh, I wouldn't call it optimising out.
 
user142019
main:
	xorl	%eax, %eax
	ret
 
@R.MartinhoFernandes The compiler does, though, in some cases, if you invoked UB.
@R.MartinhoFernandes ... with the mouth that it spawns at the same instant
 
user1357851
@ScottW true, but it is in a way weird, because I can no longer use my old code in the new version of XCode, I have to delete all the releases
 
I expect that, bar bugs, copy elision and EBCO, optimisations maintain the same observable behaviour.
 
@R.MartinhoFernandes They do. It's just that "Broken optimization" is a valid way to implement UB.
 
user1357851
1:11 PM
@ScottW it warns you that you are using the old architecture
 
In this case, the compiler could just be producing an unoptimised version of another program, because the behaviour is not defined. How can you tell?
 
When you invoke UB, your compiler may produce an unoptimised version of itself.
 
user1357851
but your old version will work on the new ios if it is already in the app store
 
Unless it doesn't because Apple broke something in new iOS
 
@CatPlusPlus Or kicked your app out.
 
1:12 PM
This is the Lounge. It's where logic goes to die. Have fun, after reading our handy survival guide!
12
 
user1357851
I never bother to really check
 
@DeadMG That's if you call "optimisation" to "whatever the optimiser does" :P
 
firstly
it's optimize, not optimise
 
and secondly
 
1:13 PM
I thought you lived here in the UK, @DeadMG?
 
I'm pretty sure the Standard says that :P
@LightnessRacesinOrbit I do
 
user1357851
google play is kind of cool in the way you can just chuck any garbage on it as long it is not virus and doesn't crash on start
 
@DeadMG well then

It's "optimise".

50 secs ago, 14 seconds total – 3 messages, 2 users, 0 stars

Bookmarked 10 secs ago by Lightness Races in Orbit

 
@LightnessRacesinOrbit who'd use IM((NS)H)O .. lol
 
1:14 PM
Knowing that Telkitty is on it, my hatred for mobile markets is justified.
 
last I checked, optimise is the US spelling and optimize is the UK spelling, much like many other words in similar positions
 
user784668
@DeadMG the other way around
 
hahahhahaha
 
@KhaledAKhunaifer what
 
1:14 PM
Puppy got confused from chasing his own tail :P
7
 
woof woof?
 
user142019
?foow
 
@LightnessRacesinOrbit it's an acronym in the guide
 
Yes, the Brits prefer the soft version with 's'. Manly #'MERICANS use 'z'.
 
@KhaledAKhunaifer okay

XML is good for interchange of data

Jun 22 '11 at 16:32, 5 minutes total – 14 messages, 3 users, 1 star

Bookmarked Jun 22 '11 at 16:39 by Lightness Races in Orbit

 
1:16 PM
@DomagojPandža I am not sure what you mean by "soft", but they are pronounced the same.
 
optimise is British English, optimize is American English
 
@R.MartinhoFernandes The look of it. 'z' looks manly. But that's just me. I'm weird.
 
IM((NS)H)O: In my ((not so) humble) opinion
 
@LightnessRacesinOrbit Dammit, there's a typo there.
 
user784668
1:17 PM
-ize is correct because it was -izein in Greek.
 
fuck Greek
 
hi
any mod?
 
Also "Instant XML" made me laugh.
 
@Fanael English wasn't derived from Greek directly
 
sbi
Hi.
 
user142019
1:18 PM
Hi.
 
user1357851
xml is the past, json is the new babe ... for exchange data between server and clients
 
user784668
@KhaledAKhunaifer I know.
 
for exchange between machines*
 
sbi
What do you guys think about the last edit to the book list question. I certainly think it's a good book, but I am not sure it belongs on the "Definitive List of C++ Books".
 
@KhaledAKhunaifer No, really?
 
1:19 PM
@sbi Never seen it.
 
@sbi What I would say is that if it's not going to steer the reader wrong and contains useful and accurate information, then it deserves to be there.
 
the point of the list isn't that every book on it is the pinnacle of excellence, it's that every book on it is a reasonable buy and not Bullschildt.
 
user1357851
feed = spam bot
 
1:20 PM
@sbi ahaha "there are very many very bad C++ books"
 
Xeo
> fixed typo
lawl
 
Holy shit. I was actually diverted today by the police, now I know why. Jesus fucking Christ, was he jumping to warp to end up like that?
 
@deadlock: Does this look like "Lounge<Moderators>" to you?
 
user784668
lol:
 
user784668
0
Q: Absense of standardized naming convention in the C++ "standard"

ddriverIs it just me or is the "standard" C++ library totally absent of uniformity when it comes to naming conventions? There are the underscore_identifiers, then there are many undecoratedidentifiers, then there are some capitalized like std::ios_base::Init, then there are the STL classes all in lowe...

 
sbi
1:21 PM
@DeadMG Then it's "The List Of C++ Books That Contain Useful Information And Are Not Wrong." Certainly not a "Definitive List".
 
@LightnessRacesinOrbit sort of yea
 
sbi
@Xeo Yeah. Asshole.
 
@DomagojPandža Ludicrous speed!
 
@sbi It's the definitive list of books that are not Bullschildt.
 
Xeo
@DomagojPandža Get under a truck moving in the opposite direction, that's what happens.
 
1:21 PM
at least, that was my perception, anyway
 
sbi
@DeadMG No, it's not.
 
@DomagojPandža What's in the picture? I can't tell.
 
@R.MartinhoFernandes It's supposed to be a cherry Peugeot, but it's so messed up they can't even identify the model.
 
@R.MartinhoFernandes Can't find it :(
 
user1357851
New badge idea: elitest troll (award only once a year)
 
1:22 PM
@DomagojPandža "kamiona" is "truck"?
 
Ell
Is the only need of enable_shared_from_this<T> when I want to return a shared pointer to this from a member function?
 
yes
 
@R.MartinhoFernandes Kamion, yes.
 
@LightnessRacesinOrbit haha, I knew you would look for it and probably miss it. Hint: it's in the French.
 
what the fuck else would the use be of "enable_shared_from_this" if not to produce, say, a shared_ptr from this?
 
1:23 PM
@Ell Well on the other hand outside of non-static member function you can't have this to begin with.
 
I can't imagine the force necessary to tear away the entire front bottom of a truck.
 
sbi
Well, so the puppy is in favor of the book being added to the list. What says the rest of you code monkeys?
 
(Mostly.)
 
user784668
@R.MartinhoFernandes á/à?
 
But it is common that people drive on that road +160 km/h because it is very straight.
I expected something like this to happen once, but that shit's messed up.
 
Ell
1:24 PM
Oh I just understood the intended meaning of enable_shared_from_this. I read it to mean enable shared pointers of this class when in fact it means enable getting a shared pointer from this. I so stupid xD
 
sbi
@DomagojPandža Straight into hell, huh?
 
@sbi Precisely. People are retards.
 
Retards are people, too.
 
user1357851
Once I fantasized about driving huge trucks, so I can intimidating the small cars around me
 
sbi
1 min ago, by sbi
Well, so the puppy is in favor of the book being added to the list. What says the rest of you code monkeys?
 
1:25 PM
@sbi People are going to look for TMP books more and more. We need something about that on the list.
 
user1357851
because I drive a tiny car
 
6 mins ago, by R. Martinho Fernandes
@sbi Never seen it.
 
Speed limit on that road is around 80 km/h. Also, it was raining. And this fool was preparing for warp, it seems.
 
user784668
@sbi code ape fails at reading
 
sbi
1:26 PM
@BartekBanachewicz That is a valid point. Yet, is this a book we want to advertise for TMP? If so, why?
 
@DomagojPandža The driver population contains examples of the dumbest people.
 
@sbi I'd like to answer with a question : Do we have anything that will really fill the niche better right now?
 
sbi
@R.MartinhoFernandes Yeah, and should I interpret this as a yay or a nay, you ambiguous tin jar?
 
@R.MartinhoFernandes There does seem to be an effective filter, though..
 
I don't think replacing it in future would be bad at all.
 
sbi
1:28 PM
@BartekBanachewicz What about the TMP book by Abrahams and Gourty-WTF-is-his-name? The "cat book" by Czarnecki and Eisenecker? Alexandrescu's?
 
the "driver population"
 
sbi
@Fanael Reading what?
 
@sbi I'd tend to agree -- I don't think it adds much (if anything) that Abrahams/Gurtovoy doesn't already cover better. That said, I'd say it borders on good enough to keep -- perhaps something like a footnote that "those who prefer a less theoretical approach may want to look at..."?
 
@sbi I haven't really read them, but aren't they quite different? If you feel that the previous one is complete enough, then OK, get rid of the new one.
 
user784668
1:29 PM
@sbi oh fuck, it's me who fails at reading
 
user1357851
 
@sbi It means I, like you, need more opinions to make a choice. :P
 
sbi
@Fanael Now go back hiding under that rock.
 
hm, actually
 
user784668
@sbi sir, yes, sir!
 
1:30 PM
what would you suggest as the 2nd book after C++ Primer? Because Effective C++ and all that still isn't up for C++11, no?
(apart from Josuttis about stdlib)
 
EffC++11 still isn't out yet
 
EffC++11 is still a long way ahead.
 
so is there anything else or should I just wait for it?
 
@R.MartinhoFernandes Oh, nothing. I was just picturing a species named "driver"
 
sbi
@JerryCoffin I certainly agree that Avrahams/Gour... is very hard to digest. It's telling that nobody said anything in favor of the book on that list. (I am not even sure who put it onto the list.)
@DeadMG I don't think he's even started writing it.
 
1:32 PM
@ScottW Commas are the enemy of friendship!
 
sbi
@BartekBanachewicz Well, Abrahams et al (hehe!) cover mostly the boost TMP lib, no? If Di Gennaro is different, then by all means I won't stand in its way. Still, so far all the books I see on that list, I can nod to. For this one, it's just that I wouldn't shake my head. That seems meager.
 
@sbi From his blog, I get the impression he's probably started, but that's about it.
 
sbi
@BartekBanachewicz What link is there that is rotten?
 
@sbi I have to agree. I'd say the only reason to even consider it is the relative dearth of books covering TMP at all.
 
1:40 PM
so because he once asked a question - a decade ago he couldnt possibiy be an expert?
 
Xeo
Nobody said that
 
sbi
@JerryCoffin Ok. That is another good point in favor of it, then. So I rest my case and won't remove it. However, I won't object if someone else removes it either. :)
 
@sbi isn't it pointing to inexistent comment?
 
@JustinMeiners I'm pretty sure it was more than a question (I remember seeing several as well).
 
@JustinMeiners s/question/questions/
 
sbi
1:42 PM
@BartekBanachewicz Oh. I clicked on the text, not on the time, and that got me to the comment that is, indeed, existing — if you're >10k.
 
@sbi Maybe we need to work at getting @LucDanton (and/or @Xeo?) to write some prose instead of just code...
 
sbi
@JustinMeiners That sentence missed an 's', not an "a ". Sorry.
 
@sbi s///
(Phew, I was left out)
 
@R.MartinhoFernandes Will it be a replacement or an addendum?
 
sbi
@R.MartinhoFernandes What am I missing? The comment is existing if you're >10k.
@FredOverflow A new edition.
 
1:44 PM
@FredOverflow AFAIK a different book.
 
@FredOverflow Sounds like nearly a complete rewrite on his blog.
 
Call it a sequel.
 
sbi
@R.MartinhoFernandes I don't think it will be different.
 
@sbi >10k is the main problem here :(
 
Same in spirit, but completely different content.
 
1:45 PM
@R.MartinhoFernandes So when will Scott write the prequel "Effective C with classes"? :)
 
sbi
@BartekBanachewicz If you do not even have 10k, why are you hanging out here, rather than giving good answers on SO proper?
@FredOverflow That one's actually written. It's the first (and to some extend the 2nd) edition.
 
@sbi He's soaking in the knowledge to give the good answers!
 
@sbi this ^
 
stupid questions, trivial answers. meh, that's boring
 
user1357851
100 = 10 ^ 2, 10k = 10 ^5 , only 3 away :D
 
sbi
1:48 PM
@R.MartinhoFernandes What knowledge is here to soak in? "How do I eternally put off finishing any of my projects"? "Why I don't want to leave my house"? "Why other people suck"? "How to waste time on the Internet"?
 
@sbi OMG, have you read my auto-biography? :)
 
user1357851
"How to waste time on the Internet"? - easy question for most regulars includeing you, unfortunately ... & me :x
 
sbi
@FredOverflow I would, had you finished it.
 
@sbi I haven't even started it yet :)
 
btw, @Tony, thanks for the effort you put on my bounty question. I won't upvote yet only because I don't want the bounty to be auto-awarded or something. But you brought up some bits that I missed and I think if I take half an hour to think this on paper I can figure it out. If I do, I'll answer and give you the bounty.
 
sbi
1:51 PM
@FredOverflow If I had the ability to read books that their authors hadn't even begun to write, I certainly had better things to read than your autobiography.
 
@Telkitty isn't 10k = 10,000 = 10 x 1000 = 10 x 10^3 = 10^4 ?
 
@sbi Frank Herbert's Dune 7!
 
user1357851
omg I can't do maths ~dies of shame~
 
Fuck Brian, btw.
 
sbi
@R.MartinhoFernandes Or the Game of Thrones series. Or Effective C++11.
@R.MartinhoFernandes I prefer women.
 
1:52 PM
@Telkitty it's easy actually, the number in the power resemble number of zeroes
 
@sbi haha, I didn't start that yet.
 
robot
are all types subject to ODR?
 
@Telkitty 1+2=3
 
user1357851
damn robot, you almost succeeded until ... well ... ape admits he does not do man
 
Xeo
Are types ever subject to ODR?
 
1:53 PM
can anyone answer, or just Robot?
 
@DeadMG When it comes to ODR I just wing it. I don't know any precise rules.
 
> [C++11: 3.2/1]: No translation unit shall contain more than one definition of any variable, function, class type, enumeration type, or template.
 
user1357851
@FredOverflow but 1.00 + 2.00 != 3.00
 
@Xeo Well, if you have class X in two different TUs, and the contents are different, then that's an ODR violation.
 
sbi
@R.MartinhoFernandes Seeing that it's already 5 books, I thought I'd start it. But now that I ploughed through those in short time, it seems like he's not even halfway through his plot and there seems to be no new one forthcoming. Meh.
 
1:54 PM
Trivial to look up yourself.
 
Xeo
Oh, wait, they are - in single TU
 
@Telkitty wrong
 
@sbi Last I checked he was working on other things :/
 
37.5% of 50 = 50% of 37.5 = 50% of (30 + 7 + .5) = 15 + 3.5 + .25 = 18.75
 
@LightnessRacesinOrbit I should have been more specific. The ODR also contains rules about duplicate definitions between TUs.
 
sbi
1:54 PM
@R.MartinhoFernandes Too bad.
 
Though maybe he will get back to it now that he is involved in the TV show.
 
easy math tricks are pretty useful
 
@sbi Oh, thanks! Game of Thrones S03 is on, I forgot about that. Download...
 
@DeadMG [C++11: 3.2/5]: There can be more than one definition of a class type (Clause 9), enumeration type (7.2), inline function with external linkage (7.1.2), class template (Clause 14), non-static function template (14.5.6), static data member of a class template (14.5.1.3), member function of a class template (14.5.1.1), or template
 
user1357851
how about try it with a compiler? :p float i=1.00; float j= 2.00; if((i+j) == 3.00) cout << "omg" << endl;
 
1:55 PM
let me just find my Standard copy
 
sbi
Anyway, I got some work to do before I leave for the weekend. See you!
 
> (cont.) specialization for which some template parameters are not specified (14.7, 14.5.5) in a program provided that each definition appears in a different translation unit, and provided the definitions satisfy the following requirements. [..]
So, basically, "no".
Anyway, 3.2 isn't so long, so it's okay to parse yourself to answer whatever more specific question you may have.
 
@Telkitty All integers up to 16 billion or something are perfectly representable with floats. And of course, doubles go even further. 1.0 + 2.0 == 3.0 definitely holds for IEE754.
 
how can you obtain 0.0000..001 and 0.9999..999 in float
 

« first day (902 days earlier)      last day (4039 days later) »