3 ms·
Alternative idea: keep running the same Ruby code. - https://github.com/ruby/ruby.wasm https://github.com/ruby/ruby.wasm (compile Ruby to WASM) - https://mame
by exikyut 4y ago
Alternative idea: keep running the same Ruby code.
- https://github.com/ruby/ruby.wasm https://github.com/ruby/ruby.wasm (compile Ruby to WASM)
- https://mame.github.io/emruby/ https://mame.github.io/emruby/ (example of Ruby compiled to WASM)
- https://opalrb.com/ https://opalrb.com/ (compile a subset of Ruby to JS)
This requires downloading several MB of code (and then caching it in-browser) so would be ideal for internal-only stuff.
- johnchristopher 4y agoPretty cool. (I changed the languages for privacy reasons but your solution still stands)
- exikyut 4y agoAh, well even if it's some super-obscure or internal thing, if it compiles down to C that doesn't mind POSIX you might still be able to Emscripten-ify it! (Part of my thinking with this solution is to broadcast "you are asking me to do something that requires a solution this complex to wrangle the problem space effectively" to try to fend off similar inanity in the future, admittedly, perhaps I'm being a bit optimistic/unrealistic heh.)