« first day (779 days earlier)      last day (4185 days later) » 

6:01 PM
y'know, stuff like that
 
@DeadMG I don't think it would be less readable than recursive decent. It could be even more readable. I'll have to see what I end up with. It isn't as optimizable, because it's already more optimized than the compiler can do for a recursive descent. I fail to see how this is more limiting wrt typing than recursive descent.
 
let me see
it would be completely unreadable, because you have one function that's every single state all lobbed together, instead of cleanly separated
it would be completely untyped because you only have one function so it can't return twelve different types or take various arguments.
it would be completely unoptimizable because the compiler can't know what the fuck to do
 
@DeadMG does recursive descent do that?
 
@MooingDuck Since you have twelve functions, they can return twelve different types.
 
@MooingDuck Isn't that how it is usually done?
 
6:05 PM
also
 
@NikiC no
 
one giant state table is by far and away not necessarily the most optimized version
you will not beat the compiler at micro-optimizations
partly because you're going to have to waste your life eternally wondering what the fuck return value you just got back
 
@DeadMG it's far more optimized than the series of if-else-if-else-if and many many function calls that I see that my compiler generated for my release build of my recursive descent parser.
 
is it?
 
@MooingDuck Afaik bison puts the reduction actions into one big switch, for example
 
6:06 PM
branch prediction makes if-else-if-else-if virtually free
and function calls are also essentially free on a modern architecture
 
Alright. Anyway. DeadMG's thoughts have been noted. I'll code it and see what it looks like and how fast it is.
 
@DeadMG if you can predict them properly...
 
Ell
M'son turned ten just the other day,
he said thanks for the ball dad c'mon let's play,
can you teach me throw I said not today,
I got a lot to do he said that's okay
Branch prediction amazes me
 
jesus, what, did you impregnate a girl at seven?
 
Ell
if the processor doesn't understand the algorithm, how can it guess which branch to take?
 
6:08 PM
@Ell The simplest is a historical interpolation.
if you've done this branch Y times, and 95% of the time it went one way, it's a good bet it'll go that way in the future.
 
@DeadMG it's a poem
 
@Ell Another way you can do it is if the branch is a value, you can preload the value by speculative execution and effectively cheat by testing it in advance.
 
Ell
it's this song: https://www.youtube.com/watch?v=KUwjNBjqR-c
^it's strangely upbeat for a sad song
 
@NikiC Yes- table-driven parsers are nothing new. They just suck, for many reasons.
 
@DeadMG oh? care to elaborate on that?
 
6:13 PM
First documented use of OMG.
Check the recipient.
 
@NikiC As I've previously stated, they're fucking unreadable, and non-type-safe, with all the lack of optimization opportunities that results in.
 
@DeadMG Oh, you are so knowledgeable. I guess you tried this out yourself and are not basing that statement on assumptions that may or may not hold?
 
uh, of course
not to mention that LR state tables involve a bunch of gotos, which is especially bad.
 
Hmm, headphones work in stereo on laptop. Work machine sound card is fucking crazy then.
 
@DeadMG wait, LR state table? That's not what I'm doing at all!
 
6:18 PM
@MooingDuck No, yours is just an LL state table.
 
At least, I don't think so. Reading wikipedia...
 
unless your idea is absolutely nothing, at all, like the terminology I recall you using
 
@R.MartinhoFernandes Btw, thanks for rmartinho.github.com/cxx11/2012/12/02/optimal-tuple-ii.html :)
 
hi guys
long time no see
 
6:21 PM
but I really can't stand an answer quoting the standard with only one upvote.
1
A: C++11 std::to_string(double) - No trailing zeros

rubenvbThe C++11 Standard explicitely says (21.5/7): Returns: Each function returns a string object holding the character representation of the value of its argument that would be generated by calling sprintf(buf, fmt, val) with a format specifier of "%d", "%u", "%ld", "%lu", "%lld", "%llu", "%f", "...

 
I know I speak blasphemy here, but can you merge bufferedimages?
 
@NikiC You're welcome. I intend to get part 3 ready this month. But I won't promise I will actually fulfill that schedule.
 
@Crowz Define "merge".
 
@EtiennedeMartel Superimpose one on top of the other.
 
I suspect you may have to do that by hand.
 
6:23 PM
@Borgleader how about adding that as an answer?
 
@LuchianGrigore Huh?
 
@Crowz for_each(std::begin(pixels), std::end(pixels), superpose_pixels(iterator_to_other_image));
 
@rubenvb BufferedImage is Java, IIRC.
 
oh. Java has foreach
and iterators
 
6:24 PM
@rubenvb I want to take in two pictures, find the edges of both, and copy it to a new picture
 
@Crowz use opencv.
 
@LuchianGrigore Meh, just mention it in yours :P
 
That's C++.
My build system thing has been progressing slowly due to me being paid to do other stuff :(.
 
@DeadMG eh, I guess you could say my idea works on the same concepts as an LL state table, except I was going to have switches in functions rather than an actual table. Far more readable. (Though the LL state table appears faster than what I had in mind.)
 
how do you think state tables are implemented?
or rather, they are the pre-optimized version of a switch.
 
6:26 PM
> pre-optimized version of a switch
isn't a switch easily optimized?
 
yes, but that's not the point
the point is, it's exactly the same thing
 
@DeadMG I see your point. So yes, I re-discovered (A simplified form of) LL state tables.
 
@rubenvb Hehe.
 
user1182183
http://pastebin.com/naL0XjAm
Lol'd at that
 
@MooingDuck reinvented <-- FTFY
 
6:28 PM
Please, no huge walls of code.
 
@R.MartinhoFernandes I did almost finish basic inter-subproject dependency handling.
 
I am actually being paid to deal with Unicode and fonts, which is cool because it means at work I am gaining XP to invest in skills for ogonek.
 
lol
 
@rubenvb I typed that at first, but figured that sounded like it was giving me more credit than I deserved.
 
user1182183
@EtiennedeMartel man you could ask to edit it -.-'
 
6:29 PM
@GamErix Maybe, but then I wouldn't have been able to abuse my admin powers, would I?
2
 
Xeo
@GamErix Asking you means there's a chance you won't. Binning is a 100% success chance. :)
 
@MooingDuck Well, you did independently come up with the same idea, so there's nothing wrong with reinvented.
 
user1182183
@Xeo does a cop shoot you right away and even don't say "hands in the air" ?
 
Oh gawd, that was VB.
@GamErix You are not dead.
You can even post that the right way now if you really want..
 
user1182183
@R.MartinhoFernandes but it's an applicable comparision ;)
 
6:30 PM
@GamErix Cry me a river, build a bridge and get over it.
 
I put my dog in a cage just now
 
This is a win-win situation. The one you described is an irreversible lose-lose situation.
 
user1182183
@DeadMG you should put Etienne too ;D
 
@DeadMG Poor daisy.
 
user1182183
6:31 PM
@R.MartinhoFernandes yeah ok u got a point
 
Xeo
@GamErix Depending on when and where...
 
@GamErix Tsch.
 
@R.MartinhoFernandes Damn dog won't stop barking, no matter what we do.
I figured it was time to introduce some punishments more extreme than just saying mean things.
 
"Damn dog" :/
 
user1182183
@DeadMG mine only barks when someone approaches the house or rings the bell
 
user1182183
6:31 PM
or I play with him :P
 
Calcium Ion is name
Next time I GM I am naming an NPC "Calcium Ion".
 
Xeo
@DeadMG No freedom of speech amongst your kind, huh?
 
Hmm. "Next time I GM" == "Not anytime soon" :/ Dammit.
 
not if it entails spending months incessantly barking at nothing, to the maximum irritation of everyone around you, despite the fact they clearly tell you off for it.
 
Qt Creator 2.6 seems dead slow vs 2.5.2.
 
6:35 PM
@DeadMG Because dogs understand words.
 
they do if you say them in a mean enough fashion
and then ignore them for hours
they get the point
or should do
 
@EtiennedeMartel You can transmit them the idea that they have been bad.
 
Dead is probably as good at that as he is at coding, though.
@MooingDuck Seriously, a 2MB source file?
 
@R.MartinhoFernandes it's Java afterall.
 
6:38 PM
@MooingDuck wow.
 
@R.MartinhoFernandes And, oh noes, opening a whole 2MB might cause the IDE to crash.
 
Also note the lack of a "no" or "cancel" button.
 
Ell
I need an anonymous pseudonym
 
To be fair, it needs to keep track of more than text.
 
@Ell FuckNugget.
 
Ell
6:39 PM
heh
 
6 mins ago, by R. Martinho Fernandes
Calcium Ion is name
 
Ell
oh wait, I can't have your suggestions can I?
 
I just searched my Source directory for the largest *.c file and I got gay-shortest
somewhere inside Qt.
 
6.273 MB.
 
user1182183
6:40 PM
lol
 
how big is yours? :P
 
I have a 2.65 MB file on ogonek.
Decomposition mapping data.
 
The gay file (there's three of 'm) is actually part of v8's tests
 
It was part of a source that totalled up to 8.96 MB but I splitted for various reasons.
 
@R.MartinhoFernandes This reminds me, why "Flaming Dangerzone"?
 
@R.MartinhoFernandes Oh.
 
right
I fixed the UCD converter so that one of the problematic inl files is no longer, well, problematic.
 
hmm
decomposition_properties will be tougher
codepoint const*
I can't make that an inline array, can I? like {x, y}?
it would have to be named
 
No idea if that works for MSVC.
 
6:50 PM
would it in GCC?
 
I think so.
 
I think I know why I have to go to Sweden now?
 
the girls serving...
that was taken in a Swedish McDonalds
 
the UK McDonalds is kinda like that too
 
6:54 PM
erm, not the one's I remember
I have no food :(
delivery is coming only at 8
 
You have no food and are being picky about the McDonalds that don't have serving girls?
 
lol
 
Btw, just in case it's not clear, they are there to serve food, not boobs.
 
yes I know that
goddamnit, can't I say anything without you guys being so serious.
 
user1182183
@R.MartinhoFernandes damn
 
6:58 PM
so I bought a xmas present for my dad
I hope he'll like it
 
oh, for fuck's sake, BBC
one royal bitch is pregnant and OH MY GOD XYZ IS EXPECTING A BABY!
 
pathetic
 
bitch... ...a baby?
well, maybe bcoz it's royal bitch
 
@DeadMG Who?
 
7:00 PM
Princess of Cambridge
 
Cambridge has a princess?
 
Oh, Kate?
 
@TonyTheLion What did you buy?
 
She's hot.
 
@EtiennedeMartel yep
meh
 
7:00 PM
@DeadMG Is she hot?
 
uhm, I thought it's about a dog
 
Oh, too late.
 
who gives a fuck?
 
7:01 PM
@DeadMG Her husband, presumably.
4
 
@DeadMG not you, man
 
Ell
22? :o
 
@R.MartinhoFernandes Yep.
 
@TonyTheLion Hey, that's what I was planning to buy for my dad!
 
@Ell the 23rd is not out on DVD/Blueray yet, is it
 
7:01 PM
My dad is the biggest 007 fan.
 
@R.MartinhoFernandes Indeed. But it's certainly not in the national interest to spew this shit all over the front page.
 
@R.MartinhoFernandes hehe, how cooincidental
 
Ell
I only thought there were about 7 :L
 
lol
rly
 
@Ell 7 is only the Brosnan and Craig films.
 
7:02 PM
It's just a pity that it has Quantum of Solace in it.
 
Sean Connery did some Bond movies, I didn't know that, until recently
 
Ell
how many bonds were there? Roger moore, sean connery, daniel craig, pierce brosnan
 
Timothy Dalton
 
@R.MartinhoFernandes I can live with that.
 
@Ell George Lazenby and Timothy Dalton.
 
7:03 PM
@R.MartinhoFernandes Well, you can always use that as a coaster.
 
@Ell Those are only the EON (aka "official") ones (minus Skyfall). There's a Casino Royale from the sixties, and there's a remake of Thunderball named Never Say Never Again with Sean Connery.
@TonyTheLion He's the original one!
 
yeah, Connery was the original Bond
 
@R.MartinhoFernandes oh.
 
@TonyTheLion Seriously, they even made a point of mentioning that in the title of the DVD version: amazon.co.uk/Complete-Collection-including-Quantum-Solace/dp/…
> James Bond Complete Collection (22 Discs, including Quantum of Solace) [DVD] [1962]
That is bad marketing right there.
 
lol
@R.MartinhoFernandes so was that the rather boring one?
 
7:07 PM
It's like "Oooh, James Bond Complete Collection, neat! Wait, it has QoS. :/"
@TonyTheLion It's the one before Skyfall.
 
@R.MartinhoFernandes Well, it's the most recent one (in home video, at least).
 
hmmm
I don't remember that one very well
 
Ell
what's up with QoS? (also, is that the hydrogen one?)
 
Casino Royale is the one I thought was boring
not QoS
 
7:09 PM
@Ell It is lame as fuck, even for a Bond movie. Plus, CR raised expectations that QoS totally failed to meet.
 
Can I cast some container<type>::iterator to a type* or do I need to dereference and take its address?
 
Skyfall is good though.
So, at least, they managed to fix the issues.
 
@rubenvb No, and no.
 
So I heard.
 
@rubenvb You need to de-ref and take address.
 
7:10 PM
The jury disagrees.
 
and don't make any contiguity guarantees unless you know what the container is and you know it's valid.
 
I'm storing a pointer to some object stored safely somewhere else (i.e. some implementation defined location on the heap)
 
If you want contiguity guarantees, just take a (pair of) pointer straight up.
 
you guys lost me.
 
Just store the iterator
 
7:12 PM
@CatPlusPlus no, I'm storing a raw (unowning) pointer to some object of some type.
I'm not storing a random container(-which-I-might-change-later)-bound iterator
 
Invalidated iterators can be caught by debug runtime
 
not sure if I'd want to cuddle a real life tiger
 
@CatPlusPlus my pointer isn't going to be invalidated.
 
Right
 
7:15 PM
because I use smart pointers in some container in some class that lives all runtime long. I never move/delete the elements of the container.
and no, it's not a singleton.
 
I got rid of all those.
 
Xeo
GCC 4.7 problem?
 
Hi all
 
@Xeo I'd say so looking at the std
 
7:18 PM
@Tony The Lion
great 9gag pic
 
@Xeo: 23.4.4.4 doesn't list the emplace* functions, but they're in the class definition above that point.
 
Xeo
@TonyTheLion You're a lion, you'd likely make a Liger with it.
 
This looks like a kind-of-a-big-defect.
 
Xeo
@rubenvb > Descriptions are provided here only for operations on map that are not described in one of those tables or for operations where there is additional semantic information.
So the emplace stuff is likely described in one of those places.
 
7:21 PM
ah.
idd
table 102.
 
/:
how can i add image?
in the chat
?
 
Is stacked-crooked.com a replacement for liveworkspace?
 
Xeo
@rubenvb Its @StackedCrooked's go at it, yeah.
 
Xeo
Don't rely on anything, though :P
 
7:23 PM
thanks
 
Pretty neat. Especially since the original went offline.
 
bye all
haha
 
@rubenvb The coolest part is that you can just bugger him whenever you need a feature.
 
Xeo
Exactly
Like
@StackedCrooked Can haz 2-space indent by default? :3
 
Laureen and I congratulate the Duke and Duchess of Cambridge on their wonderful news #royalbaby
 
7:24 PM
@Xeo EWwwwww.
 
Crazy Stephen.
 
Just copy & paste from your editor like a man.
 
@R.MartinhoFernandes 2-space indent and snake_case ftw!
 
Xeo
@R.MartinhoFernandes But I want to code in the online editor :|
 
Like, "Hey @Stacked, can you put wheels on Coliru?"
 
Ell
7:25 PM
tab indent is so much better than space
 
4-space indent ftw.
 
Xeo
Oh yeah, also: @StackedCrooked Also can haz ctrl-T not map to "swap chars"? Kinda irritating when you want to create a new tab...
 
Ell
\t!
 
tabs sucks
 
Xeo
@Ell Ahahaha
No.
 
Ell
7:26 PM
@Xeo why do you like space?
 
@Ell no. Tab is extremely editor dependent.
 
@Ell Because it works, bitch.
 
It might be 2, 4, or even 8 spaces wide.
 
Xeo
@Ell Consistency.
 
Ell
@rubenvb but configurable, source file looks the same, everyone gets it to look how the want!
 
7:26 PM
@Ell nope.
 
@Ell nope, cause continuation lines are fucked up.
 
@Ell Or to look like a piece of shit as soon as there any non-trivial alignment involved.
 
some_function_call(blalablblablaba,
                           blaalbala);
^like that
tabs suck.
 
Ell
Oh yeah. What were those magic tab things?
 
you can't configure tab size on github, etc
 
Xeo
7:27 PM
Is that the post or pre fuck-up version? :P
 
Ell
but moving across spaces is sloooooow
 
Xeo
ctrl-arrow
 
Buy a better editor.
 
Xeo
Buy?
 
Ell
7:28 PM
I have no monies :o
 
@Xeo It's a reference to a very very old cartoon.
 
Ell
also even if I did I wouldn't spend it on an editor
ahh right
that penguin one?
 
Xeo
@R.MartinhoFernandes Oh, which I probably don't know then.
Hm, Clang + libc++ also chokes on that map.emplace code...
 
@Xeo Time to harass Howard Hinnant.
 
Xeo
Or read the standard more carefully.
 
7:32 PM
@Xeo you probably got a const map under your nose anyways
 
Xeo
I have an up-to-date trunk version of libc++, and I kinda doubt a big bug like that would live for so long.
@rubenvb oO
How the fuck would that happen if I have std::map<A,B> x; x.emplace(...);?
 
ah yes
 
What do space suits, nuclear waste containers, romantic conquests, monsters, macros, containers, and conversations have in common?
 
forgot your example
@R.MartinhoFernandes Robots.
 
Xeo
@R.MartinhoFernandes Examples of explaining monads?
I remember you talked about the space suit one, atleast.
 
7:34 PM
Damn, that was fast.
 
@R.MartinhoFernandes This?
 
Ell
does anyone know how to open "Page Info" without right clicking in firefox?
 
@Ell click the globe next to the address and click "more information".
 
Ell
ah ta
 
Press the context menu key on the keyboard?
 
7:39 PM
lol
fuck.
got myself a segfault
 
Ell
@R.MartinhoFernandes context menu key? o.O
 
@Ell Ctrl-I
 
@Ell key on the right next to Ctrl
 
@netcoder opens bookmarks here.
 
Ell
omygawd
that's what that does!
 
7:50 PM
for chrome all you have to do is click the little.. paper next to the url.
 
@rubenvb What? Ctrl-B opens Bookmarks...
Either you have a fucked up keyboard layout, or I don't know
 
@netcoder so does ctrl-i apparently. ctrl-I does the "Inspect" thingie
 
@rubenvb Ah ok, you have some extensions that probably override/change the shortcuts
 
@netcoder not that I know of.
 
Because the original one is Ctrl-I: support.mozilla.org/en-US/kb/…
 
7:56 PM
@netcoder ctrl-I does bookmarks.
 
jesus cockfucking christ
 
the dog's barking again
 
I'm outta here
cheers guys
 
@rubenvb Riiiiiiight
 

« first day (779 days earlier)      last day (4185 days later) »