« first day (652 days earlier)      last day (4282 days later) » 

10:00 AM
template <typename T>
class C {
    class T::A * a; // indicating multiplication instead of pointer
};
@LucDanton Do you mean like that?
 
@FredOverflow 'The A::T class'. Which is incorrect if A::T is e.g. int. I'm not sure if it's required that A::T be an inner class or any kind of class type.
You know, like struct foo {}; class foo f {};.
 
Ah right, structs and classes have their own namespaces.
 
C++’ scoping rules are horrible and confusing.
 
What about C++ isn't horrible and confusing?
 
The name!
 
10:02 AM
The name is confusing.
 
Come on, it's the worst name for a programming language ever!
 
C++ is C! Always use suffix ++ instead of prefix ++!
 
@rubenvb Two-thirds of the name consists of punctuation. What other serious language can claim that?
 
@RadekSlupik unless you need the postfix semantics
@Potatoswatter C--
 
Yeah but when you don't, as usual, you should use prefix ++.
 
10:03 AM
right, use prefix ++ by default
 
@Potatoswatter A++.
 
@Potatoswatter All Oriental languages are written in symbols, which might as well be punctuation for me...
 
C# and F# come close.
 
Lounge<++C>: because you should always use prefix increment.
 
Lounge<Haskell> FTFY
 
10:05 AM
@RadekSlupik Those ones are bad because the orthography doesn't match the name. A hash is not a sharp.
 
@RadekSlupik again, ((.).(.))
 
Well a hyphen isn't a minus either for C--.
 
@rubenvb ...
 
Is D worth learning?
 
sure
 
10:09 AM
@RadekSlupik D sucks for numerous reasons I can't sum up currently.
 
As if the reasons for C++'s suckage were enumerable...
 
D is the programming language!
 
D sucks because it doesn't have the same degree of prototyping and filtering that C++ has.
 
Want prototyping? Use JavaScript!
 
D rules because it has ranges.
 
10:10 AM
There's less standing between adding a feature to one compiler and adding it to the proper language.
@FredOverflow Are you talking about replacing two iterators with one pair-object, or interval arithmetic?
 
D rules because it has modules.
 
The former, it has, but it's only minor syntactic sugar atop the C++ way.
The latter, sucks.
 
Also static if is cool. Is there a proposal already for C++?
 
@RadekSlupik two, actually
@Potatoswatter I'm talking about sort(container); instead of sort(std::begin(container), std::end(container));
 
I like how "old C++" equates to hacking around it using template[s| metaprogramming].
 
10:13 AM
My father thinks I should learn Java because all big software companies use it. First, that is false, second, he believes I want to work for a big software company.
I'd like container = sort(container) and then have something like sort!(container) which is impure.
 
@FredOverflow Funny how you refer to sort(container) and not sort(range). Note that in C++ you can define template< typename t > void sort( t &x ) { using std::begin; using std::end; sort( begin(x), end(x); }
voila, no need to migrate…
 
Sure I can, but who does it for all algorithms?
 
@FredOverflow The fact that you can write it once and then reuse that code is enough to not add that to the library.
 
I am going to work on daklang seriously today.
 
Who really cares? It's just a few keystrokes here vs a few keystrokes there.
 
10:18 AM
@rubenvb I still think ranges are a very useful concept to make code more readable.
 
I think Boost has them :)
But you knew that.
 
C++ standard or didn't happen.
 
@Nishant Appears well written but not C++ related
 
@FredOverflow you don't like Boost?
 
I do, but I think ranges are useful enough to make it into the standard.
 
10:21 AM
Is there any extent to their utility besides saving you from passing two arguments to a given generic function?
 
What do I need to add here to make Container dependent on T ? ideone.com/PWJRF
 
There's this that's being worked on by Howard.
 
@Potatoswatter It's been too long since I've studied ranges in detail. Maybe the links in this question will be useful:
13
Q: What is the status of ranges in C++?

FredOverflowSometimes I get tired of all this my_vector.begin(), my_vector.end() noise. Last year at boostcon, Andrei Alexandrescu's keynote speech was titled Iterators Must Go (video) Is there any progress on introducing ranges into C++, so I can finally say std::sort(my_vector)?

 
@ManofOneWay What are you trying to do? Container is the name of a template parameter and cannot be dependent on anything but itself.
 
@Potatoswatter I want to prevent this: ideone.com/eTHWJ
 
10:25 AM
@ManofOneWay Eliminate the template parameter T and add a member typedef Container::value_type T;
There is no way to have it both ways… if you want, use static_assert.
 
template<
    class T,
    class Container = std::deque<T>
> class queue;
How is the stl doing it?
 
You're giving the user more hand-holding protection than the standard library, though, which might be too much.
@ManofOneWay Interesting… the standard adaptors use T for nothing except the default argument for Container. Everything else depends on Container::value_type et al.
So std::queue<int, std::deque<float> > and std::queue<float> will be identical except in name.
 
Beer is evil.
 
My air conditioner has a remote control, which contains the thermostat, which I keep putting on the power adapter, sitting on, etc. That is evil.
 
fuck. Segfault.
 
10:35 AM
@Potatoswatter Oh that looks pretty ugly
 
Xeo
WTF is up with flash player, lagging and crashing on me like mad...
 
@Xeo The Usual(tm)?
 
Xeo
:(
Killed the plugin for now, though that won't help if I want to watch YT vids
 
@Xeo html5?
 
Xeo
Well, YT works without flash but... the videos go in 5 second steps... -.-
 
10:44 AM
Curry for breakfast. Living the dream.
No Haskell jokes, please
 
Xeo
@TomW Curry on, then.
 
@Xeo Whenever Flash stops working for me, I just do kill $(pidof plugin-container) and reload the page.
 
Xeo
Though maybe it's just firefox itself, still getting short freezes -.-
 
Clang segfaults my program on Linux. GCC does not.
 
Xeo
got 3 while typing the above message
do not want chrome, though
 
10:48 AM
Why is the html5 slow for you?
 
YouTube never works for me with Flash disabled, even in HTML5 mode. When Flash is enabled, HTML5 works, but when Flash is disabled, YouTube tells me to install Flash.
 
huh
let's try
 
StupidTube
 
got a test video?
 
I'm on my iPod right now, so no.
 
10:50 AM
this thing works great: youtube.com/watch?v=XSGBVzeBUbk
 
Flash must be banned by law.
 
ah wait
it's slowass
Core i5, 2.5 GHz. Intel GPU.
@Xeo what OS?
 
Vimeo > YouTube
 
fuck
only one music from Rush
stupid party
stupid DJ's.. darrrrgh
 
One music?
That's like saying one money.
 
10:52 AM
@RadekSlupik one song, sorry
not used to ENGRISHU
 
Ah. :p
 
But should be. I'm ashamed.
 
Try moving to Canada?
 
Me?
 
Where are you from? Japan?
 
10:53 AM
Brazil.
 
Ah. Cool.
 
Kinda. Where I live, there are awesome chicks. The bestest (YEAH I KNOW) in the country. Truly.
 
@RadekSlupik I think Brazil is quite warm...
 
I live near a city with awesome chicks.
They wear spiked belts and stuff.
 
Aha! Linkning with clang++ gives me a segfault
 
10:54 AM
@rubenvb Heh... well, in the winter here, we get around -2 ºC
not sure how much that is in Fahrenheit
 
oh. No need for Fahrenheit. Fahrenheit is stupid.
Kelvin is fine too.
 
Clang logic. NotImplementedException = segfault. Assertion failed = segfault.
 
@rubenvb :D
But in the summer, we get close to 40 ºC
 
Clang uses segfaults instead of proper exceptions.
 
@RadekSlupik but only when linking with clang++ as well.
let's try compiling with g++ and linking with clang++.
 
10:56 AM
@rubenvb Um… now you're asking for it.
 
Let's write a new C/C++/Objective-C/Objective-C++ compiler! Again!
But now in Haskell.
 
@Potatoswatter no I'm trying to determine the faulty component.
 
@RadekSlupik version of clang ?
 
All of them.
 
It's the link command that's wrong
@RadekSlupik uncaught exceptions are segfaults on Linux (and Windows).
 
10:57 AM
Wrong link command? Let's segfault!
 
@RadekSlupik i dont believe
 
@RadekSlupik dude, wrong libraries linked in --> segfault. Very logical.
 
Catch all exceptions in main, rethrow only in debug mode.
 
@RadekSlupik that's not what most things do.
 
In release mode, print message and exit(1).
 
10:58 AM
@RadekSlupik what are memory debugger like valgrind saying ?
 
that's for the runtime to decide
not the compiler.
It's a library thing.
 
Somebody wrote the compiler.
I'm talking about clang's own main function.
 
@rubenvb Mmmh, it's std::terminate here which does lead to dumping core. But no segfault.
 
@LucDanton hmm, doesn't it look the same? Ugly crash? (without debugger?)
 
@rubenvb What kind of uncaught exception though?
 
11:00 AM
@LucDanton any. I'm not really sure about this though. But I do know MSVC++ runtime prints the message, and on Linux it does not (unless you're running in gdb).
 
linux does too
 
I think I see the problem. It's compiling the program first, linking the old library, then rebuilding the library.
 
if you are using dynamic linking you must have the same library as you had when linking try to copy libraries and set rpath with linking.
 
Xeo
@rubenvb Win7
 
@Xeo Me too. I've had no issues with it. Latest FF? Flash?
@quarry static linking.
qmake seems to mess up make -j5
 
11:03 AM
terminate called after throwing an instance of 'std::exception'
what(): std::exception
Aborted (core dumped)
 
And I was wrong about uncaught exceptions
Sorry.
 
Xeo
@rubenvb Auto-updates, should be
 
@Xeo haha. Have you tried the obvious reinstall of Flash?
 
Xeo
not yet
I also deactivated the flash plugin, still getting lags
Somehow I think it's an FF + HTML5 problem
 
might not be Flash then. Any other ugly plugins?
 
Xeo
11:05 AM
Or atleast it seems that way
Nope
 
Sure? there's Java and MS Office stuff too (I disable them).
 
@Xeo current cpu usage?
 
I should get my build system functional so I can drop the qmake
I don't want to take the effort to rewrite to cmake
bad IDE integration too.
 
Xeo
@quarry Varies between 11% and 50% for firefox.exe, 50% when I get the short freezes
 
11:55 AM
Is building Boost in C++11 mode a bad idea or not?
I'm tired of what I suspect are spurious errors when the Boost.Test runner links with libstdc++.
Let's just find out the fun way.
 
Ell
I think the latest flash release is buggy
 
12:11 PM
@Ell I know the Flash release is buggy <- FTFY
 
12:57 PM
the Flash release is always buggy, FTFY
 
1:13 PM
whenever I give flash another chance, hoping the new version might not be worse than the old one...I am disappointed
 
has any one here used the SOCI libraries?
 
Ell
1:29 PM
:'( why does mount not finish? :'(
 
To understand is to invent!
 
1:51 PM
oh fuckery
 
2:02 PM
@FredOverflow I receive every messages that are sent by people that doesn't want to click on your name hahaha
@FredOverflow if those are important, please tell them to write your name completely or click on it, otherwise I receive them all in my inbox :P
 
dumb question time again...
is it stupid to put a static_assert in a template struct so that only explicit specializations will compile?
 
Xeo
@KeithLayne template<class T> struct X; // done
But really, why do you only want explicit specializations to work? Why do the classes need to be related by a template parameter then?
 
so only actually define the specializations?
 
Xeo
Aye. And make it undefined behaviour for users to actually implement that template anywhere. :P
 
to choose proper implementation via a dependent type in another template. Like I said, this may be a totally dumb question.
 
Xeo
2:13 PM
No really, to make sure that doesn't happen, a static_assert doesn't sound too bad
But I still question the need
 
@KeithLayne No, if the assertion message is more helpful than the typical compiler error for misusing an incomplete type.
Note that you need a trick to make sure that the static_assert is only triggered when the template is instantiated and not just all the time. I.e. template<typename T> struct foo { static_assert( false, "blah" ); }; will trip up everytime.
 
does the whole thing make sense though? I was thinking about specializing for char and wchar (I know, I know) in a parser so that the user can not see it.
@LucDanton wrap it in something?
 
The message makes sense, sure. It's helpful for things that are supposed to use in one particular way (e.g. foo<Ret(Args...)>) in case someone forgets about that (and instantiates foo<int> or whatever).
As for a template that should only be instantiated for two types well that's somewhat suspect.
@KeithLayne template<typename...> struct dependent_false_type: std::false_type {} and then use it as static_assert( dependent_false_type<T>::value, "blah" );.
 
not necessarily just two types, but it wouldn't work unless the user specialized for another type.
 
man, I'm turning into a full on hermit
 
2:27 PM
a what?
@Ell Because it does not not not finish.
 
Not funny, as usual from 9GAG.
 
Oh, you snobby you.
 
Tampon commercial? What the fuck was the commenter smoking?
I don’t see any tampons.
 
those outfits are horrible though.
 
2:30 PM
The Olympics are horrible.
 
well, I wouldn't know
I don't watch tv :P
 
Me neither.
Internet > TV.
TV is like musea. Too uninteractive and rarely fun.
The Internet is like a fun-fare with naked assholes, trolls and stupid people i.e. Lounge<C++>.
3
 
what do you mean, and Lounge<C++> :p
 
Okay, fixed it.
 
:D
 
2:38 PM
Oh and goatse.
My avatar—and thus the logo of Hexapoda—looks like goatse if you have a great imagination. :(
 
@Fred How about you give yourself a longer name that doesn't start with "Fred"? ;)
 
FredÜberflow!
Oh wait one that doesn’t start with Fred.
ÜberFred.
 
@RadekSlupik Actually, it does start with Fred.
 
Silly usage alert: i.e. is an abbreviation for id est, which translates to "that is". In this case, you're looking for e.g., which is an abbreviation of `exampli gratis", which translates to "for example". Also, either should be followed by a comma (e.g., like this).
 
@JerryCoffin No, I really mean “i.e.”
 
2:44 PM
Wow, you know C++ and latin? I'm sure you could somehow make a million dollars.
 
It applies only to “stupid people”, though.
 
@JerryCoffin That last one is a matter of style though.
 
Naked assholes and trolls are in the PHP room.
 
someone have a latin set of macros/typedefs/??? for c++ handy? :p
 
I know three of the five top languages on that list. Well, “know” not really for Haskell but that will come in the next few years.
 
2:47 PM
@RadekSlupik Sounds highly suspect to me -- with i.e., it's basically saying that all the trolls and stupid people are here. If you honestly believe that, you need to get out more.
 
I’m an Objective-C master and I’m reasonably experienced with C++.
@JerryCoffin Are you taking me serious?
I have a strange name.
Maybe I should wait a little longer before I hit ⌘C.
 
@RadekSlupik Ah, knowing Objective C tends to explain your loose grasp on reality. I, by contrast, have a very tight grasp on reality. In fact just a little tighter, and I think I can probably choke it to death.
 
Wasps can choke anyone to death.
 
@RadekSlupik You mean "Are you taking me seriously?" No, that's not likely.
 
Whatever.
 
2:50 PM
A wasp once once stung me in the neck while I was waiting for the bus. Wasn't very funny.
 
Take me serial.
 
I figured I'd give the github windows client a try...and I created an account to go with it, signed in, then deleted the account, reinstalled the client....but it's still caching my user name., even though I logged out. push to github" sends it crashing now :p
 
@FredOverflow How does that line go? Something about: "It's all funny until somebody has an allergic reaction and is choking to death on their own bile. Then it's freaking hilarious!"
 
I am writing a bug tracker.
Again.
 
just kill the bugs instead of letting them run loose. then you wont have to track them :)
 
2:53 PM
@melak47 I already started. There is no way back.
 
3:03 PM
I’ll use Bootstrap. Too lazy to create my own design.
 
Well, well, I got a Famous Question badge for this question.
 
it seems to be really easy to get lots of views on arquade - I've almost got it for gaming.stackexchange.com/questions/59759/…, my only question there too
I haven't even played dungeon defenders in ages
 
Yeah, seems like all you need is to ask about a game Jeff plays.
 
somehow the thought of installing origin is enough to put me off BF3
 
3:10 PM
Well, if you like shooters, I'd say it's worth it.
 
well fuck
I"m bored
 
I dislike EA to some extent. I'd probably buy it if it was on steam, but I'm not keen on falling for their "force everyone to use our thing too" given that I also quite like valve as a developer and publisher. I've also got tons of games I ought to play more of
 
Is it worth buying the C++11 standard?
 
Is it worth breathing?
 
3:16 PM
No.
 
Totally the expected answer!
 
@CatPlusPlus How the hell did you manage to secure that domain name for your blog? Isn't that a common name?
 
Er, I just bought it.
 
cause he's an incremented cat
post incremented then as wel
 
@CatPlusPlus Well, not common enough that it was not snatched up already then?
 
3:20 PM
It was available in all TLDs.
 
Jul 22 at 13:23, by Radek Slupik
Fuck ISO with their expensive free documents.
 
I'd pick .eu but was too lazy to deal with the paperwork.
 
I pirated it.
Oh no now I am a thief and a criminal oh noo!!
 
@CatPlusPlus Ah, so .eu is a trendy TLD then, I'm not just imagining things?
 
@RadekSlupik The committee will starve because of you, you evil bastard.
 
3:21 PM
@CatPlusPlus If they want people to pay for it they should lower the price significantly.
 
@LucDanton Dunno. In the end, I think it looks better with .pl anyway. Same initials and all.
 
If I bought it, I would starve.
 
Dude, you can't advocate pirating on this chat, people have got into trouble for that before, IIRC
 
@TonyTheLion No, they haven't.
 
your mum
 
3:23 PM
I frequently discuss the things I've acquired and seen others doing the same.
 
but I'm talking about pirating the standard
 
How could I possibly get into trouble on the Internet?
 
@CatPlusPlus Obviously the TLD was made just for you.
 
@RadekSlupik ANSI version is cheap.
@LucDanton Obviously.
I'm that awesome.
 
3:24 PM
The police in the Netherlands don’t even care if you smoke weed, let alone illegally downloading some overpriced document.
 
I never give a fuck.
I only give a fuck about bacon.
 
but do you get a fuck?
but bacon does not give a fuck about you
 
Of course it doesn’t, it’s inanimate.
 
3:27 PM
true
 
I had a discussion with my dad today about pirating software.
He said that I wouldn’t like it either if people would pirate my software.
He forgot that I never give a fuck.
 
and you said "I don't give on single fuck", dad
 
If people would pirate my software, that would actually be awesome; it means that people actually want it.
 
This is the C++11 document available for cheap (relatively speaking) from ANSI, right?
 
However, I mainly write OSS.
I’m designing a chat protocol with a friend and I’m planning to offer hosting against a fee.
 
3:30 PM
OSS?
 
Open-source software.
 
"chat protocol" is funny.
"socket". done.
 
Yeah and also a server and client, but we need a protocol first.
 
Lamb of God has got to be one of the more awesome metal bands around
 
3:31 PM
We use ØMQ. It’s awesome.
@TonyTheLion Lamb of God are great. :D
Do you like Amon Amarth?
@KeithLayne It’s more than just sockets.
 
@RadekSlupik not really listened to them much
 
@TonyTheLion Ah.
 
3:36 PM
> Powered by Hexapoda, Python and MongoDB.
Sounds so cheap. xD
 
Sounds so hip.
 
My bug tracker is bestest.
 
@RadekSlupik My reaction
yep it's raining
welcome to Britain Tony :)
 
yes :)
 
3:40 PM
My reaction:
Wow. That one is great for a 404 page!
“for a four-oh-four” page
 
imma eat
später
 
Why do you use MongoDB.
 
laters
@CatPlusPlus cause it's a non RDMS
sums it up
 
4:04 PM
Hello?
What’s up.
 
the sky
 
@CatPlusPlus Setting up and constantly changing schemas is boring.
 
I use an ORM anyway.
 
4:06 PM
@TonyTheLion That face.
 
4:30 PM
@RadekSlupik If you change your schema, you're doing it wrong.
 
@CatPlusPlus What, should I completely think out the schema before I start? What if I want to add a new feature later?
 
@RadekSlupik Yes, it's called "designing".
 
Not being allowed to change your schema makes development impossible. Even if you make a great and awesome design by forehand, big chance you made a (little) mistake somewhere.
 
I think the better a design is, the easier it is to change
And when you do have to change it, you only change a small part
and the rest keeps working
 
Anyway, I define my “schema” in code. No need to do it in both the database and in the code, that’s redundant.
 
4:43 PM
Not really, no.
 
Really, yes.
 
maybe, maybe not. Really.
 
Hello
 
Hello
 

« first day (652 days earlier)      last day (4282 days later) »