TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby on WebAssembly

91 pointsby geospeckabout 7 years ago

7 comments

hhw3habout 7 years ago
Just a thought experiment...<p>Would this allow for full stack ruby apps?<p>Writing a client side router and controllers in Ruby on Rails compiled to web assembly?<p>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.
评论 #16952750 未加载
评论 #16952604 未加载
评论 #16954065 未加载
评论 #16952773 未加载
CyberDildonicsabout 7 years ago
Why would someone go through so much trouble to use a language that will run much slower than JITed javascript?<p>I think most people miss that right now webasm is good for run speed, size, and loading speed, but is not geared nearly as much towards using any language in a web page, since IO needs to be exposed to javascript.
评论 #16953041 未加载
评论 #16954120 未加载
评论 #16955135 未加载
评论 #16954073 未加载
arkhabout 7 years ago
I hope we soon get Lisp on WebAssembly so we can run a full OS (emacs) in the browser.
评论 #16954174 未加载
cobbzillaabout 7 years ago
Curious how fast&#x2F;stable Ruby-&gt;wasm is on the frontend. I had a horrible experience with scaling a large rails app, but the usage patterns for server vs client are very different.<p>I haven&#x27;t played with wasm yet and am waiting a bit for a &quot;best language&quot; consensus to emerge. If I was to bet on a winner, my money wouldn&#x27;t be on Ruby, but I&#x27;ve been wrong many times.
wolfspiderabout 7 years ago
Mruby has captured my attention for quite a while now, especially the ability to compile and run its own bytecode as a module. The memory handling seems good and want to try running it with Cairo GL for iOS sometime for some immediate mode rendering.
choxiabout 7 years ago
How would you use features like event listeners and other web APIs from client-side mruby? I guess this is a question about WebAssebly in general: does each language that gets ported over have to re-implement those APIs?
评论 #16953377 未加载
singularity2001about 7 years ago
Rubies magic evaporated when I realized that its logic is unintuitive &#x2F; broken:<p>``` puts true and not true &gt;&gt;&gt; true x = true and false &gt;&gt;&gt; true if 0; puts &#x27;true&#x27;;end ```<p>breaking backwards compatibility with every rails upgrade didn&#x27;t help.<p>Similar bad behaviour in kotlin
评论 #16953091 未加载
评论 #16953035 未加载
评论 #16953045 未加载
评论 #16953998 未加载