« first day (806 days earlier)      last day (4147 days later) » 

5:00 AM
> HipHop for PHP transforms PHP source code into highly optimized C++.
@CatPlusPlus Huh?
 
user142019
HipHop for PHP is a source code transformer for PHP script code. HipHop programmatically transforms PHP source code into C++ and then uses g++ to compile it to machine code. HipHop includes a code transformer, a reimplementation of PHP's runtime system, and a rewrite of many common PHP Extensions to take advantage of these performance optimizations. HipHop for PHP can substantially increase the speed of PHP applications. Improvements of web page generation throughput by factors of 2 to 6 have been observed. HipHop was created by Facebook to save resources on its servers. It is being dist...
 
@StackedCrooked Huh what
 
I'm afraid to talk now.
 
It's a compiler for ~interpreted~ language
 
user142019
They shouldn't have used PHP in the first place and problem solved.
 
5:01 AM
solved no. 50 :D
 
Yeah, they should've used Haskell.
 
user142019
Indeed.
 
user142019
Oh well, Facebook Chat back-end is written in a decent language, at least.
 
Erlang :)
 
user142019
Erlang is wonderful.
 
user142019
5:02 AM
Almost as wonderful as C# and Haskell.
 
C# is mediocre
 
such a stupid method but it works lol
 
Apart from LINQ there's absolutely nothing interesting about it
 
0 is not a prime number D:
 
5:03 AM
i know
it's like a patch
 
user142019
Of course not, 0 is divisable by everything but itself.
 
because i'm lazy
:D:D
that's why i said it's a stupid method xD
 
user142019
I don't understand applicatives.
 
@CatPlusPlus There is, like why there's so many out there who loves it.
 
... Must
resist euler urge ;~;
 
5:05 AM
@Zoidberg'-- Not everything
 
The automation provided by the IDE can compensate for inferior language design. If you always use the IDE then this might go unnoticed.
 
@ThePhD waiting for that 67 solution :D
 
SHHHH quiet you.
 
user142019
0 is like the opposite of a prime.
 
@StackedCrooked I wonder why no one can't match VS...
 
user142019
5:06 AM
unprime :D
 
@ThePhD no thanks ;)
 
VS has semi-decent GUI debugger, and that's about it when it comes to remarkable features
 
user142019
Le topique est veel te old.
 
No, wait, it has a cool profiler too
 
@CatPlusPlus semi-decent? i find it amazing ;) helps me a lot
 
user142019
5:07 AM
I never had problems with LLDB and GDB UIs.
 
Add VA X to the picture...
 
I too like the fact that you have to buy addon to an IDE that costs thousands to have working refactoring
 
Hey, the Cat actually likes something
 
I like many things
 
Like in the song my favorite things?
 
5:11 AM
I wonder if there's a way to fetch a specific argument out of a parameter pack...
 
@StackedCrooked I don't know that
 
It's from a movie that my sister used to watch every day.
 
@ThePhD What for?
 
@ThePhD Like indexing it?
 
@Tuntuni stacked-crooked.com/view?id=2ba6e51fa7d553e6cd7478fe504f3d4c answer's wrong obviously but that's the gist of it
It's wrong because the file isn't there
 
5:12 AM
@CatPlusPlus Need to select a parameter for stringification and then manipulate it.
I do not want to loop over the target string that's going to get manipulated more than once, so recursing down to a single parameter and then searching the target string is an unacceptable solution.
 
When you unpack, you always work with a single argument
Just unpack until you reach the one you want
 
@CatPlusPlus Hm. I'll give that a try...
.. I think.
 
@Rapptz :D
 
And yes, you should probably scan the string more than once
Format string doesn't determine the number of arguments, number of arguments does
 
this just in: there's not much Starcraft 2 going on at 5am.
 
5:15 AM
Also you can't do reordering if you just scan once
 
Really? It's the afternoon in Korea.
 
different gateway
btw
 
There's a lot of Planetside going on though
 
today I managed to finally parse, code generate, and link some source code through Clang.
 
@CatPlusPlus I think I can do it with a single-pass, though.
 
5:17 AM
Siegeing a complex held by the enemy feels incredibly cool
 
@DeadMG Sweet deal, 'grats.
 
not really
it's what I'm going to do next that's a sweet deal
 
@ThePhD And it leads to wanting to unpack specific arguments from the pack, instead of just simply processing them as they come
 
@Rapptz you live in Korea?
 
I don't think there's any formatter that does it in one pass
 
5:18 AM
No
 
It gimps reordering and it's important part
Especially for i18n and stuff
 
How can I have multi-line strings in C++?
I know in Python I can just do """ string here """
 
@Rapptz \n
 
@Rapptz in the editor text, or what?
 
"asdfasdfsdf\n"
"fsdfsadfasdfsd\n"
"sdfsdfsdfsdf\n"
 
user142019
5:22 AM
R"(foo
bar
baz)"
 
definitely not what I meant
 
I mean, literally this
 
"line line line"
 
String literals are joined together
"xxx" "xxx" is the same as "xxxxxx"
 
so no way huh :(
 
user142019
5:22 AM
Use raw literals you fools.
 
user142019
42 secs ago, by Zoidberg'--
R"(foo
bar
baz)"
 
Do raw literals keep the newline?
 
gasp
 
I think, Zoiberg wins today.
 
user142019
Yes.
 
5:22 AM
@Zoidberg'-- not all compilers support raw litterials
 
Okay cool.
 
Nobody cares about MSVC
2
 
user142019
@johnathon Rapptz asked for C++, not C++-as-supported-by-all-compilers.
 
@CatPlusPlus CTP supports it cat.. unfortunatly though im stuck on 2010 atm
 
plus I'm using GCC not MSVC so I think it's supported there anyway
 
user142019
5:23 AM
Clang supports it. That's all I know.
 
GCC supports everything
because it's not a pile of shit
 
It is a pile of shit
 
Andit's not getting paid billions a year to sit on its ass and do nothing
 
user142019
GCC supports everything except everything.
 
It just happens to be a pile of shit that has good C++11 support
 
5:24 AM
i have to agree with cat on that
 
MSVC is still worse :v
 
Worse than a pile of shit - what does that make it?
 
Steaming pile of shit
 
user142019
PHP-like
 
A pile of shit from a dung beetle? That is steaming? And happens to form the letters 'PHP' ?
 
5:25 AM
Shit in your mouth
 
user142019
All C++ compilers suck since they implement a terrible language.
 
@ThePhD Two piles of shit.
 
user142019
The best compiler is erlc and your argument is invalid.
 
@Zoidberg'-- And Microsoft sucks because it supports a terrible language.
 
My new PC is awesome
 
5:26 AM
nobody cares about your new pc
 
@MarkGarcia Yeah, with that "stood" string and "stood" vector crap.
 
also, the best compiler is the brainfuck one as there is nothing wrong with it
 
I accidentally started recording Planetside and FPS didn't dip at all. And it's set to high details.
 
user142019
@Pubby except that it implements a terrible language.
 
user142019
5:27 AM
BRAINFUCK HAS ONLY GOT SIDE-EFFECTS
IT'S TERRIBLE
OH NO
 
My Brainfuck compiler is the best
 
user142019
The ideal language has no side-effects and no FFI and all programs can be optimized to nop.
 
@ThePhD you solve euler 65 yet?
 
Leave me alone about Euler ;~;
You can't make me do it! I won't!
 
You should do it
 
user142019
5:28 AM
 
@ThePhD don't make us bring out the intimidator
 
Instead of wasting time on PE play a game
 
^ This is a man who gets paid for his craft.
 
user142019
PE is a game.
 
What is PE?
physical education?
 
user142019
5:30 AM
It plays with your mind.
 
user142019
@Pubby Ploject Eulel.
 
Eulel sounds like a nice name.
 
user142019
@Pubby I'm glad I don't get that terrible subject anymore.
 
Dodgeball was the shit.
 
5:31 AM
@CatPlusPlus denied
 
or.cdn.sstatic.net
 
user142019
TOPIC IS OLD OMG
 
user142019
Change it to happy almost last day of the year. xD
 
happy malloc year
 
room topic changed to Lounge<C++>: Happy old yeat [c++] [c++11] [c++-faq]
 
5:33 AM
lmafo
 
room topic changed to Lounge<C++>: Happy old year [c++] [c++11] [c++-faq]
 
user142019
delete year2012;
auto* year2013 = new year;
 
user142019
xD
 
@Zoidberg'-- Then the world stops turning with that.
 
5:34 AM
Jan 1 is apparently public domain day
 
user142019
Jan 1 is apparently the first day of the year
 
user142019
I think Lounge<C++> will die before the end of 2012.
 
@Zoidberg'-- copy swap dude
 
It's already dead, it's all in your head
 
user142019
5:36 AM
We're all brains in vats.
 
user142019
And they punish us with flags and PHP.
 
Let's see how Dxtory recording works
 
user142019
I should sleep.
 
user142019
It's 6:38 AM.
 
user142019
5:39 AM
But I don't want to wake up at 16:00 again like today.
 
user142019
:<
 
user142019
:^<
 
lol
 
user142019
NOT FUNNY :^<
 
very funny
 
user142019
5:45 AM
In eight minutes, my laptop will run out of battery power.
 
user142019
Then I'll sleep like a motherfuuuuuuuuuuuuuuuucker.
 
user142019
TIL: F# has units. Awesome.
 
user142019
5.2<kg>
6.36<m/s^2>
 
Who uses F# anyway?
 
user142019
Me.
 
5:53 AM
Maybe F#. It supports units anyway.
 
whoa whoa whoa.
cmath actually has mathematical functions in it? Who would have thought
 
numeric too
 
Well I found out cmath has stuff like the beta function, legendre polynomials, etc
weird
oh they weren't standardised in C++11 :(. Lucky for me they exist in <tr1/cmath>
 
6:09 AM
You like numbers, don't you?
 
yes
 
@Zoidberg'-- I know the feeling
I woke up at 19 today :v
Well, yesterday
OTOH I'm not going to accomplish much by staying awake
 
6:35 AM
OTOH?
 
On the other hand
 
Ah.
Well, I did something better than Project Euler.
 
What's on his other hand? I want to know!
 
Single pass formatting, that does not call a copy-constructor for arguments that are already in the appropriate type:
It fast-exits for 0 parameters as well, and just in general makes me feel so happy. <3
 
6:37 AM
Dude did you really make your own string class
 
Not really. I cheated and inside of that String there is a std::string.
 
Dude
 
Or a std::basic_string<TChar>, but you get the idea.
Hey man, it's better than Project Euler, man. :c
 
critical thinking > reinventing the wheel :)
 
I did not reinvent any wheels.
 
6:39 AM
though I am interested in your format, was it inspired by python?
 
I reused std::basic_string<> and made decent, fast, lovely Unicode/Encodings work on top of it.
 
Format was actually inspired by C# and the need to throw exceptions that did not suck.
 
CriticalFailureException?
 
CriticalFailureException, indeed.
 
6:42 AM
Your String::Format throws an exception that uses String::Format?
 
Terrible
 
@StackedCrooked only sports anime I've watched is One Outs - fun series
 
@CatPlusPlus Great.
@Rapptz String::Format is nothrow or noexcept or whatever it's called in C++0x.
 
@kfmfe04 I saw that too. It was fun indeed :)
 
@Rapptz The internals you're seeing are from ContentLoader::Load<T>(String& id, T*& value)
 
6:45 AM
@kfmfe04 If you liked that, then I would highly recommend you to watch the Major series. (It's 100000000x better than One Outs).
 
@StackedCrooked thx - I'll check it out
 
But yes,
I now have GREAT exceptions
Filled with GREAT information and GREAT justice.
The world is at peace.
 
@StackedCrooked wtf - 154 episodes?
 
And there's not a Euler problem to be found.
@kfmfe04 Starting to sound like The Prince of Tennis.
 
@kfmfe04 Took me less than a month.
 
6:48 AM
@ThePhD I think I saw that manga in BookOff once - didn't know it was turned into an Anime
 
@kfmfe04 Oh, it turned into a Two-Season Anime. My sister squee'd and gushed over it.
I didn't watch more than 2 minutes of an episode.
 
I heard prince of tennis is rather silly.
 
Extremely.
 
is a manga series, a coming of age story based on the board game Go written by Yumi Hotta and illustrated by Takeshi Obata with an anime adaptation. The production of the series' Go games was supervised by Go professional Yukari Umezawa (5-dan). The manga is largely responsible for popularizing Go amongst the youth of Japan since its debut, and in other areas such as China, South Korea, and Taiwan. More recently it has gained much popularity in the United States. The title is sometimes abbreviated as "HnG". First released in Japan in Shueisha's Weekly Shōnen Jump in 1998, Hikaru no...
You can't get sillier than this :)
 
Major, however, probably deserves a place in my personal top 5.
@Rapptz I saw that :)
 
6:53 AM
too bad there's no anime on the Hanshin Tigers - I would watch that
I think there's like a gazillion episodes of Hikaru no Go...
 
@kfmfe04 Koshien plays a big role in Major.
 
@StackedCrooked nice - I'll definitely have to watch it then...
I like everyday-life anime like 日常 Nichijō or Lucky Star... ...unfortunately, there aren't too many of this type
 
lol it takes 6 seconds to generate the first 100 million primes and put them to a .txt resulting in a 54.2 MB file
interesting
 
@Rapptz writing to disk may take quite a long time, especially if you are doing a linear/ASCII write - binary write as a chunk should be super fast
 
@Rapptz We get it you're Optimizit Prime
 
7:01 AM
@Borgleader hey hey I was bored :(
unless you have some whacky idea for me to do at 2 AM
 
That was a Transformers joke T_T
 
I assumed you put your face on your keyboard
 
@kfmfe04 Cross game is also an interesting baseball-themed anime.
 
Ripoff from family guy
 
7:03 AM
Probably a rip off from Simpsons too.
:( image killer
 
7:38 AM
when typedef'ing a std::unique_ptr<Foo> are there any standard naming conventions? I'm using up_Foo but I prefer to follow standards when there is one...
 
I extremely rarely use a typedef
 
Um.
Is MSVC supposed to explode if you have a class that has more than 3 template parameters...?
 
@ThePhD Nope. I blame your code.
 
Hm.
Well, I have 3 template parameters right now.
So it's fine and I use it, and then I add a fourth
And the thing just goes nuts.
 
@kfmfe04 You should see typedefs as new types (I know they're not technically new, but I'm talking about design here). So, give them a name that makes sense, and fits with your current naming standard.
With a unique_ptr<Foo>, I would go with FooPtr.
 
7:49 AM
... Yeah, maybe I'm just like
too tired to see what I'm doing wrong.
 
@EtiennedeMartel what if I'm using them as an abbreviation for something else?
 
template<typename T>
using ptr = unique_ptr<T>;
ptr<Foo>?
 
template < typename TK, typename TV, typename TH = FurrovineHasher< TK >, typename TKEq = std::equal_to< TK > >
	class Dictionary {
TKeq makes it just absolutely explode.
 
lol
 
@ThePhD If that had been a question on SO, I would have downvoted it. Because "goes nuts" is pretty much the same as "This doesn't work" with no additional details.
 
7:50 AM
Comment it out, and it behaves perfectly.
maybe I'm not allowed to set something equal to std::equal_to ?
@EtiennedeMartel Sorry, I was trying to see if I could fix it before I say anything more. Needless to say it compiles great once I comment out the fourth template parameter...
I wonder what I'm doing wrong.
AHAAA
Found it.
Goddamn friend, you're not really my friend.
3
friend was forward-declaring it, so the mismatched parameter count made everyone all sad and shit.
 
did you add the <>?
Usually for friend types you add the <> before the function declaration if you didn't get that. Unless I'm misunderstanding.
 
No no, the friend declaration came before the class declaration.
So the friend declaration became The Rule that other declarations had to follow.
That friend declaration was short a parameter.
So when I expanded the regular class declaration and definition, shit got real.
 
I was thinking actually about this friend std::ostream & operator<< <T>(std::ostream & output, const Object<T>& o);
 
Oh. Yeah I don't have individual friend functions.
Though that made me realize, 0 of 0 of my classes have ostream operator<<'s on them.
.... Meh. Who needs 'em anyhow.
 
8:17 AM
The WPF designer loads so slow..
 
8:28 AM
@Rapptz in VS?
 
Yeah
I kind of miss WinForms.. :( This stuff is pretty foreign to me
 
the designer in VS2010 renders plain wrong sometimes, I don't trust it much. VS2012 is better
 
I'm using VS2012
 
8:45 AM
Epsilon Red Riding Hood
 
9:13 AM
Object? what a worthless name for a class
 
it was an example :(
 
o
 
Ell
10:01 AM
Is what Java has modules?
 
10:58 AM
Dammit... I came to Africa to escape the cold. It's fucking cold here in Morocco.
 
@Mysticial How long are you there?
 

« first day (806 days earlier)      last day (4147 days later) »