These are chat archives for opal/opal

14th
Aug 2014
Adam Beynon
@adambeynon
Aug 14 2014 11:30
sorry elia, had to leave quickly yesterday
Elia Schito
@elia
Aug 14 2014 11:30
:)
Adam Beynon
@adambeynon
Aug 14 2014 11:30
I'll post the stuff a bit later
was having another thought today though
about require_tree
Elia Schito
@elia
Aug 14 2014 11:30
shoot
Adam Beynon
@adambeynon
Aug 14 2014 11:31
I think its best to keep it sprockets compatible, rather than trying to work with globs
for now, at least
Elia Schito
@elia
Aug 14 2014 11:31
+1
Adam Beynon
@adambeynon
Aug 14 2014 11:31
working on it now, so I can finally remove all the .js files from my rails apps
Elia Schito
@elia
Aug 14 2014 11:31
@adambeynon awesome
I had a though too the other day
about module inclusion and prototype chains
there’s a way to replicate the inclusion mechanism of MRI by just switching prototypes?
I mean let’s say you have a class with proto p1, we can make all its instances inherit from a proxy proto p2 that inherits from p1
Adam Beynon
@adambeynon
Aug 14 2014 11:34
elia, so each class has two prototypes: one for its class methods, and the other to shove all the modules into?
sorry
badly worded
Elia Schito
@elia
Aug 14 2014 11:34
and between p2 and p1 we can fit all modules
yep
because I saw a couple of edge cases in which the “Donate” hacks surfaced as bugs
And that would probably also make easy to implement prepend
Adam Beynon
@adambeynon
Aug 14 2014 11:38
yes, its currently very buggy
but
yes, that seems a good solution
need to get familiar with runtime.js again
been so long since Ive got my head around it :P
Elia Schito
@elia
Aug 14 2014 11:39
lol, I feel less dumb now
I think I really understood the donate stuff for less than 10seconds :P
Artur Ostręga
@aost
Aug 14 2014 15:23
"all method calls for +, -, /, *, <<, <, >, <=, >= are now inlined"
Awesome!
Artur Ostręga
@aost
Aug 14 2014 16:28
I thought I'd have to read the dragon book, fork Opal and implement that myself :suspect:
Elia Schito
@elia
Aug 14 2014 17:18
@skofo if you want something else to do you just have to ask :smile:
e.g. restoring source maps on master is key to the 0.7 release
Artur Ostręga
@aost
Aug 14 2014 18:01
The non-native math ops was the biggest pain point for me, though I would like to work on Opal! Can you recommend a light to medium guide to hacking on compilers?
Artur Ostręga
@aost
Aug 14 2014 21:35
http://opalrb.org/docs/compiler/ Good place to start :)