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 orprqlc
could 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.
prqlc
could have a--format=wat
option for thecompile
command which would transform the PL AST into WebAssembly text format (a.wat
file) which a tool such as aswat2wasm
could translate into a binary.wasm
file.Example:
Beta Was this translation helpful? Give feedback.
All reactions