Opal - Ruby Style Ruby in the browser Forrest Chang, OCRuby
Nov 2011 Most popular repo on github
IDEA: Take the frontend language put it the back end
Just a few..
Idea: Take the backend language, put it on the front end
apparently a popular idea
Better syntax Less verbose, clearer, more intention Some nice features, list comprehensions, implicit return, etc. Happier programmers *
Y u no coffeescript?
Nothing wrong with it
But I like Ruby better
And already work ruby on the backend
but if you’re going to change the syntax, why not all the way?
Hasn’t It been tried before?
active Less ruby like active
what is opal
used to bother me, might bother me again later
Do people care that ruby/lISP/Python doesn’t look/ACT like C
As long as it’s done well
Embrace the abstraction!
I had a similar idea
chai-script Hot drink motif. What drink is reddish? Ruby equivalent of Coffeescript Syntactic sugar, but ruby flavor eventd subset of ruby w/idea of eventd gems for front and backend Ease ‘em into ruby No time
Opalscript Likely the same idea 1st public commits just released on 10/24/2012 (i.e. yesterday) I’ll be keeping a key eye on this, not certain which I’ll prefer
make the programmer happy
I’m enjoying it thus far
A NEAT IDEA - try opal
An example: bit.ly/WFHLyh
modules to share functionality wrapping js via x string Easy classes include module easy attributes cal ing my js wrapper Inheritance, baby super, baby reusing JsUtils again...
compiled js pretty straight forward
Opal runtime matching line of code JsUtils module js alert wrapped Dude class
Gal class super Bystander class Instance invocations
What’s to like? Ruby Rake Rspec nicer APIs Ruby on the backend, Ruby on the frontend
Desktop/Server: MRI, JRuby, Iron Ruby, Rubinius Faster Rubylike subset for JVM (Android and other possibilities) Mirah Embedded: mruby IOS: RubyMotion Browser/Node: opal