fkchang has quit [Ping timeout: 245 seconds]
cliffstah has quit [*.net *.split]
cliffstah has joined #opal
fkchang has joined #opal
fkchang has quit [Ping timeout: 248 seconds]
ashrewdmint has joined #opal
<ashrewdmint> Anyone around?
<ashrewdmint> I can't seem to get jQuery to work with Opal.
<ashrewdmint> This is a cool library though :)
yllox has quit [Quit: Bye!]
adambeynon has joined #opal
elia has joined #opal
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adambeynon has joined #opal
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#914 (master - 9bae280 : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11500560
travis-ci has left #opal [#opal]
kludge` has quit [Ping timeout: 246 seconds]
kludge` has joined #opal
meh` has joined #opal
GitHub17 has joined #opal
<GitHub17> opal/master 7956bdc Adam Beynon: Initial block reworking for block destructuring
<GitHub17> [opal] adambeynon pushed 1 new commit to master: http://git.io/wYhCIQ
GitHub17 has left #opal [#opal]
<adambeynon> meh`: my plans today ^^
<meh`> adambeynon, awesome
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11502444
<travis-ci> [travis-ci] opal/opal#915 (master - 7956bdc : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
GitHub94 has joined #opal
GitHub94 has left #opal [#opal]
<GitHub94> opal/master 23fe4d2 Adam Beynon: Support fully parsing of masgn in block destructuring
<GitHub94> [opal] adambeynon pushed 1 new commit to master: http://git.io/3pQK1A
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11503670
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal#916 (master - 23fe4d2 : Adam Beynon): The build passed.
<meh`> adambeynon, can you ping me when it's supposed to work?
<adambeynon> meh`: sure!
<adambeynon> not too far away
<meh`> thanks
<meh`> let's just hope the rest is stuff I can fix
<adambeynon> meh`: will 1 level deep be ok for this morning?
<adambeynon> i.e.
<adambeynon> |a, (b, c)| but not |a, (b, (c, d))|
<meh`> adambeynon, I don't know, I hope so
<adambeynon> :D
<adambeynon> I will try and get it all working
<adambeynon> but 1 level deep is a lot easier
GitHub22 has joined #opal
<GitHub22> opal/master 958bb3f Adam Beynon: Assign masgn parts for block destructuring
GitHub22 has left #opal [#opal]
<GitHub22> [opal] adambeynon pushed 1 new commit to master: http://git.io/8Xdy_Q
<adambeynon> meh`:
<adambeynon> >bundle exec bin/opal -e "p proc { |a, (b, c)| [a, b, c] }.call(1, [2, 3, 4])"
<adambeynon> [1, 2, 3]
<adambeynon> getting there...
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11504605
<travis-ci> [travis-ci] opal/opal#917 (master - 958bb3f : Adam Beynon): The build passed.
<meh`> nice
GitHub135 has joined #opal
<GitHub135> [opal] meh pushed 1 new commit to master: http://git.io/Cn4oeQ
<GitHub135> opal/master d61b661 meh: Add Native::Array#last
GitHub135 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#918 (master - d61b661 : meh): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11505049
<meh`> adambeynon, I think opal-browser is the only library wrapping CSSOM stuff
<meh`> ( ͡° ͜ʖ ͡°)
GitHub50 has joined #opal
<GitHub50> opal/master 4d594bd Adam Beynon: Formatting fix
GitHub50 has left #opal [#opal]
<GitHub50> opal/master d6b4d8e Adam Beynon: Merge branch 'master' of github.com:opal/opal
<GitHub50> [opal] adambeynon pushed 2 new commits to master: http://git.io/hTjhRg
<adambeynon> I need to catch up with opal-browser
<meh`> adambeynon, it's looking pretty good
<meh`> except, no documentation at all :D
<meh`> I need help with that
<meh`> I need help with writing specs and documentation
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11505425
<travis-ci> [travis-ci] opal/opal#919 (master - d6b4d8e : Adam Beynon): The build passed.
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adambeynon has joined #opal
<meh`> adambeynon, bugs :D
<adambeynon> \o/
<meh`> adambeynon, first one, autoload
<meh`> we should convert it to a require
<adambeynon> agreed
<meh`> should be fairly straightforward
<adambeynon> yep, will look into it
<adambeynon> infact
<adambeynon> a github issue makes sense
<meh`> then very weird const lookup bugs
<adambeynon> are those the same problems as before?
<adambeynon> from superclasses?
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
adambeynon has joined #opal
<meh`> adambeynon, I have no clue
<meh`> adambeynon, I'm committing stuff so you can test it yourself
<meh`> adambeynon, https://github.com/meh/lissio/tree/template here you go
<meh`> > bundle exec rake
<meh`> NameError: uninitialized constant Object::Parslet
<adambeynon> looking
GitHub158 has joined #opal
GitHub158 has left #opal [#opal]
<GitHub158> [opal] adambeynon pushed 1 new commit to master: http://git.io/s54ulQ
<GitHub158> opal/master e103c28 Adam Beynon: Add some initial specs for block destructuring
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] opal/opal#920 (master - e103c28 : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11508681
<adambeynon> meh`: seems an odd one really
GitHub102 has joined #opal
GitHub102 has left #opal [#opal]
<GitHub102> [opal] adambeynon pushed 1 new commit to master: http://git.io/lVu2yA
<GitHub102> opal/master cc9dae3 Adam Beynon: Merge block and block_args filters together
<adambeynon> and that is an Opal error, not a ruby error, yeh?
GitHub173 has joined #opal
<GitHub173> opal/master 69a2981 Adam Beynon: Initial support for `_` args in block args
<GitHub173> [opal] adambeynon pushed 1 new commit to master: http://git.io/fwb-Ng
GitHub173 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#921 (master - cc9dae3 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11508980
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#922 (master - 69a2981 : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11509115
travis-ci has joined #opal
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11509492
<travis-ci> [travis-ci] opal/opal#923 (master - 438012d : Adam Beynon): The build passed.
GitHub114 has joined #opal
<GitHub114> opal/master 20d55fb Adam Beynon: Clean up some rubyspec filters
GitHub114 has left #opal [#opal]
<GitHub114> [opal] adambeynon pushed 1 new commit to master: http://git.io/hBVxzA
mattn_ has joined #opal
mattn_ has quit [Client Quit]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#924 (master - 20d55fb : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11509686
<meh`> adambeynon, yeah, it's opal
<meh`> if you look at the produced source
<meh`> you can see parslet is actually compiled
<ashrewdmint> Is there some reason why puts `window.location.href` will work but puts `window.location` gives a no to_s method error?
<meh`> ashrewdmint, yeah, href is a string, location is a native object
<ashrewdmint> It seems like `window.location` could be easily converted into a Hash right?
<meh`> yes, you can
<ashrewdmint> But you have to do it manually?
<meh`> yep
<ashrewdmint> I guess I should have tried Hash.new(`window.location`)
<meh`> yeah :)
<meh`> ashrewdmint, are you just playing around? or actually need to work with the browser?
<ashrewdmint> Well, with that I was just playing around earlier.
<ashrewdmint> But I was trying to get this working last night
<ashrewdmint> requiring 'opal-jquery' breaks things
<meh`> are you bundling your own jquery.js?
<meh`> opal-jquery doesn't come with it
<meh`> there's also https://github.com/opal/opal-browser for native opal stuff
<ashrewdmint> Ohh
<ashrewdmint> ┬─┬ノ( º _ ºノ)
<meh`> if you don't have a hard-dependency on jquery using opal-browser would be a better idea
<meh`> it will be the get-go library
<ashrewdmint> IIRC the tutorials never said anything about having to load the actual jQuery JS file, but it makes sense.
<ashrewdmint> Anyway, for my project I'll need to use jQuery anyway
<meh`> in that case it's better to use opal-jquery, yeah :)
<ashrewdmint> Has anyone done benchmarks on Opal?
<ashrewdmint> Like, vanilla JS for stuff vs Opal's output?
<meh`> we usually do synthetic benchmarks before implementing things
<meh`> no overall benchmarks
<ashrewdmint> Is it noticeably slower or just not consequential at all?
<meh`> it's bearable
<meh`> some of us have production stuff using opal
<meh`> and didn't hear complaints about speed
<ashrewdmint> Sounds good to me :)
<meh`> it definitely has a relatively big overhead
<meh`> but it's worth the production boost
<meh`> *productivity
<ashrewdmint> Yeah. Writing JS as Ruby makes me feel all warm and fuzzy inside.
<meh`> the most important part to me is not having to deal with sprockets or require.js based stuff
<meh`> both are hell to a certain degree
<ashrewdmint> Yeah, I'm not sure why they went with that module loading syntax.
<ashrewdmint> I wish they went with a hash/object instead of a list of paths, with a list of arguments in the function.
<ashrewdmint> That's my main gripe with require.js
<elia> meh`: ashrewdmint: probably we should add a meaningful error to opal-jquery if it can't find jquery.js
<meh`> elia, yeah
<meh`> ashrewdmint isn't the first to hit it
<adambeynon> elia, meh` : have you used backbone or any other js mvc lib before?
<meh`> adambeynon, I have
<meh`> backbone
<elia> adambeynon: tried the backbone router
<adambeynon> did you like the router? im rewriting the controller part of my vienna blog post/guide, and think a "one controller per route" is a better option
<ashrewdmint> elia: meh`: Yes, a meaningful error or a line in the web tutorial would help
<ashrewdmint> I did end up looking at the example project in the opal-jquery repo
<elia> adambeynon: I hated that they're not sequential (as is "with priority")
<ashrewdmint> But I was too dumb to look at the index.html for that project
<meh`> adambeynon, did you look into that constant missing thing?
<adambeynon> meh`: cant figure it out, need more time to look into it
<meh`> :<
<elia> adambeynon: was talking about backbone routes, about the one controller per route I'd copy rails and let the user to decide
<adambeynon> meh`: does Opal.Parslet end up being defined?
<adambeynon> in javascript land
<meh`> adambeynon, I don't know
<meh`> it fails too early
<meh`> adambeynon, it looks like an ordering issue or something
<meh`> it's probably the requires getting called in the sprockets order biting us in the ass
<meh`> Parslet is defined on line 19138
<meh`> while the error is on line 16416
<meh`> the more I see it the more I think using sprockets is an AWFUL idea
<meh`> adambeynon, yeah, it's that
<meh`> it defines the stuff in parslet.rb
<meh`> and then requires at the end
<meh`> dammit
<meh`> adambeynon, basically it does class Parslet::Slice
<meh`> and it can't find Parslet
<meh`> because it's not there yet
elia has quit [Quit: Computer has gone to sleep.]
<meh`> I'll try a workaround, but this is a pretty huge problem
<meh`> adambeynon, even more issues, now with the constant inheritance and include, and more with the require
<meh`> I'm doomed
<meh`> I'll have to write a handwritten parser
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adambeynon has joined #opal
<adambeynon> meh`: we could write a better client side require() handler
<meh`> adambeynon, I opened two issues
<meh`> they're what's blocking Parslet for now
<meh`> there's also a missing Kernel#fail, but I can work on that
GitHub2 has joined #opal
<GitHub2> [opal] meh pushed 1 new commit to master: http://git.io/oUefjA
GitHub2 has left #opal [#opal]
<GitHub2> opal/master 9a7cba4 meh: Add Kernel#fail
<adambeynon> does Kernel#fail have a use under opal?
<meh`> adambeynon, yes, it's a raise friend
<adambeynon> oh yeh, sorry, I was thinking of abort()
<meh`> no wait
<meh`> it's an alias, what the fuck
<meh`> but it's not documented as so
<meh`> our raise is not compliant
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#925 (master - 9a7cba4 : meh): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11518015
travis-ci has left #opal [#opal]
GitHub159 has joined #opal
GitHub159 has left #opal [#opal]
<GitHub159> [opal] meh pushed 1 new commit to master: http://git.io/J_9otw
<GitHub159> opal/master c21b1df meh: Kernel#fail is actually an alias for Kernel#raise
<meh`> adambeynon, I think we should have a default require engine, which would do what you proposed in the comment
<meh`> and have opal-sprockets as optional replacement
<meh`> in short, do the right thing™ by default, and do something with sprockets when you know what you're doing
<adambeynon> its worth noting, that we still would not be able to handle dynamic requires
<adambeynon> require "foo/#{bar}", for example
<meh`> sincerely, I'd find a way around the sprockets problem if possible
<meh`> doesn't sprockets inline where you tell it to?
<meh`> and wouldn't `require "foo/#{bar}" be doable with the dynamic require?
<adambeynon> meh`: we would still need to know at compile time which files to bundle in our output
<adambeynon> we would just have more control over when to include them
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/11518251
<travis-ci> [travis-ci] opal/opal#926 (master - c21b1df : meh): The build passed.
travis-ci has left #opal [#opal]
<meh`> adambeynon, makes sense
<meh`> adambeynon, again, are you sure there's no way to use sprockets and tell it where to require things?
<adambeynon> meh`: probably, with some clever caching
<adambeynon> will give it a try
<meh`> I think it'd be worth it
<adambeynon> brb, need laptop power
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
fkchang has joined #opal
ashrewdmint has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fkchang has quit [Ping timeout: 240 seconds]
adrocknaphobia has quit [Ping timeout: 246 seconds]
adrocknaphobia has joined #opal
meh` has quit [Quit: I don't want to live on this planet anymore.]