Re:Now you can run Ruby on Rails in the browser using WebAss...
by diogolsq on Monday February 17, 2025 @12:13PM
(#43081119)
What would be the user case of running in your browser?
[ Parent
| on HN ]
Re:Now you can run Ruby on Rails in the browser using WebAss...
by danielwetan on Monday February 17, 2025 @12:14PM
(#43081136)
You can create a SaaS with fully private data on the client side while using both local operations and managing control via API calls.
Think of it like a mobile app, but for the browser.
Re:Now you can run Ruby on Rails in the browser using WebAss...
by robertlagrant on Monday February 17, 2025 @01:19PM
(#43081788)
> with fully private data on the client side
How is the data fully private?
Re:Now you can run Ruby on Rails in the browser using WebAss...
by gwright on Monday February 17, 2025 @01:33PM
(#43081910)
FWIW, I read that to mean "not shared with the backend".
Re:Now you can run Ruby on Rails in the browser using WebAss...
by robertlagrant on Monday February 17, 2025 @01:34PM
(#43081916)
Oh! Right, I see. I'd have thought we could do that today in Typescript or something, but maybe they have something extra in mind.
Re:Now you can run Ruby on Rails in the browser using WebAss...
by evolve2k on Monday February 17, 2025 @03:22PM
(#43082967)
Yeah this is sort of the point. Much of JavaScripts ascendancy is simple it’s monopoly on being able to run native in browser. Wasm lets you bring other languages to the browser.
The author didn’t mention using the browsers web console or “how do I use rails console in the browser with wasm?”. That’d be interesting to me. Can I write Ruby in the web console and see things change live in my wasm app?
Re:Now you can run Ruby on Rails in the browser using WebAss...
by emnudge on Monday February 17, 2025 @12:18PM
(#43081192)
Outside of making something - it’s very useful for setting up a quick project.
Stackblitz did this with Node (aka their Web Containers).
You could make a new project very quickly and prototype an idea. When finished, download it off the browser and deploy it.
Re:Now you can run Ruby on Rails in the browser using WebAss...
by JamesSwift on Monday February 17, 2025 @01:30PM
(#43081879)
A common usecase for offline-first mobile app situations is shared business logic, especially for validations. Being able to validate client-side and detecting issues without a server dependency is a nice boost to UX.