Re:Wasmer: A Python library for executing WebAssembly binaries
by jononor on Tuesday April 16, 2019 @06:19AM
(#19672405)
Once you allow to call Python, keeping things sandboxed becomes pretty hard, doesn't it?
Re:Wasmer: A Python library for executing WebAssembly binaries
by Hywan on Tuesday April 16, 2019 @02:32PM
(#19676090)
That's true. However, it allows to integrate your Wasm program to your favorite framework more easily. It's likely to be a small surface of code to review carefully. It's always a balance :-).
Re:Wasmer: A Python library for executing WebAssembly binaries
by tracker1 on Tuesday April 16, 2019 @03:42PM
(#19676639)
It's often for code that is asynchronous that will not return an answer immediately... the function passing is most often used to send a callback for these situations.
Re:Wasmer: A Python library for executing WebAssembly binaries
by jononor on Thursday April 18, 2019 @10:14AM
(#19691136)
A state-machine, generator or coroutine can be used instead of callbacks.
I mostly prefer only having one direction of who-calls-who when combining multiple languages. Though I understand that for a general purpose system like Wasmer it makes sense to support everything, so that users can choose the architecture.
Re:Wasmer: A Python library for executing WebAssembly binaries
by indentit on Tuesday April 16, 2019 @02:15AM
(#19671507)
understood, thanks for the explanation - keep up the great work! is there anything external contributors can do to help? :)
I didn't find any issues labelled "good first issue" but I did find a related issue[0]
Re:Wasmer: A Python library for executing WebAssembly binaries
by Hywan on Tuesday April 16, 2019 @02:34PM
(#19676100)
The best way to help right now is to test it, and report any issues! I've been able to try it on Windows so far for instance.
Also the API isn't complete. We need to be able to grow the memory for instance. We need to understand the community needs to define a roadmap for the community itself.
Cranelift is the easiest one to embed, and it brings a great balance between compilation time and execution time. That's the one used in the Python extension right now.
The “import functions” feature is also missing in the PHP extension (https://github.com/wasmerio/php-ext-wasm), but yeah, as I said, we are working on it. It's coming soon!