News for hackers. Stuff that matters.
Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by ibraheemdev on Friday January 01, 2021 @03:03PM (#25606369)
Is there a timeline as to when artichoke will be stable enough to say... run a Rails app? Or is that not a goal of this project?
Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by root_axis on Friday January 01, 2021 @06:34PM (#25608499)
Out of curiosity, why would you want to do that? Rails just doesn't seem like it makes much sense in the context of WASM. I know you can run WASM outside of the browser but you can run any other ruby outside of the browser, so you wouldn't need artichoke.
Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by ibraheemdev on Friday January 01, 2021 @07:10PM (#25608765)
There are probably a lot of benefits to be gained from Rails on Wasm. For example, Shopify recently posted an article about how they use Wasm outside of the browser to execute untrusted code (user scripts) [0]. It is also worth mentioning that although Artichoke supports WebAssembly as a build target, compiling to Wasm is not the only way to execute an Artichoke program.

0: https://shopify.engineering/shopify-webassembly

Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by p4lindromica on Friday January 01, 2021 @08:01PM (#25609136)
You might be interested in this early work to build a Sinatra echo server [0] with Artichoke (called ferrocarril back then). `hubris` used a custom Rack-compatible web server called `nemesis` [1] based on Rocket [2], a Rust Flask-like web framework.

[0]: https://github.com/artichoke/artichoke/tree/97ba69d31154be45...

[1]: https://github.com/artichoke/artichoke/tree/97ba69d31154be45...

[2]: https://rocket.rs/

Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by bobthebuilders on Friday January 01, 2021 @06:54PM (#25608640)
I think it's more of a question of how far along is the project, and is bug-for-bug compatibility a goal or not.
Re:Artichoke is a Ruby made with Rust that compiles to WebAs... by chrisweekly on Friday January 01, 2021 @03:19PM (#25606577)
Same question here.