« first day (1110 days earlier)      last day (3840 days later) » 

3:05 PM
@Pawnguy7 that you fucked up somehow
 
Ell
?
 
Chat was down for a while.
 
@Ell His tests failed.
 
3:07 PM
Room Owner Wars ITT
 
BELGIUM SHALL PREVAIL
 
@BartekBanachewicz Fair enough. I rebuilt it from git, as you suggested, which fixed it breaking when it loaded the font.
The other problem was some undefined behavior that was my fault.
 
@Pawnguy7 hurr durr
 
As I wasn't sure how variadic arguments could be passed.
 
@R.MartinhoFernandes Oh aha. I only noticed it once chat went down. I don't usually care much for the main site.
Yes, I occasionally find useful answers there, but I totally don't get the mass hysteria that happens on twitter where it is apparently "bon mot" to publicly proclaim how unable to work you are without SO. That has me completely stymied.
 
3:09 PM
that's why I said I need concrete stuff to work with
 
As in all my code, or?
 
@BartekBanachewicz You are seeking building work?
 
@CatPlusPlus rofl - you're really funny when you're serious
 
@MartinJames actually i want to be a barista
 
And I wanna get stoned
(move to Iran)
 
Ell
3:12 PM
Okay. Ima have to use boost::any instead of variant because I have 154 types :/ It really just seems like it's a bad design
But I don't know how else :O
 
@sehe IIRC, you have to commit adultery as well.
 
wut
You have wut
wut
 
Ell
@R.MartinhoFernandes they are all different tag types, I'm parsing swf files
 
@sehe hm?
 
@Ell And then what? Have 154 ifs?
 
Ell
3:14 PM
@R.MartinhoFernandes well a variant with 154 types won't compile :P
 
@Ell why would you have 154 types
 
Ell
and I haven't thought that far ahead yet xD At the minute I just want to store them all
 
@Ell oh god
 
@Ell would some clustering be possible? have e.g. 14 wrapped into one variant, and 11 of those variants wrapped into another? :)
 
also are you using a parser library please answer yes
 
Ell
3:15 PM
@BartekBanachewicz Nope :P
 
@Ell oh my fucking stop right now
 
@ArneMertz Nononono, just get rid of the 154 types? :'(
 
Ell
I'm writing my own recursive descent one
 
you're writing your own crappy what..
 
@R.MartinhoFernandes of course. in the long term...
 
Ell
3:16 PM
@R.MartinhoFernandes I don't know how to get rid of them :S
 
@ArneMertz It will be a very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong term if he doesn't get rid of them.
 
@Ell I'd start by using Boost.Spirit
 
(Yes, there are 154 'o's in there)
 
@R.MartinhoFernandes you're a huge nerd
 
Ell
@BartekBanachewicz That will help get rid of the types?
 
user784668
3:17 PM
@BartekBanachewicz No, he's a vim user.
 
@Fanael well, 11*14 'o's is not that hard on any editor with copy & paste ;)
 
(Ooops, actually mistyped and made it 144)
 
@Ell dunno, but it will certainly help getting the job done
 
@ArneMertz 154io<Esc> is easier :P
 
Ell
@BartekBanachewicz I'm not sure it will help all that much
To start with I've already written the building blocks
 
3:18 PM
@Ell You're not sure if using a parsing library will help you in writing a parser.
well.
 
Ell
@BartekBanachewicz @sehe suggested spirit before I started IIRC
but I wanted to write this by hand
 
@Ell he's one reasonable polar bear
 
Ell
call me a masochist (sadist?)
 
Tell me more about those types.
 
@R.MartinhoFernandes Whatever. when I accidentally enter vim I need several minutes just to get out there. Usually involving some google search for "exit vim"
 
3:19 PM
@ArneMertz ZZ
 
@Ell a-not-getting-shit-done-man?
 
user784668
@R.MartinhoFernandes i.e. "why caps lock is pure evil"
 
vOv if you intend to never finish that I guess reinventing everything is an option
 
user784668
@R.MartinhoFernandes zz
 
3:20 PM
I... don't get it.
Oh.
You mean you might accidentally exit.
Meh.
 
Ell
@R.MartinhoFernandes Each tag has various fields, I have one type per tag. For ex. PlaceObject, PlaceObject2, ImportAssets, SetTabIndex, etc. One for each tag type specified in the spec
 
Caps Lock is for wusses.
 
user784668
@R.MartinhoFernandes But it exists.
 
Xeo
It Escs.
 
@Ell do different tags share some fields?
 
Ell
3:22 PM
@ArneMertz No
The only field they all share is a name
But that isn't actually a field in the spec, that's just something I've added to all of them
about half of them have a "tag type" and the other half an "action code" both of which are integral identifiers
 
user784668
I smell misapplied OOP.
 
I don't know what is more impressive. How fast Git is on Linux, or how slow it is on Windows
 
@Ell that'S what I meant by "sharing". Common attributes/fields
 
@jalf latter.
 
user784668
@jalf How big idiots Git developers are.
 
Ell
3:24 PM
@ArneMertz None of them really share common useful attributes :/
 
@Fanael Dunno. It just seems like a huge domain to me.
 
Ell
@Fanael For my case?
 
DoABC, lol
 
@Ell so you have 154 Tags, with distinct (apart from the two you mentioned), nonempty sets of attributes?
 
Ell
@ArneMertz Correct
 
Xeo
3:26 PM
@R.MartinhoFernandes where ABC = ActionscriptByteCode
 
So yesterday I got a letter from my university that congratulated me for getting my degree, and then informed me that an insurance company had great deals for USherbrooke graduates.
 
Xeo
gah, typing
 
@Ell and all the attributes are essential for your application? What are they used for?
 
@ArneMertz To read the things that can be in the file :)
 
3:28 PM
I mean, advertising for a large insurance company definitely falls in within an university's mission statement.
 
@EtiennedeMartel They're helping you find a job!
 
I think I agree with one of my coworkers that Mohn tastes like cemetery soil. (If you wonder how I know what cemetery soil tastes like: it tastes like Mohn.)
 
Ell
@ArneMertz They are all essential because I'm parsing the whole file so I need to parse all of the fields
 
Xeo
@R.MartinhoFernandes Eh
Also, fuck Flash.
 
Ell
3:31 PM
I mean, I can't see any other way than having a struct for each
I'm gonna have to have a big-ass switch somewhere for parsing anyway
 
@Ell well, you normally don't need the classes for parsing - you need it for storing the data your parser collects. If you ignore the tags (except for their syntax), you can do that without having classes for them
 
Xeo
There's this one class killing the app as soon as it's created, and the debugger doesn't even break anywhere. :|
 
'In addition, the company said, the cyber-crooks had managed to abscond with source code for "numerous Adobe products." - I feel profoundly sorry for the crooks..
 
Ell
@ArneMertz I guess that's correct, but I would like to output the document in it's entirety which means storing it somewhere
 
Xeo
What are your operations on those tags?
 
Ell
3:32 PM
@Xeo Just storing data in them
At the minute. I'm not sure if I'll do anything beyond parsing
 
Xeo
I don't mean your classes, I meant the swf tags
 
Ell
Oh
 
@Ell what about storing all possible attributes in one class? Better one class with ~300 attributes than 154 classes with 2 attributes each
 
Ell
Well I just parse the data
 
Xeo
and then?
 
Ell
3:34 PM
Store it somewhere :P
 
Xeo
... and then?
 
Ell
return it from the function
and then that is all
 
Xeo
... WHY ARE YOU EVEN DOING THIS?!
 
Ell
I'm just writing a file parser, nothing more than that yet
 
@Xeo Because he wants to write an SWF parser?
 
3:34 PM
how many different types do the attributes have?
 
Ell
@Xeo It has given me an interesting problem to solve, no? :P
@ArneMertz Hmm. let me just see
 
@Ell just the order of magnitude. not exactly. 5? 20? 100?
 
Ell
@ArneMertz I'd say around the 20 mark
 
Xeo
Also, prototype-based classes might work here struct swf_tag{ tag _tag; std::map<string, variant> _attribs; }; with one prototype for each tag, and then assigning individual values or something.
 
Just use a dynamic language then :S
 
Xeo
3:37 PM
:P
 
C#'s dynamic is perfect for this.
 
Xeo
Use AS3 to parse swf!
Haskell should also work beautifully, I think?
 
You get all the static typing you want, and you don't have to fake dynamic typing with manual string maps all over.
 
Xeo
@R.MartinhoFernandes heh
 
@Ell then what about a tag struct with a container of its attributes. The attributes being a pair of name and value - the value being the ~20-variant
 
Xeo
3:38 PM
@ArneMertz too slow (you, I mean)
 
you'd have one class for the tags
 
@MartinJames Oh, isn't that implicit?
 
@Xeo hm. just noticed...
 
I always get shivers when I get to the dictionaries for attributes part.
 
Ell
@Xeo I guess that could work
 
3:39 PM
@R.MartinhoFernandes lol
 
Ell
but I too get the shivers :P
 
Like "wtf I am just writing JavaScript objects in the hardest possible way".
 
@R.MartinhoFernandes \o/
 
Boost.Python!
 
@BartekBanachewicz vim: il<Esc>154ao<Esc>ang
 
Ell
3:42 PM
Would using boost::any be such a crime? I think it is an easier solution than prototype based :/
 
Does anyone have any experience with creative D80 or D100 speakers?
 
@Ell No doubt I did. Before you told me it was for swf :/ I'd just have told you to stop (nah, really, isn't swf binary-only? Hand roll it)
@Ell Just get rid of the static types. What you need them static types for anyway?
 
@Ell It's still 154 ifs... vOv
 
Ell
@sehe I probably didn't tell you it was for swf back then :)
 
ARAGFSGFSH FUCK TEXT MDE
 
3:46 PM
@Ell really?! If you land me in the middle of that, I would swear I'm looking at an enum. I mean "my types don't share any common attributes" - do you mean, my types don't have attributes at all (besides the type discriminator)?
...
Tags::Actions::SWF5::Increment,
Tags::Actions::SWF5::PushDuplicate,
Tags::Actions::SWF5::Return,
Tags::Actions::SWF5::StackSwap,
Tags::Actions::SWF5::StoreRegister,
Tags::Actions::SWF6::DoInitAction,
Tags::Actions::SWF6::InstanceOf,
Tags::Actions::SWF6::Enumerate2,
Tags::Actions::SWF6::StrictEquals,
Tags::Actions::SWF6::Greater,
Tags::Actions::SWF6::StringGreater,
...
 
Ell
@sehe Well the size of all the structs would be many lines long :P (and muchly unfinished) for example here is one of them
struct PlaceObject2 {
    static const auto tag_type = 26;
    constexpr static const char* description = "PlaceObject2";
    uint16_t depth;
    boost::optional<uint16_t> character_id;
    boost::optional<Matrix> matrix;
    boost::optional<ColourAlphaTransform> colour_transform;
    boost::optional<uint16_t> ratio;
    boost::optional<String> clip_depth;
    boost::optional<uint16_t> name;
    //boost::optional<> clip_actions; //still unfinished
};
 
@Ell traits? Also, that is undoubtedly not for the Opcode items I showed.
 
@Ell with all the optionals I'd even more suggest the tag with attribute-list
 
@Ell So, you could probably have a variant at the top and subtypes for the leave nodes.
 
Ell
@ArneMertz Well, this tag in particular has a lot of optionals but others don't
 
3:50 PM
Honestly, it looks like you're doing a heroic effort. I've no idea what for/why swf contains all this
 
@sehe He has a variant. A 154-sized variant.
 
Ell
@sehe Actually that is a very good point
 
@R.MartinhoFernandes He told us. So I tell him to divide and conquer (hybrid approach). No need to split each opcode out in a concrete static type.
So, have a variant with ~20-30 element types and have each 'element category' define it's subdivision internally
 
@Ell so a good subset of your tags actually does not have different attribute sets or does not have attributes at all?
 
Xeo
@sehe 12 categories, from the variant link
and 2/3 of all those tags are really just functions
 
3:56 PM
@Xeo They're not functions. They're types that represent function calls in the SWF language.
 
Xeo
I meant the swf tags themselves
 
Yeah. It's amazing. This kind of design ... delusion ... is usually what happens when people use Spirit (because of all the /ermagad~~static~~polymorphism/ worship that comes with the territory)
It's a sane thought, but it is extremely burdensome on maintenance and compiler. Runtime polymorphism exists with a reason too
 
user784668
Runtime polymorphism sucks.
 
user784668
Evaluate everything at compilation time.
 
@Fanael why?
 
3:59 PM
@Fanael int main() { return 42; }
@ArneMertz because troll
 
@sehe undefined reference to troll::_vptr
 
-1 not enough name mangling
 
user784668
@sehe -1 ancient linker
 
show me a linker that unmangles names. That would be an anti-feature really
 
@sehe tell you what, there are linkers that unmangle names for messages like that :P
IIRC VS does
 
4:01 PM
Tell you what, that WTF feature must be MSVC
Ha
Called it!
 
user784668
@sehe GNU ld
 
@Fanael mmm. Tempted to try.
 
user784668
>> echo 'class foo { public: int bar(); }; int main() { foo x; return x.bar(); }' | g++ -x c++ -
undefined reference to `foo::bar()'
 
vOv
 
Ell
@ArneMertz I'm just investigating now how many don't have a set of attributes :)
 
4:04 PM
@sehe what would be the benefit of the like not unmangling the names?
 
hello
 
@Ell I guessed that from your silence ;)
 
user784668
@ArneMertz You'd know what's the mangled name of std::map<std::string, std::string>!
 
@Fanael of course not, silly! No one maps strings to strings. Also, it would be std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, ....>
@Fanael function ld() { ld "$@"; local code=$?; (exit $code) || echo "-1 not enough mangling" > /dev/stderr; exit $code; } // Fixed
 
@sehe still missing a "
 
4:08 PM
@caps thx
WTF with chat message ordering sometimes i.imgur.com/1VjumgL.png
 
@sehe lol
 
@sehe ZOOOOOOM!
 
@ArneMertz Don't most linkers do that these days?
 
okay I've bought those D80
 
user784668
@sehe Fake. The fonts are antialiased.
 
4:11 PM
They can't sound worse than builtin laptop shit, can they?
 
When in doubt, throw in -C.
 
Ell
Okay, so it seems about 90 of the tags have no attributes - I had never considered this before
 
@thecoshman Is that the onomatopoeia for "ultra-speed" or an instruction to increase font size by a large amount?
 
For ld it's --demangle/--no-demangle, IIRC, with demangling as default.
 
@R.MartinhoFernandes Well, I thought so, too. @sehe seemed to think different ;)
 
4:12 PM
@Fanael Have a fondness for pixels?
 
user784668
@LucDanton @sehe does
 
@sehe Each user sees things in the order they receive them, i think. i.imgur.com/pDMNHPR.jpg
 
Well, that was waste of over an hour. "Jee best practices" it said, "oh, this will be good as I more or less guessing my way through this" I thought, "This how to do Resource adapters"
 
@Fanael Fake, it's not Courier New DejaVu Sans Mono.
 
user784668
4:13 PM
@sehe ???
 
Ell
@sehe (I'm guessing that was for me?) It looks like it :P
 
@thecoshman No doubt you're talking to someone
 
@Ell well, 65 different classes are much better than 154 ;)
 
Ell
@ArneMertz Indeed :)
 
Xeo
@R.MartinhoFernandes You wanted to stop
 
4:13 PM
Only about 89 better. Hehe
 
@caps I actually know. It's just that the client does the display order
 
@Xeo Can't :S
It's still too funny.
 
Xeo
Your 40€ are laughing too
 
@Fanael stupid chat should stop scrolling when I aim my response
 
@R.MartinhoFernandes 0.422 times better
 
4:14 PM
@sehe Really odd, all the same, since I saw you make numerous edits before I even sent my message.
 
@Ell ^
 
@Fanael I guess he wanted to address @Ell ;)
 
@caps Yeah. SE chat servers still a bit wonky maybe
 
@Xeo he probably earns so much he didn't even notice :|
 
@sehe Go to meta: "Add a key for aiming in chat"
 
4:15 PM
@LucDanton *fontness
 
Take aim.
Fire!
 
hoho
 
user784668
bartek.fire();
 
@R.MartinhoFernandes SE chat extensions have this, but I don't find that part very usable
@Fanael s/rte/c/
 
Ell
@sehe Yeah. I guess I'll start getting rid of all of these structs :L
 
4:16 PM
@BartekBanachewicz WTF, of course I noticed.
 
@Ell At least don't necessarily bind them all into the variant
 
Ell
Right
 
@R.MartinhoFernandes notice -> has to decide between new neuroshima hex addons and food
 
Ell
Am I right in saying a "unary" function is one which takes no arguments?
 
@Ell no, it takes one argument
 
Ell
4:18 PM
Oh yeah of course.
 
@BartekBanachewicz What?
 
@R.MartinhoFernandes nvm
 
Ell
I think "nullary" is the word
 
@Ell exactly
 
@sehe ¬_¬ not a happy camper
 
4:22 PM
@BartekBanachewicz Are you playing a "I'm the only one that can complain about losing money" card?
 
@R.MartinhoFernandes you got me.
I should stop complaining, huh?
That might have to do with my university repetitional payments that took over 50% of my month's salary
 
@BartekBanachewicz nah, but you can let others complain, too :P
 
Anyway I've made first holiday request and it has been approved so yeah
oho lounge died
 
Xeo
Nah, it's just you
 
user784668
@BartekBanachewicz That's your fault.
 
4:34 PM
@Xeo :(
now I'm sad.
 
@BartekBanachewicz we're all shocked by your impertinence requesting holidays
 
Usually when things die, I get the blame.
 
@ArneMertz why was that impertinent?
 
@BartekBanachewicz I mean, holidays? srsly? you should work 52 weeks, 6 days a week. at least
 
user784668
@ArneMertz 8 days a week
 
4:35 PM
@Fanael :D
 
Xeo
Also, fuck optimizing Flash on mobile. I have zero motivation to do this shit :|
 
@ArneMertz My usual line is more like: "What? You want lunch? But you just had lunch yesterday!"
@Xeo Either flash or mobile mostly sucks. The combination..."Oh the humanity!"
 
Ell
I didn't even know people used flash on mobile o.O
 
@Ell hint: they don't
it's a terrible idea that never happened
 
Xeo
If people don't then somebody please wake me up from this nightmare.
Scratch that, even if people do, wake me up.
 
4:43 PM
@JerryCoffin I like that :-)
 
Ell
Okay so I've written the enum with all of the 82 nullary actions
Now I still have 72 structs left to some how deal with
 
@Ell I have an idea...
 
Chrome never dropped H.264. Flash never adopted WebM. There are no WebM-only sites, plenty H.264-only. Even YouTube WebM sucks. WebM is dead
ouch
@_Tomalak as aan English speaker that looks suspiciously like Orkish...
ahaha @MooingDuck
okay enough random tweets
 
Huh. How does this work?!? Anyone (@R.MartinhoFernandes?): [I "get" the second, but not the first]
$ xargs -n1 <<<"L.j I.j .j" | sort
I.j
.j
L.j
$ xargs -n1 <<<"L.a I.a .a" | sort
.a
I.a
L.a
 
Ell
@ArneMertz Go on :)
 
4:54 PM
@sehe wah weirdness
 
@Ell you could make a struct for the non-function tags that has a container holding the attributes, to get rid of the remaining classes...
 
@sehe lol?
Is this a trick question?
 
$ xargs -n2 <<<"a b c d e" echo Received:
Received: a b
Received: c d
Received: e
 

« first day (1110 days earlier)      last day (3840 days later) »