« first day (1086 days earlier)      last day (3866 days later) » 

Xeo
4:07 PM
@FredOverflow Guess I'm listening to that now. Screw you.
 
@Xeo Me too
 
What's wrong with listening to STL? :)
 
Ell
I'm listening to the ask us
 
user1804599
4:27 PM
Man.
 
user1804599
If you order a small portion of fries in this snackbar, they give you enough to feed Africa for two years.
 
Ell
@not-rightfold you write parsers, right?
 
user1804599
No.
 
user1804599
Bison writes them for me.
 
Ell
Oh.
Well you might know anyway
I'm writing a recursive descent parser for .swf files (trying anway)
 
user1804599
4:32 PM
Make sure it's decent.
 
Ell
and there are some magic variables. Where should I have them?
At the minute I have a SwfParser which has parse_rectangle, parse_uint32 etc.
 
user1804599
I have no idea what you mean.
 
user1804599
It's the worst question ever.
 
Ell
okay, never mind
Basically my question is
should I have my parse methods in a SwfParser or should each data type have a constructor which takes a stream iterator and parse inside the constructor?
 
user1804599
That's an implementation detail.
 
user1804599
4:34 PM
I don't know.
 
user1804599
Follow SRP.
 
Ell
Hi
 
@Xeo I'm having second thoughts about 'guarding' futures.
 
Xeo
mh?
 
4:37 PM
yesterday, by Luc Danton
I'm lacking an operation to prevent resources from escaping the current context/scope (which is not what a future destructor should be in charge of) I think.
My main concern is that when I started thinking about it, I was thinking it would make sense to combine several guards into one. Then I wanted to return them from functions -- at this point they would end up very much future-like.
Now this line of reasoning has given some crazy ideas but I don't think I'll investigate this first. I have many more things I want to try before that.
What should I call the opposite of a type-erasing type?
 
@Ell That's a categorisation problem.. do you categorise your code by data type, or by "parsing" vs "other stuff"
I would categorise first by data type.. because data type is something that you're very likely to extend in future by adding new types. In that case, you want to be able to add all the code for the new type in one place.
but if the code for each data type gets big enough to need further subdivision, categorise the code for each data type into 'parsing' vs 'other'
considering that, adding a constructor to the data type that does the parsing means you're reducing your freedom to reorganise things later
 
user1804599
I want to clean a cistern of chicken shit.
 
I would try SwfParser<DataType> .. with explicit specialisations for each data type
 
Xeo
@LucDanton type-preserving?
 
Ell
@willj Why do you think that is reducing freedom?
 
4:53 PM
@Xeo So far I have thought up of 'transparent', as type-erasure is sort of an opaque datatype thingy. Your idea is good though.
 
@Ell Parsing inside the constructor couples the data type code to the parsing code. That puts constraints on how the code can be organised - the parsing code for a given data type then always has to live inside the code for that data type.
but you might not be bothered by that constraint
I like leaving room to refactor
 
Ell
5:11 PM
@willj but how will the parsing code ever be decoupled from the data type?
It's impossible to have generic parsing code
 
@Ell My goal is to decouple data type from parsing, not parsing from data type. A one way dependency is better than a circular dependency.
parsing->datatype vs parsing<->datatype
 
Ell
Which situation has the double dependency?
 
user1804599
The ctor one.
 
user1804599
Data depends on parser, parser depends on data.
 
user1804599
40 mins ago, by not-rightfold
Follow SRP.
 
Ell
5:17 PM
Ohhhhhhhh
single responsibility principal
 
user1804599
It is your responsibility to follow SRP.
 
@not-rightfold "It is your single responsibility to follow SRP." FTFY :P
 
Ell
well the SwfParser parses everything inside a swf :3
surely that means it has lots of responsibilities o.O
 
user1804599
@Borgleader Noo!
 
I feel the need to retag this c++, c#, vb.net, java and php
 
user1804599
5:19 PM
It's also your responsibility to follow DRY and your master, rightfold.
 
Ell
who is rightfold? o.O
Ohhh I remember him
 
user1804599
It's me.
 
user1804599
You fool.
 
Ell
@not-rightfold I was kidding :P
 
user1804599
I was not.
 
user1804599
5:23 PM
> Thinking of the starving children throughout the world, you decide not to be wasteful but instead consume all 24 donuts.
 
user1804599
lol
 
Xeo
lol
 
user1804599
I last fapped to some girl's stomach sounds
 
user1804599
The Internet is full of gems.
 
Ell
indeed it is
 
user1804599
 
user1804599
worst song ever
 
I think the consensus is that Eye of the tiger is the worst song ever.
 
user1174868
Can anyone hlep me with my code?
4
 
user1174868
I am getting errors and I don't know why
 
user1804599
@ripDaddy69 No.
 
user1804599
5:47 PM
Get out.
 
user1174868
@not-rightfold No thanks
 
user1804599
I find the lack of @DeadMG in this room disturbing.
 
user1174868
If you didnt keep getting my question banned I wouldn't have to come back
 
user1174868
seems like you guys really enjoy my company
 
user1174868
Then help me with my question please
 
user1174868
5:54 PM
I don't have time to chat, just homework
 
user1804599
> I don't have time to chat.
> Is in a chat room.
 
user1804599
If you don't want to chat, get out.
 
so we are talking about the weather now ?
 
user1804599
He needs Stack Exchange-wide permaban.
 
user1804599
He is tenacious. No amount of you can get him out of here.
 
6:01 PM
@ScottW I wanted to talk to you about setting up a startup and getting funding.
Since you have your own company and all, thats what I wanted to ask.
 
user1804599
> U heeft daarom (bij gevolg) bij akkoord gaan, toestemming een ronde som (bedrag ineen) van 985.950, 00€ (NEGEN HONDERD, VIJF EN TACHTIG DUIZEND NEGEN HONDERD EN VIJFTIG EURO ENKEL) aan geld. Dit is van een totaale geld prijs van €18,671,410.00EURO verveeld over de Internationale winnaars in deze categorie). GEFELICTEERD!!!
 
user1804599
lol @ spam
 
I don't even need to use google translate this time to know its spam :P
 
user1804599
Apparently I won a million euros.
 
user1804599
And a lot of spelling mistakes.
 
user1804599
6:05 PM
And grammatical errors.
 
user1804599
Funny thing is that I don't receive any of this crap in my Gmail.
 
Xeo
Does that daddy-boy never learn?
 
evening all
I just discovered this hilarious piece in the libstdc++ manual:
Historically, the libstdc++ assignment form added the following question:

“ Which Belgian comic book character is better, Tintin or Asterix, and why? ”

While not strictly necessary, humoring the maintainers and answering this question would be appreciated.
 
6:24 PM
@TemplateRex Asterix, obviously - it had fatter characters.
 
@TemplateRex Tintin, of course.
I don't think I need to explain why.
 
@EtiennedeMartel I know, even if I would disagree otherwise :-)
 
@ScottW Thanks man, I appreciate it.
 
@MartinJames they speak French in Belgium, but that doesn't make France Belgian :-)
 
@TemplateRex I assumed Asterix was published in Belgium as well, or is this some kind of trick question?
 
6:30 PM
@MartinJames the authors are French, but according to Wikipedia, it was first published in a French/Belgian magazine
 
@TemplateRex I like the fat one who fell into a cauldron of magic potion as a child - reminds me of the gravitationally-challenged parking enforcement officer downtown.
 
@Xeo another gem from the libstdc++ manual about "Extremely weird solutions." : This would be the approach of either a visionary genius or a raving lunatic, depending on your programming and management style. Probably the latter.
sounds like what happens at the Asylum (more raving lunatics than visionaries)
 
@Xeo I thought he was becoming a regular here
what happened?
 
Xeo
Wat
By what definition of "regular"? Surely not as "somebody we like regularly coming here"
 
he was here for a while chatting, like a couple of times I logged in and found him talking here
 
user1804599
6:42 PM
s/talking/whining about being question-banned/
 
ah
 
Anybody else get spammed with Wartune ads?
 
7:00 PM
@A.H. never seen him before
 
user1804599
@StackedCrooked Flemish television is good.
 
It is?
I haven't seen much television in the last few years so I don't know.
 
user1804599
Dagelijkse Kost is funny.
 
I'll have to ask my mom, she probably watches that.
 
user1804599
Do Flemish people think Dutch accent is funny?
 
user1804599
7:01 PM
We think Flemish accent is funny. :P
 
I think the Spanish accent is hilarious.
 
user1804599
But they don't speak Dutch in Spain.
 
@not-rightfold yeah
 
user1804599
lol
 
user1804599
Traveling by train is funny.
 
7:03 PM
No, there are actually two accents for Spanish, there's the Mexican one, where they pronounce s and c as s. But the other accent pronounces s as th.
 
user1804599
In a Belgian train, people talk to each other. In a Dutch train everybody is quiet and addicted to their phones.
 
@not-rightfold It's fun.
 
So, the two accents sound like completely different languages :P
 
@not-rightfold I guess I'm more like a Dutchman then.
 
user1804599
The only Flemish-specific words I know are “bankcontact” and “schuifaf.” :P
 
user1804599
7:05 PM
And I know that Flemish people pronounce “energie” and “gangster” very funnily.
 
@not-rightfold bankcontact is important! (i have no idea what schuifaf is though)
 
user1804599
@StackedCrooked Een schuifaf is een glijbaan.
 
user1804599
Bankcontact is pinautomaat, right?
 
we always call it glijbaan..
@not-rightfold yep
 
user1804599
It makes no sense.
 
user1804599
7:07 PM
Bankcontact would be more like, an object that allows you to contact a bank. :V
 
@sehe Cheers, thanks to an old answer of yours I significantly overhauled my foo -> std::forward<Foo>(foo) mapping :)
 
user1804599
Allee zenne kom we goaan van den schuifaf.
 
@not-rightfold lol
that's brabants
 
this rip daddy guys goes over to every room
and says "I've posted a lot of questions"
and "I need help, can I ask a question?"
 
user1804599
@StackedCrooked Belgian Brabant?
 
7:09 PM
yep
 
user1804599
There’s also a Brabant in NL. I live there.
 
user1804599
Best place on earth.
 
hokay. Does anyone know if it's possible to get an IA32 assembly language simulator on a x86 intel processor?
 
Look at you two dutch bastards :P
 
user1804599
Ugh IA-32.
 
7:10 PM
@Crowz like run it ? or just target while assembling?
 
@A.H. really I just want something physical to see what's going on in the registers for a 32 bit processor with IA32 architecture
 
user1804599
@StackedCrooked What do you think of Wallonia? Would you like it to be an independent country?
 
@Crowz try jasmin
 
user1804599
livejasmin
 
7:13 PM
@not-rightfold I don't have a strong opinion on that. Flanders would be financially better off if we split the country, but Wallonia would end up as one of the poorest countries in the EU.
 
@not-rightfold made the mistake of searching for that
 
user1804599
@StackedCrooked :P
 
@A.H. can you type assembly language commands into it to see what it does? ie, if I typed movl $40, %eax or something
 
evening lesser beings
 
user1804599
Make Wallonia part of France and Flanders part of the Netherlands.
 
7:14 PM
@Crowz I believe so
@DeadMG Hello
 
@not-rightfold I don't mind that.
 
user1804599
Me neither.
 
user1804599
More people who vote for my favourite political party!
 
Xeo
@DeadMG Your sickness and ego seem to be in a linear relationship. :P
 
He's been sick for a long time then.
 
7:16 PM
try "tiredness".
 
user1804599
I should make a caricature.
 
@not-rightfold is it possible to have a favorite?
 
user1804599
Lijst rightfold.
 
user1804599
@Crowz Write a JIT-compiler.
 
user1804599
Or an interpreter.
 
7:26 PM
@LucDanton Ah!
> the lazy cow mooned over the racy hump
 
Although I have to admit that when I anchor between \%Vs the last character ends up being chomped :(
 
@GamesBrainiac Zwijg
@LucDanton I hate this facility. It's just nice to know. But I use it only in emergencies. Usually \zs,\ze and virtualedit with block mode gets me to my goals
 
@DeadMG evening higher being
 
Oooh. Did someone manage?
To hlep?
 
Someone managed to hlep? Good lord.
 
7:30 PM
How do you feel about substitute() for just the one word then?
 
@LucDanton Well, it makes sense. The point being that, for non-trivial operations, vim-script often is more appropriate (even though it is a mind-fuck in and of itself)
 
Tbh I switched to using a command because in a question about vimscript you answered with those :p
 
Who the hell is this rip Daddy fellow and why does he want me to check his code
I can't even check my own code
 
@MohammadAliBaydoun I think he got Q banned not long ago, and possibly chat banned too, @not-rightfold can confirm/infirm
 
user1804599
I once told him he should kill himself and since then he suspects me from downvoting his questions so he got question-banned.
 
user1804599
7:35 PM
In fact, I have never downvoted any of his posts.
 
Hmm. Actually, I recall having a very, very long conversation with him about how memory works and the purpose of malloc and free. He was quite thick. :V
And I was thicker for actually doing it.
 
I see ripdaddy has come back.
Le me check my reputation again.
 
@LucDanton Hehe. I like Ex commands. However, for non-trivial tasks... nothing is trivial
 
@Jefffrey started openGL?
 
user1804599
Is it possible to script Vim with Perl or Z shell?
 
7:40 PM
@Pawnguy7 Yes. I see you are committing like there's no tomorrow :)
 
@Jefffrey sarcasm?
 
Nope. Compared to the first days of Github for you, you are updating your code frequently.
 
The random landscape screensaver?
 
@sehe Hello Mr.bear, how are you today? :)
 
@Pawnguy7 The snake game.
 
7:45 PM
@Jefffrey I mean, you said "the first days of Github for you"
 
@Pawnguy7 I meant when I "forced" you into making the death_by_dots repo.
 
I had more than an initial commit?
 
user1804599
Hmm.
 
Aaaand back to vimscript.
 
user1804599
I know compilers reorder instructions for efficiency, but do CPUs also do this automatically?
 
user1804599
7:47 PM
Within one thread, of course.
 
@Pawnguy7 Nope. That's the point. You rarely committed to it. Now you have already 12 commits. I was just saying :)
 
Oh.
Feels slow to me.
But the input elements feel wrong.
 
Is there something like <cword> but for the word just before? I'm always confused for the insert mode mapping as the cursor happens to be right after the word of interest.
 
@Borgleader I'm fine, thank you
 
7:49 PM
 
@LucDanton What for? I mean, there might be something (like ^P) for buffer-completion
@DeadMG this is so... I don't know whether it's "interesting" that it shows a diagnostic, or it's just more reason to think "this 12-headed monster is going to be worse than untellisense is now"
 
@sehe Given bar foo| baz in insert mode (where | is the cursor), I want to replace that foo by std::forward<Foo>(foo). In normal mode the cursor is on foo proper.
 
@sehe Considering that it's the first pass ever.
also, what's wrong with that diagnostic? I mean, I could word it a little differently
 
"Clang could not find the specified header" is pretty damn self-explanatory imo =/
 
well, there's not really an awful lot more to be said.
I mean, I could list the header search paths or something, but that's really getting a bit ott
 
7:55 PM
@DeadMG I was seriously considering the diagnostic might have been in error/an accidental feature
 
user1804599
I don't quite understand std::memory_order_seq_cst.
 
@sehe Nope.
although, to be entirely fair, there is currently no way to set the header search paths for intellisense
but you can bet that I really did ask Clang to find that header
 
If you really, really wanted you could possibly have an "Press Fxx for more info" where you list the possible causes/solutions for this but... really that's polish
 
anyways
the "can't find header" thing is really just the sample diagnostic I picked to make sure that the diagnostic mechanism is working.
 
@LucDanton (disclaimer: this is baaad stuff:) inoremap <F2> )<Left><C-o>ybstd::forward<<C-r>">(<C-o>F<<C-o>~<C-o>~<C-o>F)
 
Xeo
8:01 PM
@DeadMG Why mention Clang at all?
 
@Xeo Because that's the truth.
more importantly
if someone comes back and goes, "How does Wide find it's headers?" then I don't have to answer the question.
I can just say, "Go look at Clang, it's their fault/process/documentation".
in essence it's a dodge for when something goes wrong.
 
@sehe lol
 
Needs to be f) at the end, too
 
I used to have that sort of nonsense before but edge conditions were annoying to get right, e.g. single-letter f -> std::forward<F>(f). Because why avoid single-letter variables if I can vimscript my way out of this?
 
> "baaad stuff"
@LucDanton Hey! My mapping does work with single letter f :) (I'm very surprised)
> std::forward<F>(f) bar
 
8:06 PM
@Xeo I love Pani and Gil! (Ok, Gil not so much.)
 
@sehe Well done!
 
Xeo
@StackedCrooked Gil is just the slapstick character
 
@LucDanton I'll get myself a cookie
 
Pani has a sweet voice.
 
user1804599
if (s.is_open())
    ; // compiler complained unless this was on its own line
{
    …
}
5
 
user1804599
8:09 PM
Epic fail.
 
You said you did that with GML, didn't you?
 
user1804599
Uh no.
 
user1804599
I did if (…) { } else { … } because I didn’t know about the ! operator.
 
Oh, I read an else where there wasn't one.
 
@not-rightfold where from
 
user1804599
 
@sehe Oh, I think I'm getting the clever bits. I think I'll stick to the vimscript, but I'll remember the trick of adding a character, <Left>, then motion to b to avoid edge conditions.
 
@Pawnguy7 does it work?
 
@Jefffrey I think so, yes. The sliding part anyway.
My main concern is if one part of it works, and one part does not.
I have a ctor that takes just a Resource, and one that takes everything (say, percent to start at).
Should be the same, but not sure.
Next up, I am thinking of making one of these:
 
@LucDanton Lol. I wasn't aware of being clever there. It's just "experience" tells me to stay at the precise anchor location as long as possible (or just use a mark)
 
user1804599
8:18 PM
I recall me invoking UB when I was learning C++ about eight years ago.
 
Ye!
 
user1804599
I did an equivalent of union t { int a; float b; }; t x; x.a = 42; cout << x.b << endl;. :D
 
@not-rightfold lol
 
@Pawnguy7 Good.
Gotta go, see ya all in two hours.
 
@not-rightfold since then, the nasal demons have never been far from your side
 
8:21 PM
See you.
 
user1804599
I last worked on Kreeft at 14:40 yesterday. :|
 
user1804599
Oh well. Lexer almost done. :D
 
user1804599
Only need to add literals, operators and punctuation.
 
lol
 
user1804599
And I should remove __COUNTER__ since it’s useless.
 
user1804599
8:25 PM
Hmm, maybe it’s not.
 
user1804599
For enums. :P
 
what is binary_function used for?
 
@Pawnguy7 functions taking two parameters
 
Ah. That makes more sense.
 
Xeo
deprecated
 
user1804599
8:34 PM
[[deprecated]] is deprecated.
 
Ell
Really?
 
No
 
user1804599
thanks brother for your reply — shujat7 40 secs ago
 
user1804599
I hate it when people call me brother.
 
user1804599
Also OP’s code is terrible.
 
8:39 PM
this->name = name;
this->nationality = nationality;
ugh...
 
what?
 
initialization list? (this code is in/from the constructor)
 
ic
 
user1804599
Who cares. It’s char*s.
 
user1804599
There’s a lot worse things in his code.
 
8:40 PM
@not-rightfold That make's it worse
(I didn't read all of it)
 
user1804599
int size2 = sizeof(obj.nationality);
nationality = new char[size2 + 1];
strcpy(nationality, obj.nationality);
 
user1804599
Epic fail.
 
user1804599
sizeof isn’t std::strlen. XD
 
I've started playing Discworld MUD again. Woe is my productivity
 
user1804599
Also lol delete[] on a char* which was assigned from a string literal.
 
user1804599
8:43 PM
This code is so hilariously bad.
 
user1804599
UB everywhere!
 
it wasn't about it being online. It's about it being needlessly convoluted. Why do you still have a destructor? Why is there a default constructor? Why don't you use initializer lists? Why is there this-> in your code? Why is the indentation completely broken? — sehe 20 secs ago
@not-rightfold But, at least he didn't put the semicolon on it's own line, because the compiler was complaining
 
user1804599
@sehe epic terminology fail.
 
Is it just me, or is Chrome getting worse and worse?
 
user1804599
It’s just Chrome.
 
8:51 PM
Zing
 
user1804599
Ik kan niet mooi zingen dus nee.
 
user1804599
#gebiedendewijs
 
@not-rightfold Who cares. I don't need to hear it
 

« first day (1086 days earlier)      last day (3866 days later) »