News for hackers. Stuff that matters.
Re:Ruby on WebAssembly by hhw3h on Sunday April 29, 2018 @11:56AM (#16952516)
Just a thought experiment...

Would this allow for full stack ruby apps?

Writing a client side router and controllers in Ruby on Rails compiled to web assembly?

If you could just toggle in production.rb if you want your routing to be client side or server side and the framework could transparently manage that for you.

Re:Ruby on WebAssembly by reese_john on Sunday April 29, 2018 @12:49PM (#16952750)
I believe Hyperloop[0] tries to accomplish something similar

[0] http://ruby-hyperloop.org/

Re:Ruby on WebAssembly by jballanc on Sunday April 29, 2018 @12:12PM (#16952604)
In theory you could already do this with Opal (https://github.com/opal/opal).
Re:Ruby on WebAssembly by lloeki on Sunday April 29, 2018 @03:25PM (#16953485)
Re:Ruby on WebAssembly by nick_urban on Sunday April 29, 2018 @05:56PM (#16954128)
Does not seem to be actively developed, however. Last commit was in early 2016: https://github.com/voltrb/volt/
Re:Ruby on WebAssembly by mshenfield on Sunday April 29, 2018 @05:37PM (#16954041)
Nice.

Anyone else getting a "Connection Lost..." message as soon as they visit the page?

Re:Ruby on WebAssembly by keithnz on Sunday April 29, 2018 @05:41PM (#16954065)
yes, and it's not only ruby doing this, various other languages are doing it also.

So it's going to be interesting to see what kind of disruption that has on javascript on the client side.

Re:Ruby on WebAssembly by Asmod4n on Sunday April 29, 2018 @12:53PM (#16952773)
There is no Ruby on Rails for mruby, yet.
Re:Ruby on WebAssembly by nitrogen on Sunday April 29, 2018 @01:26PM (#16952927)
What are the differences between mruby and MRI that prevent this?
Re:Ruby on WebAssembly by Mikeb85 on Sunday April 29, 2018 @06:07PM (#16954176)
mruby is an embedded language so it's missing a lot of the built-in features that MRI has.