<elia>
adambeynon: seems related to method donation
<adambeynon>
elia: yep. Inside #attr_reader and friends, we need to call $opal.donate(self, ['$method_name'])
<adambeynon>
I think
<adambeynon>
probably, we also should be doing that inside Module#define_method() as well
<elia>
adambeynon: right, that's an important one I think
<adambeynon>
elia: we do need a cleanup of the way we handle the methods. instance_methods() and methods() are not very clean, and are not very accurate either
<elia>
adambeynon: probably some "internal api" helper functions could help
<adambeynon>
to work with method_added as well..
e_dub has quit [Ping timeout: 252 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 248 seconds]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
e_dub has joined #opal
<elia>
adambeynon: any reason for commenting the indirect checks in Opal.donate?
denysonique has quit [Ping timeout: 260 seconds]
davidboy has quit [Ping timeout: 264 seconds]
lectrick has quit [Ping timeout: 245 seconds]
<adambeynon>
elia: I cant remember to be honest
<adambeynon>
elia: it has been commented out for a very long time though...
<elia>
adambeynon: will dig deeper :)
DouweM has joined #opal
<adambeynon>
elia: it seems it was commented out to stop Kernel methods appearing as bridged class methods
<adambeynon>
e.g. Array.instance_methods.include?('puts') => true
<elia>
cherry-picking is a good thing in this context (a browser)
<elia>
*I (think)
<meh`>
yeah
<elia>
meh`: that's also what mruby does on a larger scale, and that I like too for opal
<adambeynon>
yeah, I like that :+1:
<adambeynon>
hmm, irc needs emoji
<meh`>
lol
<elia>
adambeynon:
<elia>
meh`: adambeynon: on that track, last night I was wondering what is the bare minimum to run opal + native (e.g. runtime.js+class+module+kernel…)
<fkchang>
I was describing the direction I see stuff like Lissio and other stuff you could do in opal, to a co worker and he said that it was basically the same idea as webcomponent
<meh`>
fkchang, yeah, it's the same
<meh`>
and I agree it's the way to go
<meh`>
which is why I'm going that way to begin with :)
<fkchang>
SO w/o doing a lot of research on webcomponents, I figure we could either lift ideas from it, or maybe compile down to to webcomponents as an option
<fkchang>
Mozilla has gotten on board w/this. Dart will apparently have support and tooling for webcomponents and Polymer
<meh`>
fkchang, the most important thing about webcomponents is the shadow dom
<meh`>
which I will implement in opal-browser sooner or later
<meh`>
opal-browser already goes the polyfill way really
<fkchang>
cool, I'll have to read up and study up, but if nothing else we can look at something with the same idea and a fair amount of resources as an example
<e_dub>
oh dope, so this si the css dsl you guys were talking about earlier
<e_dub>
very neat
<meh`>
e_dub, yeah, it's inside opal-browser
<meh`>
that css block is basically CSS { }
<meh`>
which comes with opal-browser
<meh`>
it just does some internal stuff to store the style for dynamic changes in runtime
<meh`>
e_dub, lissio is simply a thin wrapper around opal-browser
<e_dub>
awesome. back when i was involved in Towerjs (before he totally changed it) my interest was in the one-lang-to-rule-them-all thing, so we had coffeescript on server/client, coffeecup templates, and looking into coffeestylus for style. so, very happy to see this approach taking form in ruby
<meh`>
e_dub, I was going with mustache inspired templates, but I might come up with a templating thing in Ruby instead
<meh`>
which does sound better
<e_dub>
oh, it looked like your view had ruby templating already?
<e_dub>
nvm
<e_dub>
that's eventing
<meh`>
e_dub, it has the html block
<e_dub>
i just saw the "html do"
<meh`>
which is a DOM {} wrapping
<meh`>
but it's not template ready
<meh`>
but I will wrap it up into a templating thing
<e_dub>
cool
<meh`>
e_dub, it's a bit trickier because you need lazyness and partial updates
<meh`>
or it's useless
fkchang` has joined #opal
fkchang has quit [Read error: Connection reset by peer]
fkchang`` has joined #opal
fkchang` has quit [Read error: Connection reset by peer]
adambeyn_ has joined #opal
<elia>
adambeynon: meh`: you saw the new github release api? could be very useful