« first day (839 days earlier)      last day (4108 days later) » 

6:00 PM
 
@doug65536 That's strange.
 
one link says you can almost do it in gcc: #define __assume(cond) do { if (!(cond)) __builtin_unreachable(); } while (0)
 
@sehe ^
 
Lunchtime!
 
6:03 PM
@leppie TBH, I think that after everyone has seen what happened to the sock pairing question, some people (the ones who are jealous) are more likely to try and shut this question down before it has a chance to become popular. The first step to doing that is to edit out everything that makes the question interesting. The second step is to engage in a rollback war to get the question locked so it can't get anymore upvotes. — Mysticial 3 mins ago
Oh... who called it.
> locked by Bill the Lizard♦ 3 mins ago
 
0
A: Static analysis of noexcept "violations" in C++

Ira BaxterGiven the newness of C++11, I doubt there are off-the-shelf analyzers that do this. In addition, as others have observed in comments, the existence of a code path is not a guarantee that the code path is feasible, so you need pretty deep reasoning and/or the willingness to accept some false posi...

Ira's back at it
> One might build a tool like this with our DMS Software Reengineering Toolkit, which is willing to process many compilation units simultaneously.
 
@EtiennedeMartel: Day9 playing Bastion time :)
 
@EtiennedeMartel dat pun.
 
It would be interesting to see if -O keeps the check for UB and -O2 optimizes it out
 
@Zoidberg "I'm sure you'll be interested in maximizing your throughput through a turnkey scalable enterprise professional pissing solution"
 
6:20 PM
@ScottW Don't forget John Carmack.
 
@Mysticial I want to meet this guy one day and have him sign my t-shirt.
 
@Praetorian I vote for "still at it". I doubt he ever really stopped, just (probably) did his thing elsewhere for a while.
 
@Borgleader Day9 looks so dopey sometimes.
 
@EtiennedeMartel dopey?
 
@Borgleader Like he's got mollasses in his brain.
 
6:28 PM
@JerryCoffin I looked through a couple of his recent answers, and I have to agree with you
 
@EtiennedeMartel Oh, yeah. Can't blame him though, I mean he can't always be top shape.
 
I want to look at the Community Wiki answers related to C++. How can I do this?
 
Mark my words, one day, I shall meet Sean Plott in person.
And then shine his shoes or something.
 
I just corrected the link.
I forgot to put brackets around "c++". So it was giving everything that contained the word "c++" instead of being tagged that.
 
@EtiennedeMartel My friends did. They went to NASL in Toronto. I was so fucking jealous.
 
6:33 PM
"I've had too much sex in my life." - Said no one ever.
 
I didn't go because I would have missed 2 days of work and it was crunch period so I would have felt bad.
 
@Mysticial thanks, that was easy
 
I think I'm gonna buy "Head First Design Patterns", a Java book. Will you guys still talk to me? :)
 
@TonyTheLion Actually...
 
uh oh
 
6:35 PM
I've heard being in a relationship with a nymphomaniac is a bad idea.
 
possibly
 
@FredOverflow The one with the girl from the female hygiene product ads on the cover?
 
@R.MartinhoFernandes Yes. Or do you know of a better book on Design Patterns?
 
No freaking idea.
 
no one cares about patterns
 
6:36 PM
They can be useful if used properly
 
except Java devs
but they classify as "no one"
 
@FredOverflow Aside from the GoF?
 
^ This
 
@FredOverflow If you insist on getting one, the GoF is undoubtedly the one to get.
 
6:38 PM
@EtiennedeMartel Every time I've tried to read the GoF book, I have fallen asleep. It's just so fucking dull. Also, the authors repeat the r-word till the cows come home, I simply cannot stand this book.
 
@FredOverflow R word?
 
reuse
 
Reclining? Recycling? Rendering?
Oh.
That word.
 
Eine Reuse (in Ostfriesland auch: Fuke) ist eine stationäre Vorrichtung zum Fang von Fischen und anderen Wassertieren. Molchreusen werden heute zum Nachweis von Amphibien genutzt. Geschichte Die ältesten Reusen waren Anlagen aus Steinen oder Stöcken, die die Fische zunächst in ein Bassin (Becken) leiten, ihnen dann aber den RĂĽckweg erschweren oder gänzlich versperren. Reusen sind bereits seit dem Mesolithikum bekannt. Eine Fischreuse aus Haselruten im Meer an der MĂĽndung des FlĂĽsschens VerkeĂĄn in der Provinz Schonen (SkĂĄne) in SĂĽdschweden stammt um 7000 v. Chr.. Baufo...
 
It's on my list of books to buy but I have a bajillion to read first: C++ Templates, Modern C++ Design, Programming in Prolog, Game Engine Architecture, Programming Principles using C++, ...
I buy too many books T_T
 
6:39 PM
I don't think the combination of C++ and Design Patterns is very interesting. There's so much more you can do with C++.
 
@Borgleader I don't buy books.
 
Also note that Design Patterns was published before the first C++ standard, so it's ridden with raw pointers everywhere.
@Borgleader I have the Prolog book :)
 
@EtiennedeMartel I buy books because I hope they can help me improve... but I lack the focus to actually practice what I read in them T_T
 
I really don't want to buy a book with dozens of *s on every code example.
 
@FredOverflow Not as bad as a Java book, though.
 
6:41 PM
@EtiennedeMartel Maybe this is just me, but I find Head First Design Patterns orders of magnitude better than GoF.
 
I didn't read that Head First Design Rapists thing.
 
Also, I don't particularly care if it's a Java book, first and foremost I need a book an Design Patterns (for crippled languages like Java).
 
(If that wasn't clear enough, I dislike patterns in general)
 
I'm one step ahead of you: I don't dislike patterns as I used to, I simply don't care too much about them anymore.
But from time to time, I need to read up on them, and I want the information in dead tree form.
 
The only Java book I have is:
I had to buy it for a class
 
6:43 PM
@EtiennedeMartel High five
 
You want to buy "Effective Java"
 
@CatPlusPlus Much love. And booze.
 
lol I just noticed I have "Head First Java" on my bookshelf. I thought I sold that a long time ago. Anybody want? :)
 
haha
Not funny.
 
@R.MartinhoFernandes German kezboard? ;)
 
6:45 PM
Funnz
 
@R.MartinhoFernandes: So what's your next blog post on? You didn't tell me yesterday :P
 
@FredOverflow Design Patterns for me is just "Well okay, this is a template for meeting these operational reqs. Thanks." The problem is, I don't use them unless they'd really help me out, in which case, they're the obvious choice.
Like, "Hmm, I need to have these things respond to events that happen on this thing." Listener!
 
@FredOverflow I don't like when people name drop patterns like the pattern itself is gonna solve all their problems.
 
@Borgleader SFINAE. I just need to finish the last section with a convincing example. But now I'm going out with some friends, so I won't finish it yet :P
 
@ShotgunNinja Or you could not name it.
 
6:46 PM
@EtiennedeMartel Does that happen to you?
 
@R.MartinhoFernandes You have friends?
 
@R.MartinhoFernandes Ok :)
 
@EtiennedeMartel Ow.
 
@EtiennedeMartel I bet his only friend is operator<<.
 
@R.MartinhoFernandes Enjoy your beer, just don't fry your circuits!
 
6:47 PM
@EtiennedeMartel Yeah, I suppose. Design Patterns is just slapping buzzwords onto things that make sense to do.
 
@FredOverflow It never happend in person, but I've been in online discussions that were like that, yes.
 
imo Design Patterns are useful to know so that when it's the obvious choice you have a good idea of how to do it.
 
It neither gives insight into the interface design, nor the mechanisms by which the "pattern" operates.
 
And you know, when I was first exposed to patterns, I was rather aggressively trying to shoehorn them into any piece of code I was writing.
 
@EtiennedeMartel WTF was that about.
 
6:48 PM
but they're definitely not they holy grail
 
@EtiennedeMartel been there :)
 
I am not a people-hating hermit like the puppz.
 
@EtiennedeMartel We all go through that phase.
 
@R.MartinhoFernandes I'm just kidding. I'm sure you're cool enough to have friends.
 
Thez're a constrained set of solutions to a constrained set of problems. No more, no less.
 
6:49 PM
@R.MartinhoFernandes I think he doesn't really hate people. He's shy, though.
 
@ShotgunNinja ...for languages of constrained expressiveness ;)
 
@FredOverflow You know those former smokers who become so hostile to cigarette?
Well, I'm a bit like that. But with DPs.
 
@EtiennedeMartel Are you implying that Design Patterns are detrimental to your health? :)
 
I'm implying that being addicted to patterns is detrimental, yes.
 
I think there's too much religion about DPs.
 
6:51 PM
I should start a blog and force myself to learn stuff and talk about it... That way I would make progress.
 
But hey, they're practical in Java, so why would I refuse to freshen my knowledge up from time to time?
 
You could also switch to C#...
 
@FredOverflow Why not drop Java instead?
 
@Borgleader We already have stackoverflow for that, good enough for me.
 
because Java and patterns...
 
6:52 PM
woohoo
 
@Borgleader I don't think my University will ever switch to C# just because two guys in the Lounge recommended it or because it is "cool" :)
5
 
@Borgleader I did start a blog a few years back. Most of the time I figured what I was thinking wasn't worth writing about, so I barely wrote anything.
 
my book came in
 
@FredOverflow The thing is I lack focus... I have so many ideas so many things I want to try I usually start so many projects but never finish them :(
 
6:53 PM
Hacker's delight ^^
 
Design Patterns are like COTS. You can pick them up with relatively little cost or background understanding, plop them into some stuff, and they'll work decently. That said, there's no COTS that does it all, and you can't just buy a bunch, glue them together, and have a working product.
 
@nightcracker I would like to read that book
 
Also, using a COTS without understanding its limitations is how people die.
 
@TonyTheLion: well I just picked it up for ~40 euros, new copy
 
Guys, I'm not claiming Design Patterns are the holy grail that will solve world hunger. We will have to wait for polymorphic lambdas to achieve that.
 
6:55 PM
In the United States, Commercial Off-The-Shelf (COTS) is a Federal Acquisition Regulation (FAR) term defining a non-developmental item (NDI) of supply that is both commercial and sold in substantial quantities in the commercial marketplace, and that can be procured or utilized under government contract in the same precise form as available to the general public. For example, technology related items, such as computer software, hardware systems or free software with commercial support, and construction materials qualify, but bulk cargo, such as agricultural or petroleum products, do not. C...
 
@Borgleader Here's a project for you: translate the C++ examples from Design Patterns (1994) into modern C++ code. No more raw pointers please.
 
@FredOverflow Send me a copy of the book ;)
 
@FredOverflow shared_ptr<>?
 
@ScottW Java also has int.
@ShotgunNinja Well, depending on the needs. shared_ptr is not the only smart pointer.
 
@ShotgunNinja I once did an internship for people who did stuff like that.
Military and flight simulation, to be precise.
 
6:58 PM
I know, it's just the one everyone seems to bring up with little to no understanding of which one should be used.
 
@ScottW You can post your "fuck java"s in the "Java sucks" room. Or should we open a dedicated "Fuck Java" room for that?
@ScottW C++ has them, too.
 
@EtiennedeMartel I've worked in avionics before, lol. That was what I did the Regex-based HTML parser for. (chat.stackoverflow.com/transcript/message/7495237#7495237)
Then they switched the testbed I was verifying to generate XML instead of HTML, and I rewrote the whole parser in C# in about half as much code.
 
Has anyone here used the Asio library?
 
@ScottW You can write Integer ... if you want whitespace :)
@nightcracker I used to have a Casio cassette player, does that count?
 
7:01 PM
@FredOverflow: no, I meant C++ Asio, not C Asio.
 
No you mean boost::asio
and i've hardly touched it sorry
 
Nope, simply Asio
 
@FredOverflow, Lol, someone flagged your gif.
 
(boost includes it, but it's standalone as well)
 
why did this get closed, I am waiting for an answer????? vincenttsn@comcast.net — Shelly Vincent 3 mins ago
 
7:01 PM
@chris for being too damned sexy? guilty!
 
ahaha
read it before it gets deleted
 
@Mysticial too late
 
@Mysticial Did somebody really confuse meta stackoverflow with Facebook support? Wow.
 
24 hours until I get my kitten!
 
@MooingDuck Is your cat pregnant?
 
7:03 PM
@FredOverflow I saw a "Java Sucks" room up yesterday
 
@FredOverflow purchasing from someone else who's cat was pregnant
 
 
@chris Ah, you beat me to it.
 
@doug65536 It's still up, I sent you an invitation.
 
7:05 PM
my rep has been stuck at it's current value for so long
I barely answer anymore =/
no time really
 
Where are the other facebook meta questions?
 
@chris Somebody should post a question about their car being stolen and what to do about insurance or whatnot.
@nightcracker You can also gain rep by asking questions that appeal to the general public.
 
HAHA
I was just about to write s/good/popular/
beat me to it
 
The lesson being: If you rage-quit, vandalize other people's posts. No limits there. — lunboks 38 secs ago
@nightcracker Tongue-in-cheek: Ask a question that I'm likely to answer. :)
 
Mysticial: do you have any experience with Asio?
 
7:09 PM
@nightcracker I don't even know what it is. lol
 
@Mysticial: apparantly it's the de facto standard for C++ sockets/networking.
 
@nightcracker Boost ASynchronous I/O library.
 
It's not really any standard
 
@R.MartinhoFernandes: well, it comes standalone as well: think-async.com
 
user142019
My experience with Boost.Asio was terrible.
 
user142019
7:11 PM
It feels like Java with templates.
 
I'm trying to get documentation on it.
And failing.
What library would you guys recommend for UDP?
 
@nightcracker Have you looked at SFML?
 
I could just stick with BSD sockets, but that requires so much #ifdef stuff to make it portable.
Maybe some wrapper?
 
@nightcracker Sockets?
 
@Borgleader: SFML feels kind of an overkill solution if just using networking
 
7:16 PM
@nightcracker If it works, why not? Sounds better to me than BSD sockets.
 
@ShotgunNinja: eehm yes?
 
Or libcurl, if you're feeling silly.
 
@ShotgunNinja: libcurl is an HTTP library
 
what are you going to do with the connection?
 
But it builds on top of crap you can hack into use
 
7:18 PM
Come to think of it, has anyone ever asked what a const class is?
 
@doug65536: Build a DHT (note that UDP can't really be called a connection)
 
const class C {...} c;
 
Does anybody really care?
 
Seeing as how people ask about static every so often, I figured const has to have come up.
 
7:18 PM
Yes Shotgun, people care about language features.
 
@chris it makes the instance of c be const - the c at the end makes an instance, that c is const
 
@nightcracker, Ah, thanks. I was curious.
@doug65536, Yup, I was just wondering if it had been asked. You can also put the const after the definition.
 
@chris: I just google'd "c++ const class site:stackoverflow.com"
 
@chris oh ok
 
@nightcracker, Yeah, new tab => too lazy
 
7:20 PM
@Rapptz Not where I'm from...
 
How unfortunate.
 
Agreed. I hope to leave this hellhole called Wisconsin as soon as humanly possible.
Nobody seems to want to use the gray lump between their ears.
 
"as soon as humanly possible" Today?
 
@ShotgunNinja It actually possesses a variety of colourations.
 
@nightcracker I'd hope; however, I have debts that must be settled, and a degree that needs to be earned (which is, at this point, merely a function of settling those debts).
 
7:24 PM
user image
2
 
what
this channel has a mumble server?
 
Look how cute that is.
 
@nightcracker Yeah. It had for a while now.
 
@nightcracker Yep.
 
downloading mumble ^^
 
7:25 PM
I don't think anyone is in it now though
 
prepare to be amazed by the immense sensuality of my voice
 
@DeadMG Ohhh yesssssssss
 
@DeadMG I read that as, "immense sexuality of my voice".
 
potato, potato
 
it's the same thing
lmao
 
7:27 PM
^^ agreed
 
@nightcracker enet maybe
 
Calm down guys, @Mysticial was just looking for an excuse to post sexuality
You immature immature geek
 
Yeah, well, Tony isn't here, so we have to make due with a substitute.
 
there's a difference between Tony, who would just say "tits", and myself
 
I'm not comparing you to Tony. I'm comparing Mysticial to Tony.
 
7:30 PM
oic
 
lol
what?
 
Really stupid question
Can you change the name of a repository on gisthub?
 
yes and it's github
 
@Crowz Yes, yes it is.
tony
 
did you even bother to click on the huge button named Settings?
 
7:38 PM
y u muted/etc
 
cause I'm talking to someone on Skype
 
@Crowz: have you tried clicking "settings"?
 
btw, @Crowz, I think there might be an option in "Settings".
 
@TonyTheLion Why not talk to both at the same time?
 
It's pretty hard to miss actually
 
7:39 PM
not sure though
there's a rumour spreading on Twitter about it
 
I don't know why, but I find github navigation to be very annoying
 
Also, before anyone asks, I'm not really there.
 
@chris I tried a bunch of things but I couldn't get gcc to optimize out the check for overflow
my repro must be too simple to fool it
 
@doug65536, I don't know, I figured it would with -fwrapv off and some optimization level on.
 
I tried variations of this
the windows.h is just for DebugBreak (workaround for IDE problem Im having)
my original test was testing a global volatile in the main loop, it didn't change the optimization at all
the lea and cmp are the overflow check
 
7:47 PM
@Mysticial lol
 
whoa, GCC is impressive!
std::array<unsigned char, 4096> pattern;
auto it = pattern.end();
while(*--it == 0xDE) //warning: '*((void*)& pattern +4095)' is used uninitialized in this function [-Wuninitialized]
 
Hi, is there a perl chat anywhere?
 
@user1690130 not that I know of
 
I have a very basic perl script for scraping.
 
You can make a perl chatroom
 
7:54 PM
It almost works.
 
@MooingDuck yes that is amazing
 
@user1690130 Ask on stack overflow.
 
anyone interested in helping with a perl question go here
@user1690130 oh yeah, ask on stack overflow
I don't know how I forgot that >.<
 
@MooingDuck thank you for setting that up!
@MooingDuck how does that work?
can i post my code?
 
?_?
 
7:58 PM
@user1690130 Yes, just indent it by four spaces.
 
@user1690130 Read this before you ask a question on StackOverflow.
 
@user1690130 use ideone.com to post code
 
Hey wait a minute. You've asked questions before.
Guess I'm misinterpreting.
 
@Rapptz it's been ages
 

« first day (839 days earlier)      last day (4108 days later) »