Hi!
Thank you for creating very useful library.
Motivation
I am building a tool as a hobby to call WebAssembly functions generated by Crystal language from Ruby to speed up. When I tried to pass a Ruby array to Wasm, I noticed that int64_view, uint64_view, float32_view, and float64_view were not yet provided.
Proposed solution
new methods: uint64_view, int64_view, float32_view, and float64_view
new classes Uint64View, Int64View, Float32View, and Float64View
Alternatives
The use of binary strings is a possible alternative. In that case, Ruby methods such as pack and unpack could be used.
Additional context
You can find similar functionality in Python bindings.
wasmerio/wasmer-python@b484654
Hi!
Thank you for creating very useful library.
Motivation
I am building a tool as a hobby to call WebAssembly functions generated by Crystal language from Ruby to speed up. When I tried to pass a Ruby array to Wasm, I noticed that
int64_view,uint64_view,float32_view, andfloat64_viewwere not yet provided.Proposed solution
new methods:
uint64_view,int64_view,float32_view, andfloat64_viewnew classes
Uint64View,Int64View,Float32View, andFloat64ViewAlternatives
The use of binary strings is a possible alternative. In that case, Ruby methods such as
packandunpackcould be used.Additional context
You can find similar functionality in Python bindings.
wasmerio/wasmer-python@b484654