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/
tils` has joined #opal
tils`` has joined #opal
Kilo`byte has quit [Ping timeout: 252 seconds]
tils has quit [Ping timeout: 245 seconds]
Kilo`byte has joined #opal
boberetezeke has quit [Ping timeout: 250 seconds]
tils` has quit [Ping timeout: 265 seconds]
boberetezeke has joined #opal
e_dub has joined #opal
dimaursu16 has quit [Ping timeout: 245 seconds]
e_dub has quit [Ping timeout: 276 seconds]
e_dub has joined #opal
boberetezeke has quit [Quit: boberetezeke]
ryanstout has quit [Quit: ryanstout]
elia has joined #opal
elia has quit [Ping timeout: 240 seconds]
tils`` is now known as tils
elia has joined #opal
elia has quit [Ping timeout: 265 seconds]
elia has joined #opal
_elia has joined #opal
elia has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal
kludge` has quit [Ping timeout: 245 seconds]
kludge` has joined #opal
dimaursu16 has quit [Ping timeout: 250 seconds]
_elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
ylluminate has quit [Ping timeout: 252 seconds]
Maddis has joined #opal
<Maddis> hey there
<Maddis> I tried some basic ruby for loops and they don't seem to work with opal
<Maddis> http://opalrb.org/try/#code:puts%20%22Hallo%20Welt!%22*2%0Aputs%20%22Second%20row!%22%0A%0Afor%20i%20in%201..2%0A%20%20puts%20i%0Aend
<Maddis> if I append 'do' it throws NoMethodException
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 240 seconds]
<adambeynon> Hi Maddis - for loops are unsupported (for now)
<adambeynon> all the usual #each() methods should work though
<Maddis> Anything else that is not supported?
<adambeynon> Maddis: I think everything else syntax wise should be supported
<Maddis> Also how could I interact with already existing javascript code?
<Maddis> I am currently working on a Karel-like implementation for ruby (browser based)
<Maddis> just as background info ;)
<Maddis> so I have have a live online code editor, which sends the ruby code to the server, compiles with opal and sends it back to the browser, allowing it to run
<Maddis> but now I have to match a ruby method like move() in ruby to a robot.move() which already exists in js, any ideas?
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #opal
<elia> Maddis, you don't necessarily need to send stuff to the server, you can use opal-parser.js, much like opalrb.org/try does
<elia> Maddis, about the .move() method can you be a bit more specific?
<Maddis> elia, where do I get opal-parser.js from?
<elia> CDN (I need to put that in the readme…)
<Maddis> I already found a solution for my move-problem ;)
<elia> cdn.opalrb.org/opal/current/opal-parser.min.js
<Maddis> thanks
<elia> :)
<Maddis> i am currently trying to find a way to implement something like a stepper (run code line by line), but that is independant from opal :P
<Maddis> elia, is there any documentation on opal-parser?
<elia> Maddis, mm
<Maddis> is it the same Opal.compile(ruby)?
<elia> Maddis, yes basically, also it picks up any script tag with type="text/ruby"
<Maddis> hmm
<Maddis> is there a non-minified version of the parser?
<elia> sure
<elia> Maddis, just remove the .min
<Maddis> clever...
<elia> there's also a .min.js.gz for the record
<elia> github.com/opal/opal-cdn
<Maddis> about that "basically", elia: how to call the parser? Opal.compile does not exist according to chrome
<Maddis> also is opal.js still a dependancy if I included opal-parser.js?
<elia> yep
<elia> you probably just miss opal
<Maddis> hmm, could be because I include the parser before opal
<Maddis> I should tweek the asset pipeline in my rails
<Maddis> alright, fixed it, thanks
<elia> Maddis, if you happen to write a couple of lines about how to use opal-parser I'd be happy to push them to opalrb.org :)
<Maddis> my knowledge consits of eval(Opal.compile(code))
<Maddis> maybe if I happen to know more
<Maddis> ;)
Maddis has quit [Quit: Page closed]
meh` has joined #opal
boberetezeke has joined #opal
e_dub has quit [Quit: It's a hard knock life]
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 265 seconds]
dimaursu16 has joined #opal
dimaursu16 has quit [Ping timeout: 265 seconds]
boberetezeke has quit [Quit: boberetezeke]
boberetezeke has joined #opal
elia has quit [Ping timeout: 276 seconds]
fkchang has joined #opal
ryanstout has joined #opal
e_dub has joined #opal
boberetezeke has quit [Quit: boberetezeke]
tils has quit [Ping timeout: 258 seconds]
boberetezeke has joined #opal
boberetezeke has quit [Client Quit]
boberetezeke has joined #opal
meh` has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #opal
dimaursu16 has joined #opal
sarlalian has joined #opal
e_dub has quit [Quit: ZZZzzz…]
ylluminate has joined #opal
<ylluminate> hey meh, when you catch this i wanted to circle up with you and see how things are going on that conversion. also wanted to talk about webgl + browser; thought a real strong opportunity might be taking gosu to the web with opal+webgl
elia has joined #opal
elia has quit [Client Quit]
boberetezeke has quit [Quit: boberetezeke]
boberetezeke has joined #opal
elia has joined #opal
boberetezeke has quit [Ping timeout: 250 seconds]
DrShoggoth has quit [Quit: Leaving]
dimaursu16 has quit [Ping timeout: 250 seconds]
ylluminate` has joined #opal
ylluminate_ has joined #opal
ylluminate has quit [Ping timeout: 250 seconds]
ylluminate` has quit [Ping timeout: 255 seconds]
e_dub has joined #opal