I didn't think a lot about what interface Wagyu should implement. Now that we have Wasmer, we can use their interface. https://github.com/wasmerio/ruby-ext-wasm API documentation https://github.com/wasmerio/ruby-ext-wasm#api-documentation * [ ] Instance * [ ] new(bytes) => Instance * [ ] new(bytes, import_object) => [Unsupported] * [ ] #exports => ExportedFunctions * [ ] #memory => Memory * [ ] ExportedFunctions * [ ] #respond_to_missing? * [ ] #method_missing => [call the function] * [ ] Memory * [ ] #uint8_view => Uint8Array << MemoryView * [ ] #int8_view => Int8Array << MemoryView * [ ] #uint16_view => Uint16Array << MemoryView * [ ] #int16_view => Int16Array << MemoryView * [ ] #uint32_view => Uint32Array << MemoryView * [ ] #int32_view => Int32Array << MemoryView * [ ] #grow => [Unsupported](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory/grow) * [ ] MemoryView << Enumerable * [ ] #bytes_per_element * [ ] #length * [ ] #[]= * [ ] #[] * [ ] #each * [ ] Module * [ ] #validate => true/false * [ ] ImportObject [Unsupported] * [ ] Table [Unsupported](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Table)
I didn't think a lot about what interface Wagyu should implement. Now that we have Wasmer, we can use their interface.
https://github.com/wasmerio/ruby-ext-wasm
API documentation https://github.com/wasmerio/ruby-ext-wasm#api-documentation