« first day (1349 days earlier)      last day (3589 days later) » 

Xeo
7:03 AM
Mornin
 
7:17 AM
just found this:
Bar::Bar(Bar const& other)  try : data((other.m.lock(), other.data)) {
    other.m.unlock();
} catch(...) {
    other.m.unlock();
}
Kinda convoluted :)
 
Xeo
ew
and not even rethrowing the exception
eewwww
 
A while ago Anthony Williams posted a blog that presented the same problem (thread-safe copy constructor) and proposed a solution using constructor delegation.
Which looked much nicer.
 
Xeo
yeah
 
@tvlada I just tried the sscce I posted yesterday on MSVC2013/Boost_1_55/Win8 64bit and it works just fine with the scenario you described. Can you check the behaviour on your system with the sscce? (Oh, replace __PRETTY_FUNCTION__ with __FUNCTION__ for MSVC, the rest just worked without any change). — sehe 14 secs ago
MSVC is slowly getting better. I anticipated non-compliers and slient bugs related to uniform initializers in NSDMI
 
@Xeo apparently the rethrow is implicit unless the program is aborted
 
Xeo
7:20 AM
@StackedCrooked Wut
 
@StackedCrooked just body-level try, yes good to know about; even better to avoid
@sbi Hi
 
@Xeo According to the article.
 
wasted a day on 2 meetings, various calls/messages & emails
 
don't think so
 
@StackedCrooked People would have been raving "C++ already has finally for ages" if that were the case
 
7:22 AM
How to being busy, get old without accomplish anything
 
@chmod711telkitty don't do various calls anymore. Only particular calls
 
Xeo
@StackedCrooked Huh, it's actually true
 
> Any exceptions caught in constructors or destructors are rethrown implicitly: "The currently handled exception is rethrown if control reaches the end of a handler of the function-try-block of a constructor or destructor" (15.3.15 C++ International Standard (Draft)/n3337).
Hence, the most you can do when catching an exception in such context is to log it and possibly run some clean-up code. This is a good thing. If the construction of an object fails for whatever reason, you should not attempt to "save" that instance.
@Xeo Well what do you know :) Another trivia added to my list of things (a paragraph in the "things best avoided" section)
 
is it only with those freaky try-catch blocks?
 
Yes
 
Xeo
7:25 AM
Yes
and only for ctor and dtor
 
oh okay
cause it doesn't work for functions
 
Xeo
normal function-try-blocks don't exhibit that behaviour
 
15.3.15
 
@sehe only had time to reply calls ... did not active make calls unless I had to
 
lazy bastard
 
7:27 AM
then spend small part of the evenings finishing up the app
 
Xeo
Damn. "Pixel Graphics - Hardcore" didn't win the Steam community vote
 
sooo! it makes you magically productive in the evenings then
 
Xeo
Suckers. No Cave Story+ for 50% off :(
and no VVVVVV for 75ct
 
No new Bentley with a loaf of bread, morons :(
 
Cave Story best OMA game
 
Xeo
7:30 AM
I wanted to get the + version if it won the community vote
 
you've really never played CaveStory?
 
Xeo
nope
 
So I realized I served more than my fair share of spaghetti.
 
Oh.. how strange.
Surprisingly I don't seem to have Humble Bundle 7.
seems I skipped it cause I had everything on it
 
Xeo
@ThePhD Good boy.
 
user1804599
7:40 AM
@StackedCrooked dat code
 
I can't believe someone on 4chan actually managed to make over $1m on selling their game. :(
This isn't the 4chan I once knew
 
user1804599
lol
 
user1804599
A colleague bought an RGB lamp with an API that's he's going to make shine red or green depending on whether his automated tests fail or succeed.
 
sounds like a real novelty
 
Xeo
@Rapptz lol?
 
7:47 AM
@rightfold He didn't realized he has 1000sx1000s of RGB lamps in front of him.
 
@Xeo hm?
 
> :(
 
Xeo
Which game, actually?
 
That is "I'm jelly" sad face.
@Xeo Risk of Rain.
 
user1804599
@MarkGarcia not LEDs!
 
7:49 AM
@Rapptz "Risk". "Rain". Sounds like yet another DDOS plan.
 
Xeo
@Rapptz Oh, cool.
 
I wish I could make >$1m on something I made.
Sounds cool.
 
user1804599
One day I will make billions off Hexapoda.
 
lol
 
user1804599
But not today.
 
7:55 AM
@Rapptz Wait. Do you mean they got 1mil from crowdsource or did they actually sell the game?
 
The game's been out for a while lol
 
Oh.
 
user1804599
Which game?
 
15 mins ago, by Rapptz
@Xeo Risk of Rain.
 
user1804599
Looks fun.
 
Xeo
8:05 AM
My PC can't properly handle it :(
It slows down if there are too many enemies on the screen
 
that's because it's made in Game Maker
 
user1804599
Game Maker was nice.
 
user1804599
Now it's terrible.
 
It hasn't changed much.
The interface is still the same lol
Game Maker Language is still terrible though
 
user1804599
The room editor is terribly broken.
 
user1804599
8:08 AM
GM6 and GM7 worked great.
 
I'm not sure how they changed it, looks the same to me.
I haven't used GM6 in forever though.
Oh the GM6 room editor looks like ass lol
 
user1804599
At least it worked.
 
So, waiting for random people on the internet to write it for you isn't time consuming? I've looked some more at it, and I'm convinced read*_at is only implemented for (basic_)random_access_handle(_service) (Windows specific). So, you simply cannot use it for sockets. You can use buffer arithmetic though (the responsibility for range checking is on the caller though): boost.org/doc/libs/1_55_0/doc/html/boost_asio/reference/…sehe 1 min ago
 
user3010322
8:26 AM
So I just watched all of NGNL up to now.
 
user3010322
Kind of an idiot for doing it, because that shit isn't even fucing completely. :(
 
user3010322
So now I have to roll around and be upset that it's not done and go to bed upset.
 
user3010322
I blame @Xeo.
 
Xeo
It is complete
12 episodes
The season is over
 
user3010322
THAT CAN'T BE THE END.
 
Xeo
8:28 AM
sorry bud, it is
Hopefully there'll be a Season 2
 
user3010322
Gggggggggggggggggg fuck this gay earth.
 
meh, I don't see what you're so upset about
people read incomplete stories all the time
 
Xeo
@ThePhD Hey, it wasn't a total cliffhanger ending at least!
 
user3010322
@Puppy I hate incomplete stories.
 
I am happy again ... so weird. I am so glad my gene gives me default happiness. But this happiness is constantly ruined by other people. Most of my sadness are caused by other people
 
user3010322
8:30 AM
It drives me fucking insane.
 
Xeo
Even the Light Novel isn't complete
and meh, if I'd only read complete stories, I'd have read almost no Manga / LN
 
user3010322
I remember I watched Mirai Nikki the Anime and I went mad until I went and binge-read the whole Manga and didn't sleep.
 
Xeo
I'm currently following loads of running manga, and reading a few running LNs as well
(SAO, Index, Mahouka, NGNL soon)
 
user3010322
I used to check out ongoing stuff, but then I just stopped. Too annoying, too little updates too slowly.
 
user3010322
Would rather wait a year and then gorge myself on it.
 
8:32 AM
way more than a year in most cases
 
user3010322
@Puppy Yeah.... like the Beserk author.
 
user3010322
Guy goes on more sabbaticals than a Tenured Professor.
 
user3010322
But, he draws his mangas in entirely an old style: inked paper and pencils, IIRC. Redraws if he screws up.
 
user3010322
Fuck it's 2 AM. I have to be up in 4-5 hours...
 
Hmm.. xxd is useful for turning files to C arrays
 
user3010322
8:38 AM
That tool that exports all the bytes of a file into a backslash-escaped hex char[] array?
 
no
turns it into hex literals
$ echo lol | xxd -i
  0x6c, 0x6f, 0x6c, 0x0a
 
user1804599
lol
 
user1804599
-i doesn't work with stdin.
 
user1804599
% echo lol > lol
% xxd -i lol
unsigned char lol[] = {
  0x6c, 0x6f, 0x6c, 0x0a
};
unsigned int lol_len = 4;
 
I didn't feel like making a file :c
 
user1804599
8:41 AM
% xxd -i <(echo lol)
unsigned char _proc_self_fd_11[] = {
  0x6c, 0x6f, 0x6c, 0x0a
};
unsigned int _proc_self_fd_11_len = 4;
 
user1804599
:D
 
user1804599
Penguin operator is so awesome.
 
$ xxd -i <(echo lol)
sh.exe: cannot make pipe for process substitution: Function not implemented
okay :(
  0x6f, 0x6b, 0x61, 0x79, 0x20, 0x3a, 0x28, 0x0d, 0x0a
, 0x0d, 0x0a
, 0x0d,
lol
 
user1804599
Don't use sh.
 
it's either sh or cmd
 
user1804599
8:48 AM
fish!
 
> eggoeater: Another variation that works well for me, is to pretend I'm posting the problem on a website like stackoverflow, but just type it into a text file. In the process of typing it out, I usually make some assertion that I then end up questioning, that ends up to be incorrect and the cause of the problem.
> TombatWombar: I was always told to explain my problems to Fred the invisible programmer, I assumed this was something that most people did.
Come on people, explain your programming problems to me :D
 
Xeo
Rubber Fred Debugging
 
I fucking hope you can't hear me when I say my programming problems out loud.
 
Rubber Fuck debugging?
 
user1804599
My rubber duck is Facebook chat.
 
8:52 AM
lol
 
user1804599
 
9:09 AM
15
Q: Getting laid in the Dark Ages

FlammaIn Dark Ages: Vampire only one method of hunting is provided: wander the streets, spot a villages, and attack him to steal his blood. There are no rules for seductive hunt. There may be two reasons for this: Vampires then used to have more trouble dealing with mortals, except those in Via Human...

dat title :D
 
user1804599
Dark Ages are dark.
 
I really get bad vibes with the "commercial" attitude on CppRocks:
> [C++11/14 Template Additions Mini-Course](http://cpprocks.com/c1114-templates-crash-course/) - Learn about all the template features introduced in C++11 and C++14 - for free. The course is delivered by email over 5 days.

Your email: ...
 
Who would want to learn C++ from the Internet, anyway?
 
desperate people?
 
Everyone does. Who wants to learn it from a book?
 
9:17 AM
me me me
 
@sehe I did.
 
Trustworthy colleagues are just too rare to trust
 
Programming books are boring
 
@BaummitAugen Yup, me too. That was back then. C++11/14 features aren't in dead tree form yet
 
My favorite medium for learning stuff is YouTube though :)
I wanna see people code.
 
9:18 AM
Now I'm stumped
1 min ago, by FredOverflow
Who would want to learn C++ from the Internet, anyway?
And you choose.... YT vids ?!
 
Don't worry, I download them to a USB stick and watch them offline.
 
@sehe For me, "back then" was about a year ago.
Used "The C++ Programming language", so luckily got a good overview over C++11 too.
 
Doesn't make the medium any more suitable
 
@BaummitAugen Interessanter Nick :)
 
@BaummitAugen That could work. Yes, books are the way for me too, but past "entry level" the internet seems a much more versatile resource and more likely fit
Jun 14 at 23:00, by sehe
That's an interesting screen name
 
9:21 AM
 
@FredOverflow My usual go-to nick is malloc, but that seemed rather unfitting for this site and room. ^^
 
malloc is an abbreviation for "malevolent line of code".
15
Mit so vielen deutschen Mitgliedern erkläre ich die Lounge hiermit offiziell zum deutschen Hoheitsgebiet :D
@sehe What is literate programming, anyway? Using Javadoc?
 
Magic Amazing Long Line Of Code
 
Argh, what's wrong with Wikipedia right now?
How am I supposed to write my thesis like that?
 
user1804599
This is awesome.
 
@FredOverflow Don't put bad words into my mouth :)
 
user1804599
PHPDoc ftw.
 
@FredOverflow Literate code, in my liberal interpretation, is any kind of code that allows the absence of comments, without compromising maintainability
 
-3
Q: What are some "must-learn" programming languages for a good start in this field?

user3778629I'v started learning to code recently using the internet (mainly Code Academy) so I'd like to know some languages that are recommended,easy-to-learn and common...also i wanna know what websites are these languages for free(online)..thnx

 
9:56 AM
@rightfold it's helpful
 
@sehe the character in the final panel looks oddly like Zippy
 
user1804599
Grouping is pretty neat when logging multiple things inside a loop.
 
user1804599
> var debugger = 1
SyntaxError: Unexpected token debugger
 
user1804599
but this oh oh oh
 
10:08 AM
ninja: error: mkdir(obj\release\.): File existsn.o
great error
 
they can't even spell "existen" right
errormessagegenerator.thecoshman.com
 
apparently that's std::perror
wtf
 
perror is libc, so it gets imported like everything else
 
I can't find it on google but the source indicates it's strerror
Error("mkdir(%s): %s", path.c_str(), strerror(errno));
 
Oh, the artefact. That's just improper line clearing
 
10:15 AM
Day not starting well. Wall of linked server<>client IOCP code, no error messages, no debugging results, 'it does not work' [sigh]:
http://stackoverflow.com/questions/24425585/cant-receive-data-from-remote-server-using-iocp
 
Standard SO question
 
Why do you bother is the interesting part :v
 
view the gallery to the end
 
@CatPlusPlus I just got up. I have a hangover. I've only had one coffee. My brain has minimal CPU available ATM. Yes, I should have ignored it:(
 
10:23 AM
@AndyProwl There are new available seats for the conference you were looking at.
 
aw
 
Got drunk yesterday again too, for some reason or another
 
there's nothing similar to os.path.normpath in Boost.Filesystem
 
Stupid shit
 
10:25 AM
closest thing is boost::filesystem::canonical
 
@CatPlusPlus I've been out late drinking every night this week so far. I was at the fucking casino at 4am last night. What's wrong with me
(Did alright at blackjack, mind you..)
 
maybe you are depressed?
 
I was soldering a PCB at 4am. What's wrong with me
 
@Rapptz Risk of Rain is awesome!
 
No, it's not! Clear skies are better.
 
10:30 AM
Hopeless linked-list question. Guess who answered it?
http://stackoverflow.com/questions/24426138/inserting-a-new-element-at-head-of-a-linked-list-and-printing-the-elements-value
 
Can we delete answers as too localised
 
@LightnessRacesinOrbit I won the first lotto house at club last night. Left with more cash than when I entered, for a change.
 
Someone tell me what the fuck is Romantically Apocalyptic about because I've lost track a long time ago
 
@R.MartinhoFernandes If you're in the zone, nothing.
 
@MartinJames ooh... is it... is it.......
YES IT IS!!!!! :D :D :D \o/\o/
 
10:43 AM
@LightnessRacesinOrbit Sadly, no prize for that VladSpotter:)
 
> buddy
 
@Jefffrey Thanks! I won't be able to go there anyway, damn weddings
 
Tell them to change the date. This is important, damnit!
 
@MartinJames He didn't show up at the unconference anyway.
 
@R.MartinhoFernandes His loss and ours. I suspect that LRIO would have fitted in well with the general theme of alcoholic chaos.
 
10:49 AM
House of Cards has gotten better :v
I thought it was rather lame but since S01E07 it's gotten better.
 
> You can't take the address of an rvalue (here ~16:25)
 
morning
 
wait
 
so
we're moving on 30th
or, to be precise, we're receiving keys on 30th and we have time up till 3rd to move
 
boy, jobhunting is depressing.
even considering applying for jobs makes me feel like shit
 
10:54 AM
@Puppy ..then you actually get a job, and the depression deepens.
 
thanks for that.
fed bailey?
 
Oh shit!
 
lol
 
1
Q: Reading JSON from a socket using boost::asio

hfhc2I am currently trying to transfer some JSON data over the network from a client to a server using the socket API of boost-asio. My client essentially does this: int from = 1, to = 2; boost::asio::streambuf buf; ostream str(&buf); str << "{" << "\"purpose\" : \"request\"" << "," << endl <<

@R.MartinhoFernandes how did you end up skinning ^ that cat (or am I misremembering?)
at least you didn't leave it locked in the car
I suppose
 
Bailey's a him.
 
10:57 AM
@LightnessRacesinOrbit I knew that :)
 
@Puppy it's only depressing when you suck and people don't want to hire you
I dunno how can you have so many problems with your knowledge
 
@BartekBanachewicz s/people don't want/don't want people/
 
@sehe spot on.
 

« first day (1349 days earlier)      last day (3589 days later) »