« first day (1580 days earlier)      last day (3371 days later) » 

2:00 PM
@Rerito If you're stuck with interaction with C API, I think that 'burning alive' is a little extreme.
 
@BartekBanachewicz for example, I'd be hesitant to just start throwing lambdas around (not that I can due to not using Java 8) if there was a reasonably concise way to do what I want with out them. I don't trust those who follow to be competent enough for them... which is it's own problem really...
 
@MartinJames Oh no not at all, just exercising building things from scratch (in that case a suffix tree)
 
Working in a team ultimately sucks
 
working in a shitty team does
 
I pull the literature on the subject, study the algorithms (redoing the maths proofs, etc.) and then code it from scratch using C++
 
2:02 PM
@Rerito if it's proof on concept stuff, then it's more excusable
 
The idea is also to hone my C++ skills
 
@CatPlusPlus It's fine as long as you have good, effective manageme.... . ah, I see the problem.
2
 
@BartekBanachewicz sure, if you have a small team who know their shit, you can make more assumptions about skills. but for larger projects, that can be risky. sad but true.
 
@BartekBanachewicz lol
 
So if I got a class like:

    struct Node {
        std::unordered_map<Key, Node*> my_map;
    };
damnit I always fail at formating code here
 
2:04 PM
@Rerito click the "fixed font" button after pasting the code
 
@Jefffrey I'd just much rather be given MonadState myState than myState -> myState callback
 
Oh right thanks!
 
np
 
You're saying I should do smth along the lines of std::unordered_map<Key, std::shared_ptr<Node>> my_map; instead?
 
user1804599
Just like microsoft to take something that works everywhere (the universe) and make it work in a very small subset (the globe) :) — Gus Feb 26 '13 at 20:49
 
user1804599
2:05 PM
:D
 
@Rerito are you sharing ownership? what's the semantic?
 
@MartinJames Kinda tired of explaining
 
@Jefffrey It's a tree structure
 
It takes longer than doing
 
There's a root that has children which in turn have children and so on
 
2:07 PM
@CatPlusPlus Just take the money.
 
But each Node may also have a suffix_link that points to an "unrelated" other node in the tree
(unrelated in the sense not a parent nor child of the said node)
 
@Jefffrey I'm doing a pure draw function. I want to render multiple things, but they don't have the same type.
 
@Rerito can two nodes share the same child?
 
hm now actually
 
So I guess here since two pointers to the same Node can exist, I'll have to go with shared_ptr
 
2:08 PM
C a => a...
then one can store const c
with that applied a
 
(Also I might add some parent pointer in the future if I deem it useful for some applications)
 
I guess
 
@Rerito Will you be fighting those ownership semantics all the time?
If so, no.
An important question is: what happens if you remove a non-leaf node?
Do all its children go away?
 
@R.MartinhoFernandes You never do. Removing a non-leaf node would be made only if its children are removed
(Or in the destructor)
In either case all its children do go away I guess
 
Then why do the parents need to own the children then?
 
2:11 PM
Hmmm now that you mention it there is a last case
Suppose we remove a string from the suffix tree
 
@R.MartinhoFernandes That's just the way the world works I'm afraid
 
If you never remove non-leaf nodes, there are only two things that happen: 1) whenever you remove a node, it has no children so it needs no ownership relations; 2) when the whole tree is destroyed, all nodes are destroyed, meaning the tree owns them all.
 
We remove the leaves associated to that string and in turn walk up from these leaves
We might end in an internal node that still have a child but we need to delete it and make the state it represents implicit
 
Leaving children should be illegal.
 
@MartinJames Indeed, I'm not leaving them, I'm destroying them. Parenting done right!
 
2:13 PM
@ruipacheco what do you mean by "std::remove'ing a file" ? — lisyarus 1 min ago
He means he calls std::remove :/ — sehe 43 secs ago
Too much STL invariably catches out the C++ programmer with no background in C
 
Node it's not
 
@MartinJames Yeah, because crooks totally baulk when they find out that what they're doing is ... eeeeek! - against the law
 
@sehe Too much STL and too many bad names in the Standard Library
 
user3010322
Ugh.
 
user3010322
Not again with paypal.
 
user3010322
2:16 PM
Not fucking again.
 
user3010322
It doesn't let me just pay for something without signing up, it INCESSANTLY punches me in the nose, trying to get me to link accounts, provide more information...
 
@AndyProwl arguably, the std::remove(char const*) is the one badly named
 
user3010322
Simple my ass. ;~;
 
user3010322
Also, gasp!
 
user3010322
sehe!
 
2:17 PM
@sehe That's what I meant
@ThePhD That's what she said
 
I can accept 'std::remove(char const*)' if there is a std::replace(char const*).
 
That's what she mean me to say
 
user3010322
Have you ever heard of Music Information retrieval?
 
user3010322
Gdi.
 
user3010322
....
 
user3010322
2:19 PM
u.u;
 
@ThePhD how can you pay for something without signing up
 
user3010322
THERE WE GO.
 
user3010322
@LightnessRacesinOrbit Lots of businesses seem to be able to do it just fine. :v
 
@ThePhD you've never played Stairway to Heaven backwards, I take it
3
 
Speaking about smart pointers, any good input (an article or smth) would be greatly apreciated :)
 
2:19 PM
@ThePhD ehm???
@ThePhD how many online payment processors can you list?
 
user3010322
@Rerito Google "Rule of Zero".
 
@ThePhD Is it an innuendo to get me to the Robot's website?
 
user3010322
@LightnessRacesinOrbit I don't get it.
 
@Rerito "innuendo"?
 
user3010322
2:25 PM
@LightnessRacesinOrbit You're right, let me clarify: many don't demand I link my bank account and make paying for something so dreadfully hard while even after managing to pay for it send me e-mail after e-mail about asking for more information from me, even after the payment has gone through.
 
I remember the expression "rule of 0": I read it on R.'s website so I was guessing @ThePhD was directing me there that's all. Indeed it's what I was looking for
 
Don't take that as "smart pointer advice" :S
 
@ThePhD I believe you are confusing payment processors with merchants (who themselves have an account with a payment processor, e.g. VISA to handle the financial element of your transaction)
 
Anyway, on my current work unique_ptr is out of the question
 
2:29 PM
It's entirely reasonable for a payment processor to demand knowing who you are before they conduct financial business on your behalf
If for no other reason than attempting to prevent fraud, but there are plenty of other reasons too
 
watchmojo.com's top 10 playlists became something to reference in a wikipedia article
 
There's some hierarchy dependency
A Node owns its children in the sense that if it has to be deleted, so have its children
Bah that's gonna give me a headache
 
@Rerito But you said that a node is never deleted with children left.
 
Actually it might when I'll add a particular feature
 
You're in luck. I've just found some time and there weren't many questions. So, I just improved your question, exactly like you could have done (in which case you'd have had the answer hours earlier and fewer downvotes) — sehe 7 secs ago
 
2:32 PM
commentz on my paste plz
 
An internal Node has to be deleted if it has only one child (making the state it represents implicit instead of explicit)
The construction of the tree leads to internal Nodes that will never have less than 2 children
 
@Jefffrey Yeah, WatchMojo just does bullshity clickbaity top 10s.
 
But if some work leads to leaf deletion, it might also leads to internal nodes having only one child left and some clean up must be made
 
Incidentally, good morning, sentient beings.
 
@EtiennedeMartel yes, but they are also of good video/audio quality (speaker, honourable mentions, explanations)
not something I would reference anywhere, though
 
2:37 PM
@EtiennedeMartel It's afternoon here, and I'm not feeling partiularly sentient:(
 
Ugh, are Google's designers also desperately trying to look useful?
Why does every other Android version flip colorscheme between dark and light?
 
@MartinJames Yeah me too, this whole smart pointer discussion made me feel the opposite of smart. Guess I'm well around the dumb ones!
 
@Jefffrey so I ate my lunch and came to a conclusion that DrawFn will change its signature to userState -> [DrawRequest] and HateDraw is going away
 
2:41 PM
@EtiennedeMartel Well, I do feel that my head is laminated.
 
@MartinJames Drink some water, go to sleep.
Works every time.
(Unless your head is really getting laminated)
 
Or a tea
Beverage of champions
 
hmm Mesh is gone too
 
huh... turns out a class I thought was a thing doesn't exist...
 
and Instance
 
2:45 PM
@EtiennedeMartel lol, "now we waste time explaining UGT"
 
@thecoshman There's always someone who doesn't know about it.
 
@EtiennedeMartel That's right, I didn't
 
@EtiennedeMartel I just forget about it
it's more fun to tell people they are wrong
 
@BartekBanachewicz What's DrawRequest?
 
@Jefffrey a low-level "textual" description of: vertices, transformation and pipeline
so a list of vertices, a matrix with the transformation on them and stuff like "textured with x"
a list of texcoords optionally
Mesh is changing its name to VertexStream
stuff like color or position manipulate appropriate parts of DrawRequest
it's initially constructed by one of the few ... -> DrawRequest creators
 
2:54 PM
I don't like Spirit; I don't like Phoenix; I don't like Proto.
 
You like Haskell
I like Spirit. I just don't like the parts where it's murky/intransparent. Things should be better
> Note: itā€™n an accurate comment. Itā€™s still not a useful comment- this function's crapfulness is entirely self-documenting.
lel
 
@sehe I don't see how that's relevant.
 
intransparent.
@R.MartinhoFernandes It means you're mad.
 
@BartekBanachewicz ... not really the same though... maybe in your case it's a better name... but well, a VertexStream is a more concrete thing... low level ready for gl...
@R.MartinhoFernandes what about Dragon?
 
So here's what the hierarchy looks like on my tree
Dashed curvy line is a "suffix link" from a node to another (in an unrelated branch)
 
3:02 PM
@R.MartinhoFernandes Lateral observations are made not for relevance
 
@thecoshman yep
@EtiennedeMartel grr
 
@EtiennedeMartel basically, where you have to see inside the box, because the abstraction leaks, but it's hard to see inside the box because it's not permeable to light (human intuition)
 
@sehe I don't get what I'm to read from it.
 
recommend easy-listening playlist for a headache
 
@sehe So... opaque, then?
 
3:03 PM
@R.MartinhoFernandes Nothing. Do you like it?
@EtiennedeMartel No. That's the other extreme. And it certainly isn't
 
Or is it translucent?
 
You know. It's a library.
 
Dropping unrelated stuff like that is not conducive to a conversation free of misunderstandings.
 
@BartekBanachewicz Dethklok
 
@Jefffrey don't be angry at me I say a lot of heated things when I talk about things / with people I care about
I need your input.
 
3:07 PM
@BartekBanachewicz Pink Floyd, Shine on you crazy diamonds
 
@BartekBanachewicz I am angry. I had to plonk you for an hour earlier too. Just give me 1 day. I have to study anyway.
 
@R.MartinhoFernandes I know. Anyways. Your dropped something way more unrelated, in a sense :)
 
@Jefffrey Do. But come back :(.
 
Les feux de l'amour, Lounge version :p
 
@Rerito I'm just a terrible person.
 
3:11 PM
@BartekBanachewicz Yes, but we tolerate you anyway:)
 
@BartekBanachewicz Just try SOYCD will you?
 
@Jefffrey actually angry?
 
Time to defrost a chicken kiev.
 
who knew you could upset a shoe
 
3:12 PM
@MartinJames Again?
 
@Rerito Yup:) I have other nice food, but Anne is out for the day and I can't be bothered with complex cooking just for me.
 
Yeah I know, I got some pizza remainders for tonight...
(@AlexM. would call me a faggot for not having eaten it all...)
 
Anyway, writing monadic parsers in Haskell has one important difference when compared to using the Spirit EDSL. The EDSL is a thing of its own. It's not defined as workarounds around the language limitations. That's one thing that constantly annoys me about all those three. Using any of them feels like hand-walking: yes, I can do it but it's painful because hands are not meant for that and I'd rather use feet.
 
@R.MartinhoFernandes it's as much a thing on its own like Spirit, it's just that Haskell is a much more flexible language when it comes to eDSLs
 
yay got the witcher 3
 
3:17 PM
@BartekBanachewicz No, it's not.
 
Any hearthstone player here?
 
Filthy casual.
 
@R.MartinhoFernandes Okay, it's not.
@Rerito I've played for a while then stopped.
 
I enjoy playing it while commuting
 
@Rerito I didn't like it very much
 
3:19 PM
guys
50 mins ago, by Lightness Races in Orbit
http://coliru.stacked-crooked.com/a/bb391a4bd855d162
thoughts please
 
I had more fun with yu gi oh lol
 
@AlexM. thought it was just "yu gi oh"
 
@LightnessRacesinOrbit looks like a piece of code that gets executed
 
@BartekBanachewicz It's not built by hijacking a subset of the standard operators and adding some functions to patch up the bits where you cannot overload or otherwise hijack the standard operators. It's its own world, completely. The other things going on in the language don't leak into it, and it doesn't leak out into the other things.
 
3:20 PM
@Rerito diamond. Singular. The song is really about Pink Floyd's former lead singer, Syd Barret.
 
@R.MartinhoFernandes because, hurmhurm, you can add your own operators?
 
@JerryCoffin And I find it deeply relaxing
 
@Rerito I find it quite harmonious as well.
 
Crazy diamond moderators.
6
 
I love the drums slowly "growing" (sorry for the word couldnt find a better one :/) at the beginning
 
3:23 PM
@MartinJames Touché!
 
@Rerito At least if my memory serves (which I'll admit, it often doesn't) that's normally called a "crescendo".
 
Yes that's the word
And in the end Bartek didn't even listen to it. Such a shame
 
the best thing spanish people created aside from soap operas
is that guitar
 
Have you tried turron?
And Serrano ham
 
3:27 PM
no I have not I am too busy enjoying the silent loudness in that video
 
turron de jijona, you should try
 
Yum, jamón.
 
Yeah, and all that Pata Negra meat
Such bliss!
 
I am searching for this classical piece
I am 90% positive that it has spanish or otherwise latino influences
the thing about it is that the composer took it from someone else (?) or from the folklore
and lots of people attribute it to him
rather than the original source
I can't remember any name
nothing
it is not concierto de aranjuez
 
That's really helpful
 
3:31 PM
Struggling with memory usually doesnt lead to something useful... Otherwise he would have found it already ^^
 
user3010322
I know the melody of a song.
 
user3010322
But I don't know it's name.
 
user3010322
I've spent hours pouring through all kinds of soundtracks to find it.
 
user3010322
One day I'm just going to make the music myself and call it "I Can't Remember."
 
Xeo
@ThePhD There are services for locating songs by melody
 
3:33 PM
How do these services work if the melody is still in his head?
 
user3010322
@Xeo What'm I gonna do, hum the song into the microphone?
 
I once struggled to get the title of a song I knew
 
@Rerito I found a list of 200 tracks I used to listen to, it's possible it's in there
here goes
 
3:34 PM
@Rerito Write it in musical notation? Play it on a MIDI instrument?
 
It took a little more than a month to be struck by the light
 
well thanks for the help guys
 
I remembered (at last) a part of the lyrics and was able to find out the song
@LightnessRacesinOrbit Sry not qualified enough to help
 
oh lol
it was easier than I thought
> The score of this aria was adapted from the habanera "El Arreglito", originally composed by the Spanish musician Sebastián Yradier. Bizet thought it to be a folk song; when others told him he had used something that had been written by a composer who had died only ten years earlier, he had to add a note to the vocal score of Carmen, acknowledging its source.
Habanera, the popular name for "L'amour est un oiseau rebelle" ("Love is a rebellious bird"), is one of the most famous arias from Georges Bizet's 1875 opera Carmen. It is the entrance aria of the title character, a mezzo-soprano role, in scene 5 of the first act. The vocal range covers D4 to Fā™Æ5 with a tessitura from D4 to D5. The score of this aria was adapted from the habanera "El Arreglito", originally composed by the Spanish musician Sebastián Yradier. Bizet thought it to be a folk song; when others told him he had used something that had been written by a composer who had died only ten years...
 
And when you spoke about spanish inspiration I thought of Carmen immediately
 
user3010322
3:38 PM
@JerryCoffin This actually sounds kinda interesting, even if the album art is creepy.
 
Xeo
Found @CatPlusPlus's new home: http://en.wikipedia.org/wiki/Butte,_Montana
lol
 
I need to decide whether or not to renew lightnesspyramid.*
 
@LightnessRacesinOrbit what's the purpose of collapse_delimiters?
ah, empty tokens I guess
 
@ThePhD Sad to listen to early Moody Blues work, and hear how creative they could be, then listen to the pop fluff they descended to in the '80s. Gotta love the '80s video though. :-)
 
it would be interesting if we could bring back dead artists to show them how popular their works became
more exactly those that were unknown while alive
like HP Lovecraft
 
3:50 PM
> An event is starting in 14 minutes in Java - "Lore of the TDD methodology with fge"
 
@LightnessRacesinOrbit If I understand it correctly, it seems to me it should be if (collapse_delimiters && ... instead of if (!collapse_delimiters &&
 
to kill Lovecraft again we could just show him the Japanese take on his work
 
but I'm somewhat slow today
 
@AndyProwl nah collapse_delimiters makes empty tokens go away
I could have abstracted it out of that testcase tbh but my intent was to keep it as close to my real code as possible since it's a tiny function
I could also have included the declaration, which includes a nice documenting usage comment
 
What is the desired behavior for that test case? Do you want the trailing empty token to be there when collapse_delimiters is false, and to not be there when it is true?
if that's the case, I guess you could just remove the if (...) push_back(...) stuff altogether
 
3:56 PM
@LightnessRacesinOrbit Simple application of Demorgan's theorem. Right now you have if (!A || !B) .... That can be turned into if (!(A && B)) and give the same result.
 
@AlexM. what's the instrumentation (with or without vocals? without or without horns/trumpet?with or without piano? guitar?)
 
already found it
 
@AlexM. oh that. So it was without most things, but with a female vocal solo :/
 
@AndyProwl basically
@AndyProwl huh
@AndyProwl I just added that. That's what I'm asking about
@AndyProwl without it the function is buggy!
 
@sehe the original, I meant
see the video
 
4:03 PM
getline already doesn't give me a trailing "empty" token, so I have to add it myself (unless collapse_delimiters is true)
forget about collapse_delimiters though I just want to know whether my if and push back seem sound enough in the general case and that I'm not forgetting something
 
@LightnessRacesinOrbit Ah, I probably missed the bug. Given the testcase you provided and another testcase I tried, the correct behavior is obtained by removing the if ... push_back stuff.
Maybe I reasoned too superficially
 
@AndyProwl what would you say the correct behaviour is?
I mean, the paste I linked to clearly shows that the expected output is displayed with the code as it is
so I iz confused
 
@AlexM. I put that on my pizza instead of ketchup.
 
@LightnessRacesinOrbit Hmm, let me see if I understood. Without the if ... push_back() thingie, case 5 and case 6 are not handled correctly. With the if ... push_back() thingie, case 2 and case 6 are not handled correctly. Does this analysis make sense?
 
4:18 PM
@AndyProwl mmm no. From the first paste, case 1 and 5 are not handled correctly. In the second paste, everything's handled correctly. Why do you think they're not?
 
@LightnessRacesinOrbit I would say collapse_delimiter should make :: (or :::, ::::, and so on) equivalent to :, so str:: should be tokenized as ["str", ""]. Currently, it makes :: equivalent to ''.
 
@AndyProwl nooo
 
Perhaps you intended to use RankNTypes
let's roll GHC
 
@AndyProwl I guess it's badly named
It's more like eliminate_empty_tokens
 
Ah
I see
 
Then in that case I think your version is correct
 
str:: is either ["str"] (with true) or ["str", "", ""] (with false)
 
Yeah I got it finally
Seems OK to me
 
thanks for the review ;p
 
No prob
 
4:22 PM
i'm going to change the name of that parameter too
 
Right, eliminate_empty_tokens sounds better
 
you can now access the true internet in north career arstechnica.com/business/2015/02/…
> In October 2014, Choi reported in a Korean-language essay that buying a North Korean SIM costs $200 with a $22 monthly feeā€”that includes just 50MB of mobile data, with overage fees at $0.28 per megabyte.
it's for visitors only
 
@AndyProwl skip_empty :)
 
Yep
 
user1804599
Hexagons are like circles.
5
 
4:30 PM
@рŠ°Š¹Ń‚Ń„Š¾Š»Š“ ...except they're better!
 
user1804599
Cans should be hexagon-shaped.
 
@рŠ°Š¹Ń‚Ń„Š¾Š»Š“ Opening an hexagonal can with a conventional can-opener may be a problem. Also, strain concentrations at the corners would crack the tin off the steel. Apart from that, it's a great idea.
 
> In capitalism, man exploits man. In communism, it's exactly the opposite.
15
lol
in response to
> "North Korean SIM costs $200 with a $22 monthly feeā€”that includes just 50MB of mobile data, with overage fees at $0.28 per megabyte."

For a communist country they seem to have worked out quickly how capitalism works and the advantages of monopolies.
 
@AlexM. Woman exploits woman?
 
sexism is not a thing in North Career yet
give them time
 
4:36 PM
@AlexM. It's nice to have at least one thing going for you.
 
sampleDraw :: DrawFn SampleState
sampleDraw p = [translate (Vec2 50 50) $ circle (fromIntegral p)]
almost works
 
How fucking long does it take to compile Clang
 
clong enough
ba dum tschh
 
@AlexM. That was so bad it gave me cancer
 
fyi, you're not on my conscience
 
4:42 PM
@AlexM. It's okay, I blame the pun, not you
 
Oh my gosh.
Vcl's UnicodeString can be implicitly converted from int.
 
@Columbo ...or by the Chinese zodiac, it gives you Pig.
 
mmm, pork
 
@caps Hm. lolwut
 
So if you call FunctionThatExpectsUnicodeString(0) it says "no problem!" and passes in "0"
 
4:47 PM
0 is special.
@caps Wait, "0", not ""?
Ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww.
 
@caps Brilliant!
 
Ugggggggggggggggggggggggggggh.
 
@R.MartinhoFernandes Yup! So if you passed in 42 you'd get "42"
 
Father, forgive them, for they don't know what they're doing.
 
@R.MartinhoFernandes Sure they do. They're competing with the popular languages like PHP and JavaScript.
 
4:49 PM
didn't C# do something like that in some cases
like concatenating an int to a string, was the same thing as "that string" + thatint.ToString()
 
I shouldn't be evaluating what the best way to quote Luke 23:34 is.
@AlexM. Many languages do that. It's relatively safe because the likelihood of doing it by accident is very very low.
 
int a = 32;
"aaa = " + a; // => "aaa = 32"
I used to always ToString but then MonoDevelop told me it's useless so I stopped doing it :A
 
"aaa = " - a; doesn't work, though.
 
@R.MartinhoFernandes ..but shouldn't "32" + 7 give "39"? :-|
 
And "2" + "1" isn't "3".
 
4:51 PM
hmm extend and trim are cool
@R.MartinhoFernandes can I safely trim last rowcol from 3D ortho mat4 to get 2D mat3?
 
Oh wait, it's a question.
Sorry, misread.
@BartekBanachewicz If you mean to get a matrix for transforming 2D coordinates, then yes.
 
just sanity checking. thanks.
ouch I think not
or wait
update shaders
 
@JerryCoffin I don't see how Delphi can in any way be said to be actually competing with PHP or JavaScript
 
Shader info log for 'VertexShader':
0(9) : error C1101: ambiguous overloaded function reference "mul(mat3, vec4)"
daaaahah
 
@caps Read my post out loud, and then you'll know it can be said (whereas now you only know it can be stated in writing). But since it apparently wasn't obvious, I'll state it explicitly: I really wasn't serious.
 
4:58 PM
@JerryCoffin At this point I just like to bash the VCL at every opportunity.
 
@caps /bin/bash the-vcl
 
@caps Sounds like beating a dead horse.
 
shit
something broke
 
@JerryCoffin It's a horse I have to ride every day, though.
 

« first day (1580 days earlier)      last day (3371 days later) »