-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export Wasm globals ? #30
Labels
Comments
I can implement that quickly, as I did for |
That would be great! In the meantime I put a workaround in place but not
very elegant (basically I export a function that returns the value of the
global).
Side question too: is there a way from the Ruby extension to **import** a
function in the wasm module that you can then call from the wasm code ?
Thanks!
Laurent
…On Wed, Feb 5, 2020, 17:14 Ivan Enderlin ***@***.***> wrote:
I can implement that quickly, as I did for python-ext-wasm in
wasmerio/wasmer-python#120
<wasmerio/wasmer-python#120>. Would it fit your
needs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAED4PQ3NCGWMXVQN3JOELRBLQVFANCNFSM4KONNBEQ>
.
|
See #32 for the Global API. To answzer your side question: For the moment, no, we need to support polymorphic host functions in Wasmer (the Wasmer runtime) directly. I'm working on it, since it will unblock host functions support in Ruby. |
Hi Ivan,
Are you thinking of releasing the wasmer rubygem 0.3.1 with this new
feature for globals or there is just no need for it ?
Thanks!
…On Fri, Feb 7, 2020 at 3:20 PM Ivan Enderlin ***@***.***> wrote:
Closed #30 <#30> via #32
<#32>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#30>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAED4NISBAHNNAK6275L5LRBVU3VANCNFSM4KONNBEQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hi there,
It is unclear to me whether one can access exported Wasm globals with ruby-ext-wasm. I tried and I got some kind of weird errors when instatiating a wasm module with exported globals like "global must be a const" (although the wasm code was perfectly valid)
Thanks!
The text was updated successfully, but these errors were encountered: