ruby.wasm
ruby.wasm copied to clipboard
ruby.wasm is a collection of WebAssembly ports of the CRuby.
``` $ rake npm:ruby-head-wasm-wasi ... npx jco transpile --no-wasi-shim --instantiation --valid-lifting-optimization /home/user/ruby.wasm/packages/npm-packages/ruby-head-wasm-wasi/tmp/ruby.component.wasm -o /home/user/ruby.wasm/packages/npm-packages/ruby-head-wasm-wasi/dist/component npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/jco - Not found npm...
We should report better error message for type conversion failure e.g. ```ruby Set.new([1]).include?(JS::True) ```
Can we use gems with native extensions? I've read somewhere that it is possible, and it makes sense for it to be possible. However, I'm struggling to get even a...
In the FAQ currently we have code like this: $stdout = Object.new.tap { |obj| def obj.write(i) JS.global[:document].write(i) end } Then we can simply use puts, which is convenient. But how...
`VALUE` might be changed while GC compaction with `GC.compact`
It seems the current working directory is /, in ruby.wasm. By default this appears to be empty - I tried via Dir['*']. I also don't seem to be able to...
I suggest a new FAQ entry e. g. dealing with ruby gems via ruby.wasm. Now, I assume right now this is not possible - that is ok. Please mention it...
The underlying build system of `rbwasm build` is quite messy. 1. Each build step has to have its ad-hoc up-to-date check like followings: https://github.com/ruby/ruby.wasm/blob/a5d06a01873130fda0f07f4401a3b018c6f1d753/lib/ruby_wasm/build/product/baseruby.rb#L26 https://github.com/ruby/ruby.wasm/blob/a5d06a01873130fda0f07f4401a3b018c6f1d753/lib/ruby_wasm/build/product/crossruby.rb#L171 2. Uses of build product...
The current Ruby.Wasm is written with separate implementations for Node and Browser. I can see considerable ingenuity and hard work. Thank you for all the work you have done. Now,...