-
Notifications
You must be signed in to change notification settings - Fork 183
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
Question: WebAssembly support #107
Comments
Hi @writepubapp, The iOS runtime is based on the ChakraCore engine, which at the version we currently have (node-chakracore 8.6.0) has WebAssembly disabled for cross-platform builds, so WebAssembly is not on in the released binary. WebAssembly is working for Android, confirmed by trying to run this test: nodejs/node@74e7a4a In terms of working features for WebAssembly, unit tests for WebAssembly features on node were added after the current fork version, so we don't have more in-depth information of what's working or not. Please let us know if you give it a try and what results you have. In terms of safety for mobile devices, it seems to have been disabled for Android mobile browsers as well. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#Browser_compatibility (See implementation notes) |
@jaimecbernardo - thank you for the detailed response.
Thank you for all the clarifications. Great product! Cheers |
Hi @writepubapp ,
Thank you! I hope this is helpful. |
Any news regarding this? I've a project where I need to compute en/decryption with nodejs and I'm already grinding my teeth about how much pain it will be performance-wise. WASM could help with these types of workloads a lot. |
Hi @markopolojarvi , This can be re-evaluated once the update to 10.x LTS hits: #156 |
Hey everyone. Now that this release has happened, WebAssembly still does not appear to be available in iOS. It would be great to be able to use WebAssembly in the node environment! |
Hi @notatestuser, On iOS, WebAssembly is not supported yet, since ChakraCore currently enables WASM only if running on |
Understood. Thank you!
…________________________________
From: Jaime Bernardo <notifications@github.com>
Sent: Monday, September 23, 2019 9:08 pm
To: JaneaSystems/nodejs-mobile
Cc: Luke Plaster; Mention
Subject: Re: [JaneaSystems/nodejs-mobile] Question: WebAssembly support (#107)
Hi @notatestuser<https://github.com/notatestuser>,
On iOS, WebAssembly is not supported yet, since ChakraCore currently enables WASM only if running on x86/x86_64 and JIT is enabled. This didn't change with the 10.x LTS release.
https://github.com/janeasystems/nodejs-mobile/blob/2101f2096d59d2a081f64da2f10fd7385222ac8a/deps/chakrashim/core/lib/Common/CommonDefines.h#L714-L722
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#107?email_source=notifications&email_token=AAJST5RP22SAAX3RU2CNYTDQLC5VHA5CNFSM4FPHFIA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7KZKAQ#issuecomment-534091010>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAJST5Q5H27BV72CXBKWYNTQLC5VHANCNFSM4FPHFIAQ>.
|
Hey Any updates on wether web Assembly will be available on iOS. Or if not can anyone point me to some alternative for webAssembly. |
Even on V8, WebAssembly functionalities depend on JIT being enabled. And iOS Guidelines forbid use of JIT. |
Is WebAssembly supported on
If supported, can you please comment on pthread support. See this for context - SharedArrayBuffer may cause issues for browsers, but enabling it in node for mobile should be perfectly safe as the sandboxing is done by the host OS (either iOS or Android)
The text was updated successfully, but these errors were encountered: