« first day (1060 days earlier)      last day (3886 days later) » 

12:00 AM
I set up a script to automatically make a build.ninja file and I use that to build it via their build system.
 
never really looked at its build system
> If a project is open, the selected build system will be remembered for the project.
Sublime Text has a concept of projects? Didn't know that either :)
 
Yeah
 
@FredOverflow I think its concept of projects is basically folders :p
 
homer@marge:~$ clang --version
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
That's not very up-to-date, is it?
 
Ell
.2 out of date
 
12:19 AM
Only 2 years. Don't worry, by Debian standards you're still on unstable bleeding edge.
 
lol
 
9
Q: How do I backport/install a newer version of clang?

Maik KleinI just want to install the newest version of clang http://packages.ubuntu.com/raring/clang-3.2 Does this mean I have to update my kernel to raring?

homer@marge:~$ clang --version
Ubuntu clang version 3.2-1~exp9ubuntu1~precise1 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
:)
This file requires compiler and library support for the ISO C++ 2011
standard. This support is currently experimental, and must be enabled with
the -std=c++11 or -std=gnu++11 compiler options.
come on!
homer@marge:~$ clang -std=c++11 hans.cpp
/tmp/hans-0FxL68.o: In function `__cxx_global_var_init':
hans.cpp:(.text.startup+0x11): undefined reference to `std::ios_base::Init::Init()'
hans.cpp:(.text.startup+0x19): undefined reference to `std::ios_base::Init::~Init()'
...
WTF? Does clang not come with a standard library or something?
 
10
Q: Error when compiling some simple c++ code

Jean-Philippe LeclercI try to compile this cpp code on osx lion but I get an error. #include <iostream> using namespace std; int main (int argc, char *argv[]) { for(int i = 0; i < 10; i++) { cout << "hi"; cout << endl; } return 0; } To compile: cc main.cpp Error: Un...

Ah, clang++.
 
lol..
 
12:25 AM
error when compiling myself
 
@KonradRudolph Why take some time in the morning when you can take it at night?
 
R Martinho, may I please compile you with clang?
 
12:49 AM
If it ended by abort being called, was it probably due to assert?
 
yes
 
It occurs to me I didn't use assert on this project.
std::exception maybe?
 
that's std::terminate
 
That doesn't in turn call abort?
 
No
 
12:57 AM
Hrm. I finally got the screensaver to work out of the box, and now it calls abort for somebody :\
 
I have no idea where to begin looking.
 
every damn time...
 
@Borgleader Haha. I know this all too well.
 
who shuts off their computer ever?
mine's been running for like four years straight
 
1:02 AM
@Borgleader The best part is when you are in the middle of a presentation and Windows decides that installing updates is more important.
 
NO! rand() is terrible, and so is modulus in combination with it! Watch this good talk.chris 2 mins ago
Yay, I got a chance to link to STL.
And Herb's is up :)
 
1:19 AM
Ok, its one of the exceptions I have it throw on getting a color out of bounds.
 
One of? You choose it at random, or what?
 
I mean to say it like this: I made a catchall in main, and caught one of the various exceptions I throw. It happened to be the out of bounds getter. Bad wording, sorry.
How do you usually fix a "it works on my machine" issue? It seems in this case I can insert debug information and have them tell me, but this would hardly be suitable in any other situation.
 
Logging.
 
Makes sense. In that case, a question of ethics (I think?): ask to send information back, or do it without permission?
 
Take a guess.
 
1:28 AM
In that case, the former, but I am not positive what is the norm. I haven't seen asking often, but I don't know how often stuff gets sent either.
 
Crash reporters.
 
Hm?
 
user425495
2:08 AM
I'm looking for some clarification on a statement Sean Parent made in his two GN2013 talks stackoverflow.com/questions/18709647/…
 
user425495
A shared pointer to an immutable type has value semantics is the statement I'm referring to
 
"//window size will not change and we will never create another window, so we make window global" - old comment in my code. Ouch :D
 
Half-life symbol avatar in the lounge. its the 9th of september, the square root of 9 is 3. Half-Life 3 confirmed
 
2:25 AM
LOL Herb's favourite 10-liner has a singleton.
 
2:53 AM
holy shit...
Sep 7 at 0:24, by Rapptz
Herb's favourite 10-liner has a singleton.
 
@Borgleader lol
Yes, I'm very behind.
 
> C++14-accompanying specifications for the file system library, basic networking library, and especially Concepts Lite
Is the networking library there Boost.Asio?
Or based on Boost.Asio?
 
Fuck VS2013.
What a pain to install.
I don't have time for that
 
I don't remember it being harder to install than 2012 or 2010
 
It's making me update my OS and install IE10
 
2:57 AM
My license has expired. Well, trial license.
 
user425495
has ms actually implemented the c++11 standard in 2013
 
Oh, see... I actually keep my OS up to date :P
 
And I can't update it to the RC version.
 
@MarkGarcia For 2013 preview? you can just update it.... i did so this morning
 
@Borgleader Windows Update or the updater inside VS?
 
2:59 AM
No I mean the license
this morning it was complaining about it i just logged in and bam it said i had a new one for 128 days
 
Guess I'll create a Microsoft account.
brb, have to fix someone else's computer again.
 
o.O
 
what is the best way to learn proper TMP? get a decent book and plow through it? (if so, any recommendations?)
 
what do you define as TMP?
 
3:07 AM
Fixed someone else's computer by unplugging and plugging some cords.
 
I'm interested in pretty much anything that can be done with templates atm, particularly expression templates
 
The fuck it sent without me pressing enter.
 
I know the very basics, but I am often stupified by the magic some people manage to pull off with templates here on SO .. so I am keen to learn more about it but not sure where to start
 
The "magic templates" on SO aren't expression templates.
 
Sep 5 at 12:37, by R. Martinho Fernandes
Too much TMP and you start thinking of types as values as types.
^ Very relevant.
And useful, when in moderation.
 
3:10 AM
@MarkGarcia thanks, I'll keep that in mind :)
 
I kinda think move-semantics helped lower the need for expression templates a bit.
 
@Rapptz yeah, I know, expression templates just happen to be something I use every now and then in projects where C++11 is not an option so while they may be dated, they are still useful in some of my projects
 
@MarcClaesen I'm still pretty much a newbie in the area, but I'm a lot further ahead by trying to make simpler things myself and looking up solutions.
 
Well, I learned templates by messing around with them myself.
 
@MarcClaesen I didn't learn TMP I just feed off @Rapptz
 
3:12 AM
@chris yeah, I try to learn by example too but I often feel like "there must be a better way to do this than x"
 
It's mostly about learning the tricks that you need to use to do specific things and then combining them however you need.
And for a better way, there are usually a good number of existing implementations to look at.
 
@MarcClaesen TMP isn't always the best solution.
At one time you'll start to think that everything should be solved using TMP.
Same hammer and nails problem.
 
my main problem is that in C++ there are many ways to get things to work, but many of them may not be optimal ... a car with square wheels can drive too somehow -- I want to end up with circular wheels as much as possible :)
 
Practice, experience, exposure.
 
user425495
implement your ideas as simply and cleanly as possible
 
3:15 AM
so in order to know what tool to use, I need to have a fairly deep understanding to all of them
 
user425495
profile and optimize if needed
 
@MarcClaesen Echoing Bjarne's keynote, C++ facilities must be used in coordination with each other. Generic, OOP and "conventional" code.
 
Hm.. speaking of templates. I haven't finished Concepts yet :(
 
@Rapptz then get to it you lazy bum :P
 
My question is bad and I should feel bad: ideone.com/tvLdmK
 
3:17 AM
@MarcClaesen Boost.Move!
 
line 7 doesn't work, lines 9 and 10 do, is there a better way than lines 9 and 10 though?
 
@Rapptz yeah, in retrospect I should have used that in some of my earlier stuff
 
@OmnipotentEntity Nope.
You're doing SFINAE wrong
 
so if I'm doing it wrong there is a better way then?
I tried using a base class, but because I have common methods that return derived classes I had to use CRTP and I wound up with: ideone.com/JdRweA
which seemed significantly more complicated
 
@OmnipotentEntity Your issue is you're calling functions (bar, baz) that don't have a proper type (the substitution fails) so the function doesn't actually exist. See here
ugh I messed that up
 
3:24 AM
right, so I used a subtemplate to allow SFINAE to happen.
whoops, closed tab.
 
Okay, I fixed it. ideone.com/5LP2UC
 
interesting moving that over to the template, hmm...
 
It makes no difference (it's a stylistic thing really)
 
right, your enabler class
 
It's just how I'm used to doing it
 
3:29 AM
there's not something in std:: that already does that?
just "empty class that is a valid type useful for TMP"
 
That's just so I don't have to do typename = EnableIf
Hm.. Robot had a blog about it
 
oh god damnit, the VS2013 Preview keeps crashing whenver I update the lib name from a VS2012 project I converted...
 
atleast it's showing its true nature instead of deceiving you into thinking it's good!
 
I learned most of my template/modern C++ from messing around with the people in this room.
 
I plan to be lurking here for the foreseeable future
 
3:42 AM
It makes no difference. It is purely stylistic. — Rapptz 12 secs ago
 
Yay for editing .vcxproj in np++ when VS bails on you
 
That question's interesting, I'm pretty sure it should compile :s
Works with std::unique_ptr.. hm
 
@Rapptz, thanks once again
 
No problem. :o
 
 
2 hours later…
5:19 AM
The room is empty... Woah
 
room.notify_all()
 
mawning
 
gudmawning
 
Good morning.
 
5:34 AM
RIP Lounge<C++>
 
6:00 AM
evening
 
Rip it to shreds.
 
It came back to alive!
Is it: 1) zombie, 2) vampire, 3) ghost or 4) others (please specify)
 
Good morning :3
 
Good morning.
 
6:13 AM
Suffering from cough.
 
9:12 am for me, and I just got a call from some number asking me if I'd like to donate to help a sick child who needs a major operation >:|
Why couldn't it be Jesusfreaks? D:<
 
Cool. You can use range based for with Boost.FileSystem
 
@MohammadAliBaydoun I sometimes get interesting calls
@ScottW yo baby dog
 
I kept searching for HTTP 1.2 where the next version is actually HTTP 2.0.
Google fu not that strong in me.
 
I can't get it to work :(
 
6:22 AM
@Rapptz You have to ask it nicely e-e.
 
coliru.stacked-crooked.com/a/abafb40e35110a86 I looked at the docs and there should be one :s
Also I don't know how to link boost there. Pretty sure -lboost_filesystem is right..
 
@ScottW I am doing good this afternoon. Had great lunch & currently having some chilled fruit juice while trying to fix this small issue.
Yourself?
 
6:48 AM
@ScottW The question is, who you doing tonight
 
Is that a giant cockroach in your avatar?
 
@Rapptz Boost is kinda broken on my machine, and I don't have the resources to build it. I'm gonna build it on @sehe's VPS and copy it to my VPS.
 
@Telkitty猫咪咪 It's a pitlord ;_;
 
7:07 AM
"I want append one string at the end of the file" - the people are confused. "At the end of file" is something entirely different than "at the end of the filename". Please clarify :/ — sehe 16 secs ago
@StackedCrooked Hah. Glad to be of hellup
@StackedCrooked Rip me a new one
 
sbi
> Nothing compares 2 U, 8hrs of contiguous sleep. #yawnsbi
 
So, that's how crappy internet lingo happens :/
 
sbi
Not today, no. *stiffles yawn*
Murkdown is weird. *just sayin'*
 
It is
shhh the ape doesn't know about \\* like *this*
 
in Sandbox, 4 hours ago, by Caprica Six
user image
lol
 
7:20 AM
0
Q: Please delete user 2763826

Alex ShesterovAs it is not possible to flag users, I'm creating a post here to draw moderator attention to this user: http://stackoverflow.com/users/2763826/siegheil The "highlights" are: Hateful name Inappropriate "About Me" text (in German language) A single trash answer IMHO, it should be removed...

^^ Anyone wanna translate that?
:)
Aww... user deleted already. Didn't get a chance to screenie. :(
 
This user is making all sorts of mess in the Sandbox.
 
so
downloading a 900MB service pack at the rocket speed of 250kbs
 
@DeadMG OS service pack?
 
yep
 
I hope it's not WinXP.
 
7:23 AM
nope
7.1
 
I don't know if Win 7 SP1 has that much "life-changing" improvements. Still, as an update addict, I'm drawn to download em all.
 
still gonna take an hour
and then I need IE10
 
sbi
@ScottW You are sooo cute.
Bitte, bitte.
 
7:36 AM
Please let this user come to Meta to complain about moderators being Nazis...please.... — Bart 1 min ago
 
JBL
Good morning !
 
This must be one strange use of the word "Simply" that I was previously unaware of — sehe 1 min ago
dat answer
 
oof. Very very happy that my answer on the Stack Overflow question that STL links to is not being called out by him.
 
Xeo
lol, why?
 
Yeah. That goes counter to rationalism. That's... unpexpected from a Konrad
 
7:48 AM
Well who likes their code being called out as bad in a public, highly watched talk?
 
Xeo
Oh, you mean called out as bad
 
yeah
well everything there is bad :D
 
@KonradRudolph You know, the "victim" got to edit his answer, get highly publicised and consequently highly upvoted. All this, for basically repeating the eternal mistake that everyone makes, so it's an... anonymous crime, really
What's the link, again?
 
8
Q: How do I scale down numbers from rand()?

MaxpmThe following code outputs a random number each second: int main () { srand(time(NULL)); // Seeds number generator with execution time. while (true) { int rawRand = rand(); std::cout << rawRand << std::endl; sleep(1); } } How might I size these number...

lots of wrong answers ;)
 
I might have an answer there too. Though I think I always referenced eternallyconfuzzled.com/arts/jsw_art_rand.aspx back in the day (i.e. before <random>)
 
7:51 AM
@sehe Yeah, me too. Saved. ;)
Julienne Walker rocked :)
although her article is also subtly wrong AFAIR
 
@KonradRudolph Not fully, it's a save on the uniform distribution thinking, but not really on the sloppy seeding :/
 
@sehe Actually she has a section on seeding
 
@KonradRudolph ISTR that too
I never realized that author might be a female author :/
 
sounds that way, but since (s)he doesn’t tell anything about themselves (except the name), hard to tell
 
@KonradRudolph Much stronger save:
Please don’t use that method in practice – it’s bad. — Konrad Rudolph Nov 16 '10 at 15:56
 
7:54 AM
although IIRC she was actually active in the C usenet for many years
 
I wouldn't know about that. "Usenet" is one of those words that sound familiar, but otherwise return blank
 
@sehe Mailing lists
 
Yeah. NNTP? It's just a cloudy name for it. Reminds me of BBS systems
 
Evil++ should have a deterministic random_device with a period of 2.
0, 1, 0, 1, 0, 1, 0, 1 …
Also, everyone pronouncing char as /car/ gives me the willies. I pronounce it (illogically) as /tshar/.
12
 
Xeo
"character" -> "char" -> /car/ :/
 
8:09 AM
sure, logical, still sounds crummy
 
> "People should be happy that its the good guys and not the Russians or the Chinese. "
> As far as we know, US has started more wars in last 30 years than Russians or Chinese put together and you call them "good guys"?
 
@Xeo I bet you say jif instead of gif too! :p
 
ouch
 
I'm on Team Illogical here
 
I say car.
 
8:09 AM
Source?
 
@Rapptz Weirdo :)
 
True, though, the west has a problem with considering itself "the good guys" without any understanding that this is wholly subjective. Using "we are the good guys" as a basis for intervention is entirely bigoted.
 
I also say Jif.
 
I'm with tshar. You want to make the etymology of your word audible
 
I don't say car or tshar. I say character ;3
 
8:10 AM
@Rapptz freak :)
 
@MohammadAliBaydoun Yeah, that works. Not. Good luck you meant the primitive type, not the 'logical entity' that lacks a good definition
 
Well, at least I don't pronounced meme as "me-me".
 
“char” as in “charcoal” ;)
2
 
Yeah yeah, calm down
I know
 
8:12 AM
@KonradRudolph lol that's a good one
 
Most awkward inappropriate lol of the day
 
sbi
@jalf What do you mean, "here"?
 
@Rapptz I say automobile
 
I'm a car, too. brrrrmm... \O.o/
 
8:14 AM
well, I gotta admit, that's a new phrase to add to my repertoire
"Good morning!" "Good England to you!"
and at christmas time, you can have a nice "Merry England!"
 
I’m out as well, going for a punting trip with collaborators
 
JBL
@MarkGarcia I'm staring at that code wondering what's the point :D
 
@sbi "here" does not imply "and nowhere else". ;)
 
@MarkGarcia Bjarne doesn't dictate me!
 
8:22 AM
@JBL Promoting Herb's initialization syntax! :)
 
sbi
> I don't want to change the word, I'm not looking for a new England. I'm just looking for another girl. — Billy Bragg, New England
 
JBL
@MarkGarcia Oh I probably missed that (but I fail to see how it can be used...)
 
@JBL TMP types/values perhaps? Just like variable initialization, but for types.
 
@MarkGarcia You can make things far worse: coliru.stacked-crooked.com/a/5d49fe66a997b603
@Rapptz If he did, you would have known how it's pronounced, silly
 
@sehe Dafuq. I'm completely speechless.
 
8:29 AM
Don't be. Try template <typename> using lol = int; lol<struct fancy_int> j = 42; coliru.stacked-crooked.com/a/853b43eddafaacee
 
Xeo
still just a plain int :/
 
I knows that.
I'd love some new type behaviour a la Hasjell though (inb4 BOOST_STRONG_TYPEDEF)
 
newtype is just an optimisation over normal data
 
But it's unlifted :v
What say you now!?
 
8:33 AM
That's the important part, IIRC. You can make the new type instances of TypeClasses using other implementations
@DeadMG I think the point is that std::is_same<lol<struct A>, lol<struct B>>() evaluates to true-ness
 
sbi
@JBL Has the fact that it's hard to see a legitimate use for some accidental side effect of a feature introduced for some other purpose ever stopped C++ programmers from coming up with the most weird code making illegitimate use of it?
 
lol *Has[jk]ell ^^^^^^^
 
&str[0] is valid right? With str being std::string.
 
@sehe That's interesting...
 
@sehe That's true. You can still make some creative uses of it by specializing the template, though.
@Rapptz Yep.
 
8:36 AM
@Rapptz Depends on what you are trying to achieve
 
@Rapptz In C++11, yeah.
 
@DeadMG Zing. Of course, how could I mentally have unrealized
 
Can't specialise aliases.
 
Oh, that's presumably how why I did manage
 
@R.MartinhoFernandes No, but you can specialize the function.
 
8:37 AM
C++ is just loadz of fun, innit
 
@sehe I'll probably just use data. I'm using the underlying pointer as an iterator to create substrings using an index.
 
And what then? Get different behaviour depending on the explicitly passed template argument? That's nothing new.
 
@Rapptz str.data() should also work. Or &str.front() :D
 
Xeo
> While researching this article,[5] I managed to lock up my copy of Mathematica several times on balloon-related differential equations, and subsequently got my IP address banned from Wolfram|Alpha for making too many requests.
 
sbi
@Rapptz I'm not sure about C++11, but I think in C++03 it's UB if you do that to an enpty string.
 
Xeo
8:39 AM
@FredOverflow the former even works for empty strings, IIRC
 
@KonradRudolph STL pronounces char as "care", because that's what the first syllable of "character" actually sounds like.
 
god
 
sbi
> command "god" not found
 
user1804599
theist
 
s[s.size] is always valid in C++11 strings.
But only with parentheses.
 
8:41 AM
@KonradRudolph Na, it should just always return 4.
 
sbi
@R.MartinhoFernandes s[s.size]() or (s[s.size])?
 
@FredOverflow Reminds me of a discussion I overheard between two choir members. The question was whether "amiable" should be pronounced "/ˈāmēəbəl/" or ah-my-able
"Bad command or filename"
"Redo from start"
 
sbi
"You say tomato and I say..." fuck tomatoes.
 
Oh you
 
Xeo
But tomatoes are delicious :<
 
sbi
8:43 AM
I can't eat tomatoes.
 
Xeo
They're not made for fucking
 
They are disgusting.
 
I don't like them for oral applications
 
homegrown tomatoes are way tastier than store-bought tomatoes
 
sbi
It's a trait that seems to run on the Y chromosome: Like me, all my boys can't eat tomatoes. All my girls love tomatoes.
 
8:44 AM
Tomatos wreck my gums
 
@Xeo Yes they are ;_;
 
sbi
@DeadMG I don't grow them at home, but I have them in my garden. For the girls, obviously (which all agree with you, BTW).
Anyway, I gotta work. Bye!
 
bb
 
Meh.. all that schadenfreude when robot, Ell etc. were stuck interminably in airports has come back to bite me. I'm off to Lanzarote today and French ATC are acting up :((
 
9:01 AM
 
9:13 AM
@sbi my brother seems to hate tomatoes as well, so..1 out of 3? :p
 
@MartinJames I actually put some weight back on. 42 pounds now.
 
@DeadMG Trying to cheer him up at the airport?
 
just pointing out that even the best of us sometimes drink too much water before getting on the scales
 
9:28 AM
"Is there an existing library in C++/Excel that I can use" - lolwut — sehe 9 secs ago
 
Wait, stoi doesn't exist in gcc 4.7.2? :|
 
lol
 
Still better than C/C++
 
C++/Excel? FFS
 
Robot, are you picking up a bad habit ("FFS")?
 
9:31 AM
@sehe I pronounce it as /f fs/
 
Fucking FileSystem
 
Like I'm hissing at the stupid.
 
Ah. Playing with fire. The slippery slope. But still mentally uncorrupted :/
 
in herbs talk, wasn't there a FileSystem group on the slides? what was that about?
 
Xeo
Boost.Filesystem standardized
 
9:39 AM
ah.
 
It'll feel good to start changing boost::filesystem in my code to std::filesystem
 
^ "...in C". ugh. :p
 
9:47 AM
@melak47 no linux :[
 
Assign< Var<'x'>, Int<4> > :/
 
And I thought factorial was a bad example of TMP.
 
Xeo
Meh ArgList and Arg<0>, Arg<1>
 
@Xeo 4350% ?
 
Xeo
9:59 AM
GHGAEGFAHVAFVAJKGÖADHÖA
Fuck you Flash
y u nullreference in generated code
 

« first day (1060 days earlier)      last day (3886 days later) »