News for hackers. Stuff that matters.
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.