meh` changed the topic of #opal to: http://opalrb.org - Ruby runtime and library on top of Javascript | 1.0.0 is near | This channel is logged at https://botbot.me/freenode/opal/
snslackirc has joined #opal
snslackirc has quit [Remote host closed the connection]
snslackirc has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
meh` has quit [Quit: I don't want to live on this planet anymore.]
meh` has joined #opal
meh` has quit [Ping timeout: 250 seconds]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Client Quit]
elia has joined #opal
elia has quit [Client Quit]
meh` has joined #opal
e_dub has joined #opal
elia has joined #opal
e_dub has quit [Quit: ZZZzzz…]
elia_ has joined #opal
elia has quit [Ping timeout: 250 seconds]
Papierkorb has joined #opal
<Papierkorb> Hi, I found a bug with attr_accessor inside a module returning JS undefined if it's not set prior: http://bit.ly/1GyGNOn - Asking here as git shows that meh` changed code in Module::attr_accessor since release of Opal v0.8.1 (Which I'm using).
<Papierkorb> Is it fixed in the master? Would like to try, but opal-rails complains if I try to put git master into the Gemfile
<Papierkorb> And if I just git pull master in bundlers' git clone (*Hackedy hack*), my Opal application blows up in code which is running fine with 0.8.1, but as I hacked master into it, I don't know if my hack caused it or master :)
<Papierkorb> It works btw when I monkey-patch Module::attr_reader http://bit.ly/1S37kVo
<meh`> Papierkorb, checking
<Papierkorb> Btw, what's Opal.ivar?
<Papierkorb> meh`: Great
<meh`> Papierkorb, it's a function that gives you a mangled name
<meh`> @ivar is compiled to self.ivar
<meh`> but some things should never be overridden like that
<meh`> like constructor
<meh`> so they're mangled
<meh`> Papierkorb, it's working properly on master
<meh`> > bundle exec bin/opal /tmp/lol.rb
<meh`> object
<meh`> object
<Papierkorb> Ah good, any idea when 0.8.3 comes?
<meh`> Papierkorb, never I think, 0.9 is in beta
<Papierkorb> Ok, any rough ETA on 0.9 final?
<meh`> probably about a month
<Papierkorb> cool, thanks
<meh`> depends on how many bugs come out during beta/rc
<meh`> there have been quite big changes in the runtime and compiler
<Papierkorb> meh`: Oh, while you're here, could you check another piece of code for me?
<meh`> Papierkorb, sure
<Papierkorb> meh`: class Foo; def bar; @bar ||= baz 123; end; def baz(a); a; end; end; puts Foo.new.bar
<meh`> Papierkorb, 123
<Papierkorb> Last time I 'checked' (I filed GH ticket for that), that returned self or whatever, but not '@bar'
<Papierkorb> Fix in my code was putting () around the arguments to the baz call
<Papierkorb> meh`: https://github.com/opal/opal/issues/1069 this ticket
<meh`> seems to be fixed then
<Papierkorb> Not in the playground at least, is it using 0.8 or .8.1 ?
<meh`> yeah, playground is on stable
<meh`> Papierkorb, easiest way to test is to clone the opal repo
<meh`> bundle install
<meh`> and bundle exec bin/opal-repl
<meh`> that will give you something like irb but running on opal
<Papierkorb> opal-rails kicks me out when I do that :|
<Papierkorb> As it requires ~> 0.8
<Papierkorb> Ah, using opal-rails master fixes that
<meh`> Papierkorb, dunno about opal-rails, by the way this channel is basically dead now (sadly), everyone is on gitter.im (sadly²)
<Papierkorb> IRC ftw
<Papierkorb> meh`: Hah. My application crash above was caused by my hack. Now it works
<meh`> good to know
<Papierkorb> are there proper clients for gitter anyway?
<Papierkorb> A webpage doesn't hold a candle to Konversation
<meh`> Papierkorb, there's an IRC bridge
<meh`> already built into gitter
<meh`> Papierkorb, https://irc.gitter.im/
<Papierkorb> ah, so it's another fancy let's-do-the-same-thing-again and then they pull a GoogleTalk after few years and get rid of the gateway :D
<meh`> pretty much
<meh`> at least it's not slack
<Papierkorb> Agree 100%
<Papierkorb> "Oh wow I love slack bots <3 <3" 1995 called, they want their new IRC ideas back
<meh`> lol
<Papierkorb> meh`: https://github.com/opal/opal/issues/1089 this still explodes
<meh`> Papierkorb, added some labels, unsure on when that will be fixed tho, I never touched the parser
<meh`> I'd rather rewrite it from scratch than use that abomination of racc
<Papierkorb> What are currently good tools to build parsers in ruby?
<meh`> parslet is my favourite
<Papierkorb> Last time I wrote a parser is 2-3 years ago, with Lemon in C++. No idea about ruby heh. (I can recommend lemon though)
GitHub125 has joined #opal
<GitHub125> [opal-rspec] elia pushed 1 new commit to master: http://git.io/vWgZe
<GitHub125> opal-rspec/master 78ff355 Elia Schito: Readme typos and whitespace...
GitHub125 has left #opal [#opal]
elia_ has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
elia has quit [Quit: Computer has gone to sleep.]
meh` has quit [Ping timeout: 256 seconds]