dragonkh has quit [Quit: Bye!]
elia has quit [Quit: Computer has gone to sleep.]
mneorr_ has joined #opal
mneorr has quit [Ping timeout: 264 seconds]
dleedev has quit [Ping timeout: 246 seconds]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Ping timeout: 264 seconds]
dleedev has joined #opal
mneorr has joined #opal
mneorr has quit [Remote host closed the connection]
e_dub has quit [Ping timeout: 246 seconds]
e_dub has joined #opal
mneorr has joined #opal
edub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
edub has quit [Ping timeout: 264 seconds]
ryanstout has quit [Quit: ryanstout]
e_dub has joined #opal
e_dub has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
e_dub has quit [Read error: Connection reset by peer]
edub has joined #opal
edub has quit [Quit: It's a hard knock life]
e_dub has joined #opal
dimaursu16 has joined #opal
elia has joined #opal
kludge` has quit [Ping timeout: 240 seconds]
dleedev has quit [Quit: dleedev]
kludge` has joined #opal
barry_ has joined #opal
<
elia>
adambeynon_, what's missing for a new release? (0.6?)
<
adambeynon_>
elia: nothing major really
<
adambeynon_>
there are a couple of super bugs
<
adambeynon_>
but, if we wait for those, it might be a while before they get fixed
<
elia>
adambeynon_, k, just wanted to give a spin to the clogs :)
<
adambeynon_>
elia: yeah. looking at github issues now. there is nothing that cant be fixed in a patch release after 0.6.0
<
elia>
adambeynon_, maybe I'll take the time to check the issues attached to the 0.6 milestone
<
adambeynon_>
elia: It is about time for a release - I have been running all my stuff from master for quite a while now
Todd- is now known as Todd
e_dub has quit [Read error: No route to host]
edub has joined #opal
dimaursu16 has quit [Ping timeout: 246 seconds]
dimaursu16 has joined #opal
fkchang has joined #opal
Kilo`byte has quit [Read error: Connection reset by peer]
elia has quit [Ping timeout: 272 seconds]
ryanstout has joined #opal
<
ryanstout>
anyone here an expert on heap profiling in chrome dev tools?
ryanstout has quit [Quit: ryanstout]
elia has joined #opal
DrShoggoth has joined #opal
GitHub111 has joined #opal
GitHub111 has left #opal [#opal]
<
GitHub111>
opal-jquery/master 3b41d87 Elia Schito: Hash.from_native has been removed
elia has quit [Quit: Computer has gone to sleep.]
dragonkh has joined #opal
meh` has quit [Ping timeout: 240 seconds]
elia has joined #opal
ryanstout has joined #opal
Steve445 has joined #opal
Steve445 has quit [Quit: Steve445]
grios has joined #opal
<
dragonkh>
hey anyone around?
<
ryanstout>
dragonkh: hey
<
dragonkh>
hi ryanstout
<
dragonkh>
ryanstout - do you know about this? when js has a method that takes a function(){ stuff } in ruby we can do proc { stuff }
<
dragonkh>
so my_method(proc{ 'foo' }) in ruby is like my_method(function(){ return 'foo'}); in js
<
dragonkh>
but how do I pass an argument?
<
ryanstout>
to the proc?
<
dragonkh>
yea to the proc
<
dragonkh>
proc(arg){ arg } ??
<
dragonkh>
like in js my_method(fucntion(arg){ return arg});
<
dragonkh>
or proc {|arg| arg } ???
<
ryanstout>
so you're wanting to call the proc from insides of the method?
<
dragonkh>
pass the proc to the method
<
dragonkh>
as an argument
<
dragonkh>
but the proc needs to take an argument as well
<
ryanstout>
my_method(proc {|arg1| ...})
<
ryanstout>
def my_method(some_proc)
<
ryanstout>
some_proc.call("an arg")
<
ryanstout>
does that make since?
<
dragonkh>
its not working
<
ryanstout>
maybe an opal bug?
<
dragonkh>
tr.selectAll('td').data(proc{|d| d}).enter().append('td').text(proc{|d| d})
<
dragonkh>
this is the js
<
dragonkh>
tr.selectAll("td").data(function(d) { return d; }).enter().append("td").text(function(d) { return d; });
<
ryanstout>
is this using opal-jquery?
<
dragonkh>
no its using opal-d3
<
dragonkh>
which is a library im writing
<
adambeynon_>
dragonkh: are you sure each method is returning an opal object? and not a d3 instance?
<
dragonkh>
adambeynon_: its returning a d3 object not an opal object
<
dragonkh>
this is the code inside select for example: D3.new(`d3.select(#{v})`)
<
adambeynon_>
right, that is probably the issue then. ruby calls get compiled with a '$' prefix in their name
<
dragonkh>
adambeynon_: do I need to add a .to_n ?
<
dragonkh>
this d3 library is very hard to wrap!!
<
adambeynon_>
dragonkh: I had the same problem with jquery
<
adambeynon_>
I think bridging it might be the easier option
<
dragonkh>
adambeynon_: there is nothing to bridge it to though?
<
adambeynon_>
dragonkh: not that I have used d3 before, but it looks like there is a prototype on selection instances
<
adambeynon_>
d3.selection.prototype
<
adambeynon_>
again, I havent used it before, but a lot of the methods I see in sample code seem to be exposed on there
<
adambeynon_>
if you can bridge, it will save having to convert back and forth between wrapped and non-wrapped objects
<
dragonkh>
so I could try class Selection < `d3.selection`
<
adambeynon_>
dragonkh: yes, that should work
<
adambeynon_>
the extra logic for the Element class in jquery is purely to support jquery or zepto
<
dragonkh>
there are several items I need to use - I see d3.transition.prototype also
<
dragonkh>
so I will have to extend all the places I find a protptype
<
dragonkh>
adambeynon_ what does this do?
<
dragonkh>
var root = $opal.global, dom_class;
<
dragonkh>
adambeynon_: holy crap - it's working !!!
<
dragonkh>
adambeynon_: and I used the expose method from jquery to expose some of the other methods and they are working also
<
dragonkh>
phew no need to wrap everything
DrShoggoth has quit [Ping timeout: 264 seconds]