Skip to content
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

WASM extension #9

Open
maelp opened this issue Jan 25, 2024 · 3 comments
Open

WASM extension #9

maelp opened this issue Jan 25, 2024 · 3 comments

Comments

@maelp
Copy link

maelp commented Jan 25, 2024

Very nice work, would it be possible to create a WASM extension to use it in duckdb-wasm?

@ywelsch
Copy link
Owner

ywelsch commented Jan 25, 2024

I had experimented with this a couple of weeks ago, but ran into trouble compiling the code with emscripten. The PRQL compiler that I'm embedding in this DuckDB C++ extension is written in Rust, and the WASM compilation toolchain was running into linker issues when (statically) linking some Rust libraries.

I will give it another look, as I agree that this would be a great feature to have.

@max-sixty
Copy link

(@ywelsch if there's anything we can do to make this easier on the PRQL side, let us know!)

@eitsupi
Copy link

eitsupi commented May 8, 2024

FYI, prqlc-r supports be compiled to the emscripten target with like this:
https://github.com/PRQL/prqlc-r/blob/0c162fe3a30de791a44c110514f7d83f5c91a9d3/src/Makevars.in#L35-L44

However, it cannot be built with the recent nightly toolchain due to an outdated dependency crate (PRQL/prqlc-r#261).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants