Stream: general

Topic: load dynamic libraries


view this post on Zulip Almog Baku (Jun 30 2022 at 13:20):

Hi,
Is it possible to link a dynamic library to a wasm module?

view this post on Zulip bjorn3 (Jun 30 2022 at 16:19):

@Almog Baku Do you mean with the dynamic library also being a wasm module or using a native dynamic library from a wasm module?

view this post on Zulip Almog Baku (Jun 30 2022 at 17:10):

I'm trying to achieve something like this https://github.com/pyodide/pyodide/blob/main/src/js/load-package.ts#L302

Pyodide is a Python distribution for the browser and Node.js based on WebAssembly - pyodide/load-package.ts at main · pyodide/pyodide

view this post on Zulip Almog Baku (Jun 30 2022 at 17:10):

and trying to load these dynamic libs so the python will be able to use them

view this post on Zulip bjorn3 (Jun 30 2022 at 18:53):

Wasm dylibs requires toolchain support. Emscripten supports it, but is only suitable for the web. Without using emscripten neither clang nor rustc support wasm dylibs.

view this post on Zulip Almog Baku (Jun 30 2022 at 19:44):

hmm... what's the alternative?

view this post on Zulip bjorn3 (Jul 01 2022 at 09:02):

Static linking?


Last updated: Dec 23 2024 at 13:07 UTC