Web Playground with WASM #9834
Replies: 5 comments 12 replies
-
My opinion is that the WASM bindings have two primary usecases:
Thus I would personally suggest focusing first on the SQL API (as it has the lowest surface area) and then maybe the dataframe API |
Beta Was this translation helpful? Give feedback.
-
BTW: What would you think about moving your playground to https://github.com/datafusion-contrib (I can set you up a repo there with full admin rights) ? I think that might allow more people to find and potentially contribute to your project if that is something you are interested with |
Beta Was this translation helpful? Give feedback.
-
Hi @waynexia . Super nice project! I've been looking at your project and trying to build something similar. I'm running into some performance issues that I noticed you've handled better in your datafustion playground. I'm building with Rust on both sides - a wasmtime host that loads a WASM module (also in Rust, using DataFusion). I've got a .wit file for the interface and I'm building with The thing is, my WASM file ends up at 46MB, and wasmtime takes about 3 minutes just to get the native code ready to run. I was poking around your playground and noticed your WASM file is quite a bit smaller (32MB) and runs way faster. Any chance you could share what you did to get those better numbers? |
Beta Was this translation helpful? Give feedback.
-
I am trying to consolidating various WASM related improvements here: Let's move additional discussion there |
Beta Was this translation helpful? Give feedback.
-
@findepi filed a ticket to discuss making a playground like this part of DataFusion |
Beta Was this translation helpful? Give feedback.
-
Hi! I've made a WASM binding for DataFusion (https://github.com/waynexia/datafusion-wasm) and a Web Playground based on it (repo, demo)
It now supports basic queries (like
create
,insert
,select
andexplain
). Generally speaking, DataFusion works pretty well in WASM!My definition of this Web Playground is something like DuckDB WASM, or the
datafusion-cli
in browser. But not sure about what the shape ofdatafusion-wasm
binding should be. I.e., expose as many APIs as possible like an embedded computing library, or just focus on the core SQL/DataFrame interface. I would like to hear feedback from you.Beta Was this translation helpful? Give feedback.
All reactions