Skip to content

Move to Wasmer's interface #6

Description

@edvakf

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
  • MemoryView << Enumerable
    • #bytes_per_element
    • #length
    • #[]=
    • #[]
    • #each
  • Module
    • #validate => true/false
  • ImportObject [Unsupported]
  • Table Unsupported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions