ryanstout has joined #opal
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
fkchang has quit [Ping timeout: 268 seconds]
DrShoggoth has joined #opal
fkchang has joined #opal
DrShoggoth has quit [Quit: Leaving]
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
e_dub has quit [Remote host closed the connection]
ryanstout has quit [Quit: ryanstout]
ryanstewart has quit [Quit: Nettalk6 - www.ntalk.de]
ryanstewart has joined #opal
adambeynon has joined #opal
elia has joined #opal
elia has quit [Ping timeout: 245 seconds]
elia has joined #opal
GitHub140 has joined #opal
GitHub140 has left #opal [#opal]
<GitHub140> [opal] adambeynon pushed 1 new commit to master: http://git.io/qwLPgw
<GitHub140> opal/master 92bb9b2 Adam Beynon: Make sure operators parse correctly when used as method names (fixes
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1111 (master - 92bb9b2 : Adam Beynon): The build was broken.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12657720
travis-ci has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1111 (master - 92bb9b2 : Adam Beynon): The build was broken.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12657720
travis-ci has left #opal [#opal]
<adambeynon> hmmmmmmmmmmmmmm
<elia> adambeynon, variable shading?
<elia> adambeynon, I catched a potential varible shading issue while working on #defined…
<elia> *shadowing
kludge` has quit [Ping timeout: 256 seconds]
kludge` has joined #opal
<adambeynon> elia: I will check on that one
<adambeynon> Im struggling to get 1.8.7 installed to even test it :/
<elia> adambeynon, rvm system # as the last resource ;)
<adambeynon> elia: Im running mavericks which bundles 2.0.0 :(
<adambeynon> should have read the warning before upgrading ;)
<elia> you son of a gun!
<elia> ill give it a whirl
<adambeynon> elia: from the stacktrace on travis, it looks like a racc error possibly
<adambeynon> .. /home/travis/.rvm/rubies/ruby-1.8.7-p374/bin/ruby: symbol lookup error: /home/travis/.rvm/gems/ruby-1.8.7-p374/gems/racc-1.4.10/lib/racc/cparse.so: undefined symbol: rb_ary_subseq
<adambeynon> rb_ary_subseq <- now sure how its affecting only 1.8.7 though..
<elia> adambeynon, ok reproduced with ree-2010.02
<adambeynon> "undefined method `find_by_name' for Gem::Specification:Class"
<adambeynon> this is going to be a long day :'(
<elia> adambeynon, it's racc, uses a c function not exposed in any (1.8) header
<adambeynon> elia: what version of racc is being installed for you? I have 1.4.9 here on ruby-1.8.7 working fine, but the error on travis seems to be from racc-1.4.10
<elia> racc-1.4.10
<elia> ok, we can notify them that racc-1.4.10 isn't ok with 1.8
<elia> adambeynon, maybe they'll yank and rerelease with ruby version constraint…
<adambeynon> elia: confirmed. just updated to 1.4.10 and got the error
<adambeynon> yeah, best to notify them
<elia> lunch time, cy
<adambeynon> okies, I'll keep a lookout on that one
fkchang has quit [Ping timeout: 272 seconds]
GitHub2 has joined #opal
GitHub2 has left #opal [#opal]
<GitHub2> opal/master 27c9eed Adam Beynon: Use Opal::Builder to simpify opal-parser.js
<GitHub2> [opal] adambeynon pushed 1 new commit to master: http://git.io/OqBUsg
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12665523
<travis-ci> [travis-ci] opal/opal#1112 (master - 27c9eed : Adam Beynon): The build is still failing.
travis-ci has left #opal [#opal]
<meh`> adambeynon, ping
<adambeynon> yo yo
<adambeynon> lunch: back in 10
GitHub15 has joined #opal
GitHub15 has left #opal [#opal]
<GitHub15> [opal] meh pushed 1 new commit to master: http://git.io/YyzYOQ
<GitHub15> opal/master 9677ea3 meh: Fix Struct inheritance
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12665938
<travis-ci> [travis-ci] opal/opal#1113 (master - 9677ea3 : meh): The build is still failing.
travis-ci has left #opal [#opal]
GitHub36 has joined #opal
GitHub36 has left #opal [#opal]
<GitHub36> [opal] elia pushed 1 new commit to master: http://git.io/32eh6A
<GitHub36> opal/master 9a84bfa Elia Schito: Temporarily fix 1.8.7 builds...
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1114 (master - 9a84bfa : Elia Schito): The build was fixed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12666710
travis-ci has left #opal [#opal]
<adambeynon> meh`: do you have a use case for Enumerable#detect not working?
<adambeynon> Its passing all the rubyspecs for multiple values
<adambeynon> so I cant find a place where its breaking
<meh`> adambeynon, gimme a sec
<meh`> adambeynon, >> { a: 3, b: 4 }.find {|a, b| b == 4 }
<meh`> => nil
<meh`> >> { a: 3, b: 4 }.find {|a, b| b == 4 }
<meh`> => [:b, 4]
<meh`> the first is opal
<meh`> that's because a is [:b, :4]
<meh`> instead of just being :b and b being 4
<adambeynon> ah, I see
fkchang has joined #opal
fkchang has quit [Ping timeout: 268 seconds]
[spoiler] has joined #opal
DouweM has joined #opal
GitHub67 has joined #opal
GitHub67 has left #opal [#opal]
<GitHub67> [opal-rspec] adambeynon pushed 1 new commit to master: http://git.io/Jbymiw
<GitHub67> opal-rspec/master 78dffb9 Adam Beynon: Add rake task to automatically pre-build rspec for production
ryanstout has joined #opal
<lectrick> hey adambeynon and whoever else is working on Opal: I submitted a bug a while back with a test case and it got handled super fast. I'm a multi year Ruby dev with a strong testing interest looking to experiment with this nifty new tool. Just wanted to say thanks for all your hard work on this project. :)
<lectrick> (Devs seem to have thankless jobs so I often step into that role. ;) )
<ryanstout> seconded!
<lectrick> Also, if you knew an equally fantastic way to run Javascript from Ruby, we could more easily incorporate our JS code into our Ruby test suite lol
<ryanstout> @lectrick have you seen https://github.com/cowboyd/therubyracer
<lectrick> Between this project and Rubinius, I think Ruby has a nice future
<lectrick> ryanstout: Yeah, the problem is it depends on a JS runtime like V8
<ryanstout> yea
elia has quit [Ping timeout: 268 seconds]
<meh`> adambeynon, ping
<meh`> lectrick, you're welcome ◕ ◡ ◔
<meh`> adambeynon, source maps are broken with the latest changes
ryanstewart has quit [Read error: Connection reset by peer]
ryanstewart has joined #opal
elia has joined #opal
[spoiler] has quit [Quit: Leaving]
<adambeynon> meh`: broken as in the lines are wrong? or..?
elia has quit [Quit: Computer has gone to sleep.]
<meh`> adambeynon, broken as in it doesn't run at all
<meh`> whines about Array missing #lines
<meh`> it crashes the request
<adambeynon> meh`: right, found the bug
<adambeynon> fixing
GitHub9 has joined #opal
<GitHub9> opal/master e7d9f16 Adam Beynon: Fix bug where colon2 was being processed as an array, not sexp
<GitHub9> [opal] adambeynon pushed 1 new commit to master: http://git.io/OQ6tNQ
GitHub9 has left #opal [#opal]
<adambeynon> meh`: ^^ that should fix it
<meh`> good
GitHub167 has joined #opal
<GitHub167> vienna/master d36482b Adam Beynon: Some slight code cleanup
GitHub167 has left #opal [#opal]
<GitHub167> [vienna] adambeynon pushed 1 new commit to master: http://git.io/tlniWA
travis-ci has joined #opal
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/vienna/builds/12685855
<travis-ci> [travis-ci] opal/vienna#112 (master - d36482b : Adam Beynon): The build passed.
travis-ci has left #opal [#opal]
<adambeynon> meh`: hopefully in the next few days I will be pushing opal-rspec 0.1.0 as well
<adambeynon> once its released I wont be working on opal-spec anymore, but I will leave it up for legacy support etc
<meh`> adambeynon, will you help me transition to opal-rspec for opal-browser?
<adambeynon> meh`: sure thing. hopefully it should be as simple as changing the name of the rake task in Rakefile and using opal-rspec in the Gemfile
<meh`> let's hope so
<adambeynon> lol, famous last words ^_^
<meh`> also I just started getting a bunch of superclass mismatches
<meh`> did something change/break?
<meh`> all the event stuff is broken now
<meh`> what the hell
<adambeynon> nothing has changed recently... how long are we talking?
<meh`> yesterday?
<meh`> I don't know
<meh`> two days maybe
<meh`> it worked before
<meh`> I think it has to do with constant scoping
ryanstout has quit [Quit: ryanstout]
<meh`> some edgecase
<meh`> as usual
<meh`> yeah, tests don't even run
<meh`> :<
<meh`> they ran few days ago
<adambeynon> meh`: well, constant scoping got changed about 5 days ago, but the changes should be making it more compliant if anything
<adambeynon> classes now inherit constants from their superclass
<adambeynon> and
<meh`> oh oh
<meh`> yes, it's a bug with constant inheritance, I think
<meh`> let me test
<meh`> adambeynon, yeah
<meh`> adambeynon, basically
<meh`> if you are defining a class with the same name of an inherited constant
<meh`> the class shouldn't refer to the inherited one
<meh`> but create a new one
<meh`> >> class LOL; class WUT; end; end; class OMG < LOL; puts WUT.inspect; class WUT; end; puts WUT.inspect; end
<meh`> LOL::WUT
<meh`> OMG::WUT
<meh`> ^ that's ruby
<meh`> >> class LOL; class WUT; end; end; class OMG < LOL; puts WUT.inspect; class WUT; end; puts WUT.inspect; end
<meh`> LOL::WUT
<meh`> LOL::WUT
<meh`> ^ this is opal
<meh`> this one really *really* fix ASAP
<adambeynon> damn :( I knew the solution was too simple
<meh`> or opal-browser doesn't work
<meh`> and I really need it to work
<meh`> and I think I depend on other fixes
<meh`> that are on master
<meh`> and I was just getting on the demo app for rubyconf
<meh`> adambeynon, don't feel bad, I hit a similar bug on Rubinius too once
<adambeynon> lol :D
<adambeynon> meh`: I need time to think up a fix for this. I think im going to revert those 2 changes
<meh`> fine by me
<adambeynon> meh`: a solution could be that each class/module stores the scope in which it was actually defined, so we know when it is being referred to as a inherited constant or not
<meh`> adambeynon, https://github.com/rubinius/rubinius/issues/1546 just for history's sake
<meh`> 2 years ago, damn time passes fast
elia has joined #opal
<meh`> http://famo.us/c/ what do you guys think of that?
<meh`> adambeynon, ping me when you revert the constant stuff, or magically fixed it instead of reverting
<meh`> I'm gonna chill a bit and implement coercion
<meh`> because I feel like it
<meh`> adambeynon, I have a proposal
<meh`> adambeynon, can we have `param = undefined` support in method definitions?
<meh`> like Rubinius does
fkchang has joined #opal
<adambeynon> meh`: we already do, dont we?
<adambeynon> imac% bundle exec bin/opal-repl
<adambeynon> >> class LOL; class WUT; end; end; class OMG < LOL; puts WUT.inspect; class WUT; end; puts WUT.inspect; end
<adambeynon> LOL::WUT
<adambeynon> OMG::WUT
<meh`> is that with revert?
<meh`> or did you fix it?
<meh`> adambeynon, I don't know if we do
<adambeynon> meh`: fixed it
<meh`> adambeynon, awesome :D
<adambeynon> meh`: is this what you have in mind?
<adambeynon> http://opalrb.org/try/#code:def%20foo(bar%20%3D%20undefined)%0A%20%20bar%0Aend
<meh`> adambeynon, yes
<adambeynon> meh`: ah, so yeah it does work. and it also works fine when you have arity checking on
<meh`> adambeynon, awesome
GitHub173 has joined #opal
<GitHub173> opal/master 48f622d Adam Beynon: Inherited constants are ignored when defining a new class
GitHub173 has left #opal [#opal]
<GitHub173> [opal] adambeynon pushed 1 new commit to master: http://git.io/e9LpHg
<adambeynon> rspec by itself makes a pretty decent spec runner. If rspec can load and work, then its a safe bet that your ruby impl is pretty solid
<adambeynon> it uses so many quirks
<meh`> until you get meh using your implementation
<adambeynon> there is always that small print ;)
<adambeynon> back in 2 mins
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
GitHub2 has joined #opal
<GitHub2> [opal] meh pushed 2 new commits to master: http://git.io/GyY4_A
<GitHub2> opal/master cae238d meh: Add Kernel#Float
<GitHub2> opal/master 24e3e62 meh: Make Kernel#Integer compliant
GitHub2 has left #opal [#opal]
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1116 (master - 48f622d : Adam Beynon): The build passed.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12688401
travis-ci has left #opal [#opal]
adambeynon has joined #opal
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1117 (master - cae238d : meh): The build was broken.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12688556
travis-ci has left #opal [#opal]
<meh`> travis-ci, u wot m8
<meh`> I forgot to check the specs ◕ ◡ ◔
<meh`> cd
<meh`> how
<meh`> wat
<meh`> adambeynon, how can I have broken those specs?
<adambeynon> meh`: mspec might be using Integer() internally for something
<meh`> most don't make any sense :|
<meh`> Kernel#Float exists
<meh`> wut
<adambeynon> meh`: they do seem quite strange examples to fail with those changes though...
<adambeynon> meh`: did the constants fix work?
<meh`> didn't test yet
<meh`> testing
<meh`> adambeynon, yeah, it werks
<meh`> it's the Integer one
<meh`> I'm confused
<adambeynon> I dont understand it either..
<adambeynon> its not getting as far as the `else` part
<adambeynon> otherwise that would be the errror on each exampl
<adambeynon> e
<meh`> and there are some that just have nothing to do with it :|
<meh`> like the Hash one
<meh`> and that undefined out of nowhere
ryanstout has joined #opal
<meh`> well, I can't leave it like that
<meh`> but I need Integer to work
<meh`> adambeynon, something's extremely fishy here
<adambeynon> meh`: try inserting a `console.log(value)` just inside a method to get an overview of everything going through it
<meh`> adambeynon, that's what I've been doing
<meh`> I'm getting weird values
<adambeynon> such as?
<meh`> it looks like mspec passes the version to Integer
<meh`> 1.9.3.327
<meh`> 1.9
<meh`> 1.9.3.327
<meh`> 0
<meh`> Ruby versions
<meh`> what's the point
<adambeynon> what class are those?
<meh`> and why would it fail with that check
<meh`> I don't know yet
<meh`> checking
<meh`> SpecVersion
<meh`> mh
<meh`> I don't get it
<adambeynon> yeh, something in that breaking somewhere I guess
<adambeynon> although...
<adambeynon> nothing overly complex there..
<meh`> so the bug ain't in Integer
<meh`> it's something in SpecVersion#to_i exploding
<adambeynon> String#% possibly
<meh`> uh
<meh`> do we even have it?
<meh`> we do
<meh`> it calls a format out of nowhere
<meh`> I really don't feel like implementing format =_=
<meh`> but at least it ain't a bug in Integer
<adambeynon> meh`: we have Kernel#format
<adambeynon> as well
<meh`> oh
<meh`> yeah, we do
<meh`> guess it's broken
GitHub140 has joined #opal
<GitHub140> [opal] meh pushed 1 new commit to master: http://git.io/tDhxDQ
GitHub140 has left #opal [#opal]
<GitHub140> opal/master c9138f4 meh: Add Numeric#nan?, Numeric#finite? and Numeric#infinite?
<meh`> let the fun begin
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1118 (master - c9138f4 : meh): The build is still failing.
travis-ci has left #opal [#opal]
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12691563
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
GitHub156 has joined #opal
<GitHub156> [opal] meh pushed 1 new commit to master: http://git.io/Nn4zXA
GitHub156 has left #opal [#opal]
<GitHub156> opal/master e3c2c1e meh: More Kernel#Integer compliancy
travis-ci has joined #opal
<travis-ci> [travis-ci] opal/opal#1119 (master - e3c2c1e : meh): The build is still failing.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/opal/opal/builds/12691988
travis-ci has left #opal [#opal]
meh` has quit [Quit: fucking dell]
elia has quit [Read error: Connection reset by peer]
elia has joined #opal
ryanstout has quit [Quit: ryanstout]
ryanstout has joined #opal
ryanstout has quit [Client Quit]