« first day (982 days earlier)      last day (3965 days later) » 

11:00 AM
@R.MartinhoFernandes why? I kind of enjoy bringing all your "buddies" here. Apparently sehe's shy of new people, but I am not.
 
@LightnessRacesinOrbit ITT I can't exceptions.
 
BTW @sehe, why are you not using your original name?
 
Has anyone ever worked on an AI / Robotics project?
 
@ApprenticeHacker yes, both.
 
@not-sehe eh?
 
11:02 AM
@BartekBanachewicz nice. I'm really interested in it. What kind of project did you work on? Is there a description of it online?
 
No example in the docs :(
 
@LucDanton I'm going to look for it anyways :/ Later
 
@Telkitty猫咪咪 Is "fuck off" an appropriate response?
 
@LucDanton I reckon you saw clang.llvm.org/docs/ClangFormat.html
 
11:05 AM
> git diff -U0 HEAD^ | clang-format-diff.py -p1
^ looks cool
Plonk is appropriate. (Unless you're racing in orbit)
 
@R.MartinhoFernandes you know ... if you really hate me ... you can always leave this room ... just a thought ^_^
 
fuck it. why the abs(int) function doesn't return unsigned int?
 
no point maybe
max(abs(int)) = max(int)
 
@not-sehe why did you add a "not-" before your name?
 
@Abyx Why would it?
 
Xeo
11:08 AM
@Abyx auto abs = [](int val) -> unsigned{ return std::abs(val); };
I have that in my code to silence warnings :D
 
@R.MartinhoFernandes warnings =\
 
@Xeo you would slow down your program just to silence the compilation warning?
 
TIL Bjarne Stroustrup is on Stack Overflow
 
also it returns a positive value. it has to be unsigned
 
@KonradRudolph seriously? Awesome!
 
11:09 AM
@KonradRudolph omg where?
 
@Telkitty猫咪咪 huh? it doesn't slow anything
 
one answer
 
Xeo
@KonradRudolph He's also on SO directly, with one answer.
 
damn, then he hasn’t connected his profiles :/
 
11:10 AM
@KonradRudolph I doubt it's him. I mean, 241 rep. ?
 
Xeo
@ApprenticeHacker So?
 
@ApprenticeHacker It’s him, unless David Wheeler had two PhD students with the same first name
 
@KonradRudolph oh. sorry, then.
 
Ugh, why do I keep checking up on the Asylum.
 
11:12 AM
@KonradRudolph nothing mentioned about being a phD student ... just a student
 
> This proposal (...) introduces chained conversions for conversion constructors.
 
@Telkitty猫咪咪 In the only question he answered, he said David Wheeler was his thesis adviser
 
28
A: Can too much abstraction be bad?

BjarneThe very first words of TC++PL4: All problems in computer science can be solved by another level of indirection, except for the problem of too many layers of indirection. – David J. Wheeler (David Wheeler was my thesis advisor. The quote without the important last line is sometimes called "The...

 
Mikhail is back.
 
Xeo
11:13 AM
@R.MartinhoFernandes :D
@R.MartinhoFernandes Oh gawd, the bool thingy...
 
Gorbachev?
 
I had a thesis supervisor for my engineering undergrad degree
 
@Telkitty猫咪咪 then I'm confused.
 
@KonradRudolph No, Semenov. Keeps posting on the Asylum, and IMO is one of the culprits for that nickname.
 
Is he Bjarne or not?
Perhaps some other guy with the name Bjarne...
 
11:15 AM
> These types would allow boolean results to be handled using OO techniques instead of if/else statements.
@Xeo Oh gawd.
 
@R.MartinhoFernandes I’m not familiar with that nickname – what’s the Asylum?
 
Xeo
"I have this thing that has absolutely no real use, and please make it standard."
 
Or maybe the thesis advisor's name was really David J. Wheeler, but another David J. Wheeler ...
 
Xeo
@KonradRudolph std- asylum proposals
 
Anyway, I have to go now. Giving my A Levels in October. Need to study. sigh
 
11:16 AM
ohayo
 
@R.MartinhoFernandes Ahahaha that last thread.
 
Xeo
May 23 at 17:00, by Xeo
aka C++ Asylum
 
If I have a function which delivers an array of chars in chunks, should I push_back each chunk to a std::string directly or should I use std::vector and then construct an std::string on the end using the range constructor? I also know the size of the chunk so I can reserve.
 
@Xeo You mean C++ Goldmine.
> (I didn't think thoroughly about the details).
Bad clipboard.
 
11:21 AM
@Tuntuni There's an overload of append that takes a pair of iterators. For either.
Well it'd be insert for std::vector, but same principle.
 
@LucDanton I'm wondering if std::vector is more optimized or something?
 
Than std::string? No.
 
Even if it were, how would you know if it's worth it without measuring?
 
@LucDanton True. Premature optimization ...
Right, thanks.
 
std::string might employ SSO, but that's space optimisation anyway.
 
11:22 AM
Flawed reasoning, more like. You expect a saving from adding an intermediate step.
Occam's, YAGNI, lazy is a virtue, etc.
Amazing the number of pre-cooked reasons I can bring up not to do something!
 
@LucDanton Eh, yeah, feels weird now but I wasn't sure if vector was more optimized or something but now I have no idea why I even thought about that.
 
Eh the chat would work beautifully as XMPP MUC.
dreams
@Tuntuni Because you're writing C++, and it causes brain damage.
 
@CatPlusPlus Fair enough. :D
 
> I have to put them into a tuple and then take them out of the tuple: how long will it take!?
Let's start isocpp dot txt.
 
@CatPlusPlus So fucking common around there.
 
11:34 AM
> These types would allow boolean results to be handled using OO techniques instead of if/else statements.
Gold. Mine.
 
M8R-461ss21@spam.rmartinho.com => Doesn't look like a valid email? WTF
lol, Twitter won't allow capitals in e-mail addresses...
 
Email validation dot com.
 
Cat++ what are you doing here? Did you ditch humanity and your friends?
thought you are off to the meeting and the exam?
 
Meeting's over.
 
@stdasylum
1 tweets, 0 followers, following 0 users
 
11:38 AM
that's quick ...
 
You forgot .txt. :<
It's ~20 degrees here today.
 
@CatPlusPlus Meh.
 
11 degrees outside, 18 inside
 
11:54 AM
I updated my answer again
I added a solution using C++
 
$27.99 hardcover generates $5.67 profit to publisher and $4.20 royalty to author
$14.99 agency priced e-book generates $7.87 profit to publisher and $2.62 royalty to author.
 
and containers
 
@ApprenticeHacker they were mostly for school, so I don't have much sources of them. Anything you are particularly interested in?
 
Man, I feel like I'm really starting to understand written German. This is awesome.
 
11:55 AM
read it and weep, i got the best answer now
 
@raxman much better, but still could be improved
most notably, you are not making use of initializer lists
 
of course, but better is the enemy of good
 
v(a, a + sizeof(a)/sizeof(a[0])) that part is still terrible
 
Also, I realised that my Twitter profile reads "Inside the Asylum" under location.
 
i don't care, my answer is still better
 
11:56 AM
@raxman if that was true we would still sit in the caves or use C
 
that's just in the main function
not the print function
print_array function
It is true
my answer is more general
it's not limited to just static_arrays
 
@raxman no, because juanchopanza linked to Kerrek's library
and you have no chance writing something like his library :)
 
well I did it on my own, it also shows I know C++
so vote me back up
even if you don't think it's best
 
from what I see you copied the template version from his answer.
 
there is no reason it should be -8 now
no, i never looked at it
 
11:59 AM
@BartekBanachewicz linkage?
 
This is what I think:
 
@DeadMG extern "C++"
 

« first day (982 days earlier)      last day (3965 days later) »