Compiling queries into WebAssembly #4983
vanillajonathan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know how feasible this is. It is a pretty wild idea, maybe it wouldn't be possible.
PRQL could ship a
prql.wit(Wasm Interface Type) file orprqlccould provide a command to output it. Perhaps it would look something like this:A implementer could provide an implementation of that interface and insert it into a WASI host environment.
prqlccould have a--format=watoption for thecompilecommand which would transform the PL AST into WebAssembly text format (a.watfile) which a tool such as aswat2wasmcould translate into a binary.wasmfile.Example:
Beta Was this translation helpful? Give feedback.
All reactions