« first day (788 days earlier)      last day (4160 days later) » 

8:00 PM
agree
 
user142019
I disagree completely.
 
When working retail, I got in the habit of keeping my clothes on. Nothing like getting up and going to work in 15 min without worries about getting dressed etc...
 
user142019
wat
 
user142019
Sleeping in your clothes?
 
@Pubby @DeadMG Don't you guys got stuff that gets in the way?
 
8:01 PM
Though as programmers we don't need the same lazyness
yep
 
user142019
ewww
 
@EtiennedeMartel What?
 
@EtiennedeMartel Get in the way of what, exactly?
 
user142019
@StephenJ You know how much a human sweats while sleeping?
 
user142019
Also I could never sleep in jeans. :P
 
8:02 PM
I'm talking about phallic packages.
 
Ah, I'm not the type that sweats stinky
 
Sleeping in clothes is okay if you don't use blankets
 
My diet is a steady stream of fast food and potassium to counteract its health effects
 
user142019
During summer my bed is like a swimming pool when I wake up.
 
@EtiennedeMartel Yeah, I know, but I don't see how they'd get in the way.
and I don't even sleep on my back (unless I'm too sick to sleep on my front)
 
8:03 PM
@EtiennedeMartel I don't understand how that would get in the way if sleeping naked. Underwear is problematic for the morning wood.
(this conversation is getting wierd)
 
@Pubby We were talking about being naked, of course it had to get to penises.
 
No
No it didn't
 
The Prude Cat.
 
This is funny. These guys don't look like they are alright ...
 
user142019
Now we’re talking about dicks anyway, sleeping naked is annoying because your dick doesn't stay in place. With underpants that problem is solved and you can sleep comfortably.
 
8:07 PM
@EtiennedeMartel
 
@Zoidberg'-- Yeah, that's what I meant.
 
my dick is always exactly where I left it- between my legs.
 
It's so fucking distracting.
 
@EtiennedeMartel Maybe he wanted to discuss naked pussies instead.
 
I guess you mean briefs instead of boxers
 
8:07 PM
@DeadMG Probably because it's so small. (Yeah, I said it).
 
lol
 
@Pubby Yeah, I wear briefs.
@TonyTheLion What.
 
I don't get what the supposed uncomfortability is supposed to be
 
user142019
@DeadMG Your dick is moving in all directions when you turn around.
 
@Zoidberg'-- So? It's got a flexible connection for a reason.
 
@KonradRudolph Broken regex implementation.
 
user142019
@DeadMG it’s distracting. xD
 
@KonradRudolph You should ask @StackedCrooked.
 
Maybe "\\\\d"
 
8:10 PM
@EtiennedeMartel It crashes on my server as well :/
 
I don't think regex_error is my fault.
 
ITT people distracted by their own dicks during sleep
I can't believe I said it
 
@KonradRudolph because regex is not implemented in gcc.
 
user142019
@CatPlusPlus before sleep, actually.
 
@CatPlusPlus Hey, dicks are cool.
 
8:11 PM
The solution is obviously wear a merkin when sleeping
 
user142019
@EtiennedeMartel don’t be such a dick.
 
Puh-lease.
 
@bamboon It works for other regex
 
user142019
@Pubby Or a pair of underpants made of stainless steel.
 
@EtiennedeMartel Don't be a Google!
 
8:13 PM
@KonradRudolph It might be that "\d" is not supported.
 
@Pubby My boss walked right behind me the exact second that picture appeared. He saw it.
 
@KonradRudolph gcc is fine with a few but utterly broken for many. Also depends on which standard library you use, of course.
 
@EtiennedeMartel Hah, sorry about that
 
ah fuck a duck
to the Boost mobile
 
@KonradRudolph Cue Batman theme.
 
4
A: Is gcc4.7 buggy about regular expressions?

Jonathan WakelyIt is not implemented - did you even bother trying to search before asking your question? Searching Google for "gcc regex" answers the question. Edit Since people keep complaining on SO about libstdc++'s <regex> code, here's an explanation of why it's in the state it is: That prototype &...

 
Weird, why didn’t they simply take the existing Boost implementation, it seems to be largely interface compatible
 
Hmm
Am I the only one here who gets tired writing coordinates and rectangle classes everytime?
Is there such a thing in boost or something?
 
> did you even bother trying to search before asking your question?
 
@kbok put them in a utility header and just keep using that.
 
8:17 PM
Well, his level of abrasiveness rivals that of the puppy.
 
@kbok or typedef std::pair<unsigned,unsigned> coordinates
 
@KonradRudolph Philosophical differences: the Boost code is (of course) under the Boost license instead of GPL (or even LGPL). Therefore, it's not encumbered enough to qualify for what they call "free".
 
@kbok Boost.Geometry might work
 
@MooingDuck Yeah, but first and second are a bit unclear for my tastes
 
I wrote some "strongly typed" coordinate stuff a while back but I'm not convinced it's safer
 
8:20 PM
@kbok #define x first
 
@kbok Another Boost possibility would be the Generic Image Library, though it's mostly higher level.
 
@EtiennedeMartel the comments are even better
 
I think I'll put a utility header somewhere but it's very likely that someone did that before :)
boost::geometry::model::d2 has everything I need, thanks!
 
awesomesauce :)
By the power of 11 and Boost, I command thee!
 
andrei doing crazy macro hacks, lol.
 
8:28 PM
Boost.Fusion has named tuple
I think
No, I'm sure, they called it map
 
Silly Americans; it's 12/12/12, not 12/12/12.
 
lol
 
Yup. The key being a tag struct. Or, a typelist of tag structs, more appropriately
Hi
 
@sehe That joke was bad a year ago, and two years ago, and three years ago
 
Bad jokes aren't bad
 
8:37 PM
@CatPlusPlus This is likely the last year you'll hear that joke, might as well enjoy it
 
@Pubby Good riddance
 
@CatPlusPlus My god, it's like you're on a Holy Crusade to kill all humor.
 
user142019
People who claim one way of showing dates is better than the other because you can sort them forget you can sort by whatever you want and not just by string representation.
 
I like humour I don't know what you're talking about
 
8:38 PM
@sehe Should have tweeted it at exactly noon so he could (at least sort of) say it was 12/12/12/12.
 
@Zoidberg'-- Unless you're working with files and want the cheap sorting
 
@Zoidberg'-- the fact that the string representation is also sortable is still a pro, even if it's sortable by other, more complex means.
 
No file manager does fancy sorting by parsing dates
 
If you're sorting by strings shouldn't it be year/month/day then?
 
8:39 PM
@Pubby that's what we're talking about yes
 
0-padding and least frequently changed number first
 
♡ C++11 & Boost
4
 
user142019
♡ Haskell & Erlang FTFY
 
late typing? no thanks
 
user142019
implicit conversions? no thanks
 
8:46 PM
ಠ͜ಠ ᴍᴇ ɢᴜꜱᴛᴀ
 
Xeo
@Mysticial: I can't come to like that Madara guy. :s
 
@Xeo He's got too much PHP in him...
 
Xeo
It'll get closed here atleast: loungecpp.wikidot.com/owners%3Anewbie-hints
 
Why would that get closed?
Seems like a fine question to ask on SO proper
 
I might have asked this before … but why is std::pair<Iterator, Iterator> not adapted for ranges
i.e. why doesn’t it overload std::begin und std::end?
 
8:58 PM
@KonradRudolph Probably because that would be confusing
 
it would be so handy, especially because you could iterate over things like the result from std::equal_range with a range-for loop
 
Xeo
And you can't even declare them yourself without invoking UB for the most part. :(
 
@Pubby Would it? I don’t see how, to be honest. On the contrary, it seems natural – so natural, in fact, that I accidentally try iterating over such ad-hoc ranges all the time in my code
 
user142019
@KonradRudolph create libkonrad!
 
8:59 PM
@Xeo Wait, what?
 
@KonradRudolph It would not be natural to iterate over a pair inside a map<iterator, iterator> for example
 
@Pubby so don’t ;)
 
Xeo
@KonradRudolph They'd need to be either declared in namespace std (which would be UB), or in the namespace where the iterator types live.
 
@Xeo Ah – I thought you meant usage
 
Xeo
> declare them
:P
 
9:00 PM
@Xeo But couldn’t you (partially) specialise the templates std::begin/end? Specialising them should be legal (it is for std::swap, after all)
 
Xeo
@KonradRudolph If you specialize for specific iterator types, sure.
Remember, functions can't be partially specialized.
 
@Xeo I thought C++11 added that
 
Xeo
No
 
what? I’ve been lied to?
ah, pity
 
Xeo
Only default arguments for function templates.
 
9:02 PM
Also, C++ needs a std::length function analogous to Python’s len :p
 
Xeo
For .size()?
 
user142019
4 mins ago, by Zoidberg'--
@KonradRudolph create libkonrad!
 
I hate all-purpose-libraries
nobody uses them
 
Xeo
Make it a bundle of libraries, like Boost. And wheels. And annex.
 
Yes, just like Boost. With tons of examples. So that it will be easy to learn.
 
9:05 PM
 
… what I heard: “Konrad, be our hero, make the next Boost!”
 
@Xeo whats annex?
 
Xeo
@LucDanton's lib.
 
@Xeo cool, where can I find it? Never found him on bitbucket or github
 
by the way, mine already exists, it’s called “goo” and it lives in a private repo
 
Xeo
9:08 PM
@bamboon It's on BitBucket, sec.
 
@KonradRudolph "quarantaine" is the usual term for such a place
 
@Xeo ah that's him, thanks.
 
Xeo
lol
 
@KonradRudolph on github?
 
@bamboon No, bitbucket. Getting private repositories without paying is a pain on GitHub
not that I would mind paying for them, mind you (my institute would pay them anyway)
 
user142019
9:13 PM
@KonradRudolph is that even possible?
 
@Zoidberg'-- As a (PhD) student, yes
 
@KonradRudolph that's why I was wondering. When I saw that box where you have to write a story about your life, I hit return.
 
user142019
@KonradRudolph ah I see.
 
Wait. Someone here mentioned fusion::map seconds ago, and this: /cc @CatP
1
A: Using a boost::fusion::map in boost::spirit::karma

llonesmizYou can use the following specialization of extract_from_attribute in order to use a fusion::map with karma: namespace boost{ namespace spirit{ namespace traits { template <typename Key, typename Value> struct extract_from_attribute<boost::fusion::pair<Key, Value>, Value&g...

 
user142019
I have several private repos on BitBucket.
 
9:14 PM
+1 you, sir, have picked a nice hobby :) — sehe 1 min ago
@Zoidberg'-- naughty
 
Xeo
@sehe Oh, competition? :P
 
@Xeo Clearly. He's more focused on the plumbing of spirit. Nicely complementing my 'front-end' focus. Sometimes he comes up with egregious answers, but sometimes, like here, he comes up with the missing bits to make things work. I like it
 
Xeo
That's nice.
 
Yup. He clearly knows his way around Proto/Spirit/Fusion. Not enough of those around on SO, in all fairness.
(myself included in the 'not knowing many details' group)
 
@sehe in your best guess, how many people in total really know and extensively use Spirit?
 
9:20 PM
@KonradRudolph You're the scientist. You know I can't answer that. Well now, my guess, is about 50-100 in Europe.
That's probably low seeing the number of enthusiasts showing up at presentations at BoostCon etc. It must see more interest, but then again, many of those won't be extensively using it. Filtering for real-money business applications the estimate may turn out to be high
 
9:32 PM
Wait, C had types default to int, right?
So then how would this code work:
int x;
int foo() {
  x;
}
Is x; an expression statement or declaration?
 
@Pubby Expression statement.
 
@JerryCoffin But without the global it would be a declaration? That's silly!
 
user142019
@Pubby expression statement.
 
user142019
Variables don’t default to int.
 
user142019
9:34 PM
Functions did in C89.
 
@Zoidberg'-- I was talking about in ancient C
 
user142019
What is ancient? Before ANSI C?
 
@Pubby No. You'd need e.g. auto x;.
 
@Pubby No -- without the global, it would be a syntax error. You only got default int where you had enough else there for it to determine that some type was needed but not declared.
 
Oh, I was under the impression that variables defaulted to int too
 
user142019
9:35 PM
If you only give a storage specifier, yes.
 
The fact of the matter is that it's not a declaration.
 
user142019
And functions defaulted to int, that’s why main() { return 0; } was valid C.
 
@Pubby Under just the right circumstances, they did. For example, in K&R style function headers: foo(x) { both the return type from foo and the type of x defaulted to int.
 
user142019
C without all the implicit crap and weird syntax would be great.
 
no, it wouldn't
 
user142019
9:39 PM
yes, it would
 
you'd still have fuck all useful language features, really
 
It would not be much better
 
no templates, no RAII, no exceptions, no lambdas
 
Implicit conversions suck but explicit ones suck more
 
depends on the conversion, IMO
 
user142019
9:41 PM
Explicit is better than implicit.
 
I would not want an explicit conversion to std::string from string literal
 
user142019
I wouldn’t mind at all.
 
90% of implicit conversions are completely sane and exactly what you want
 
user142019
UDL _s.
 
it only becomes a problem when you are dealing with stuff like overloads
 
9:43 PM
Overloaded literals are not the worst thing in the world
 
void foo(base&);
derived d;
foo(static_cast<base&>(d));
^explicit is so much better
 
can't bind base rvalue to lvalue reference
 
user142019
I don’t really see that as a conversion.
 
@DeadMG Maybe fixed now? (I've never casted like that so I wouldn't know)
 
user142019
class Fruit {}; class Apple : public Fruit {}; both are fruits so I don’t care about the conversion from Apple& to Fruit&.
 
9:46 PM
It's still an implicit conversion
 
WE ARE C++ PROGRAMMERS. WE -ARE- PENDANTICS! ( :P ) BILL SMASH~ — Billy ONeal 3 hours ago
 
user142019
It’s like converting T to T.
 
is_same<Apple&, Fruit&> is false though
 
user142019
That’s true.
 
user142019
And that’s ambiguous.
 
9:47 PM
Ambiguous? How?
 
user142019
What is true? is_same<Apple&, Fruit&> or what you said?
 
user142019
That’s ambiguous. :P
 
Oh, heh
 
lol
 
user142019
 
user142019
9:49 PM
Me gusta.
 
@Zoidberg'-- This statement is false.
 
A hot dog?
 
user142019
With a spelling error on the sauce packing.
 
@EtiennedeMartel Erm. Wouldn't that depend on it's temperature?
 
user142019
It must be Broodje Unox-saus, not Broodje Unox Saus.
 
user142019
9:50 PM
@EtiennedeMartel a rookworst.
 
@sehe I rarely use "cool" in the temperature way.
 
user142019
Rookworst ("smoked sausage") is a type of Dutch sausage in which ground meat is mixed with spices and salt and stuffed into a casing (originally made of intestine, but these days usually made of bovine collagen). Rookworst is a traditional ingredient in stamppot. Described as a Bologna-type sausage, it is common in the Netherlands and is also exported to Great Britain. A version of it is also manufactured in Australia for domestic consumption. Contrary to what the name suggests, the modern rookworst is rarely smoked. To achieve the smoked flavor typical to the product, smoke aromatics a...
 
@Zoidberg'-- Oh, of course!
Yeah.
 
Pedant.
 
Have I mentionned how ridiculous Dutch is?
 
user142019
9:51 PM
Yes. Many times.
 
@EtiennedeMartel You have no case
 
Sometimes I get confused.
@sehe As a native French speaker, I am an expert in ridiculous languages.
 
user142019
Maar qua ridiculousheid is het niets vergeleken met Frans.
 
@EtiennedeMartel Sometimes you get confused about the frequency of your confusions
@Zoidberg'-- lous?
 
9:52 PM
sometimes?
 
user142019
Also, @sehe heb je Het Groot Dictee gekeken?
 
@DeadMG Don't you have an anus to sniff?
 
@Zoidberg'-- Nope. I watched the junior dictee though. Pathetic. 3 sentences. And the shared 1st plaze came in at 6 errors.
 
man
what is it with people today?
 
user142019
@sehe lolwat
 
9:52 PM
robot was on his period all day too
 
RAAAAAGE
 
user142019
I had 23 mistakes in this year’s Groot Dictee.
 
@DeadMG Good point. How come they have gotten so rude and easily alienated
 
user142019
Last year was much easier.
 
@DeadMG Apparently periods get synced to people you hang out with
 
9:53 PM
@DeadMG A circadian period. 12-12-12
 
@Zoidberg'-- You brain must be deteriorating fast then.
 
user142019
@StackedCrooked no, the writer was a sadistic asshole. :P
 
@StackedCrooked He's already getting old.
 
@Zoidberg'-- you mean, you start showing the signs of age? You learned different rules when you were in BO?
 
user142019
@sehe the words this year were ridiculous.
 
9:54 PM
@Zoidberg'-- Of course, they were Dutch words.
 
@Zoidberg'-- They all are. They want to show how many ridiculous corner cases they know. A bit like standards lawyers in C++, really
 
user142019
Dutch++
 
user142019
Haskell > Dutch > C++ > C > PHP > Java > French
 
user142019
And German is just beneath Dutch. :^)
 
@Zoidberg'-- Given their full names, German is clearly above Dutch.
 
user142019
9:57 PM
Not in reversed alphabetical order.
 
user142019
reverse ['a'..'z']
 
@Zoidberg'-- Umm....right!
 
@Zoidberg'-- I'd say, "above" is appearing earlier in alphabetic order. So, Dutch is above German
 
user142019
@sehe but it’s about Deutsch and Nederlands.
 
Also, not in reverse polish notation :)
 
9:59 PM
@Zoidberg'-- Preposterous.
 
@Zoidberg'-- lol
 
Why is PHP superior to Java?
 
user142019
Reverse Polish notation? kipulS kedaR?
 
user142019
@EtiennedeMartel it’s slightly less terrible IME.
 
@Zoidberg'-- You're officially insane.
 
user142019
9:59 PM
I know. I’m even writing a server for my new web app in C.
 
Java was, at least, designed. PHP is a organically grown monstruosity.
 
@Zoidberg'-- haha. that one has been used before.
 
user142019
Not a web server, though.
 

« first day (788 days earlier)      last day (4160 days later) »