Replies: 3 comments 2 replies
-
We have a solid use case for WASM with Thema - grafana/thema#36. Basically, we want a Thema-specific CUE playground-ish environment, which lets us present the user with all the basic thema operations. (Essentially, the operations exposed via the Certainly, it would make docs like this one far more powerful - instead of asking people to run code generation, try out validation, etc., on their local, they can see it directly in the browser. But it would also enable us to do things like - just one example - update tutorials we write for configuring systems on the fly/in the browser, if their config file is written in Thema. It's important to note that we need to have some Go logic in there, not just pure CUE, because we can't express all the constraints/invariants required by Thema in native CUE, and because our code generators are written in Go. |
Beta Was this translation helpful? Give feedback.
-
We have a use case for WASM at DevX GitHub repo We want to execute custom pure functions inside CUE manifests (e.g. like list.Concat(...) ) to transform data. This will allow users of DevX to write custom configuration transformation functions in any language, compile them to WASM then call them from within DevX Transformers. The transformation functions are pure: data in -> data out, with a fixed input and output schema. I can also help with the implementation. |
Beta Was this translation helpful? Give feedback.
-
There may be a use case for WASM in Timoni or in CUE itself to support evaluating CEL expressions. Kubernetes uses CEL for validation in CRDs and eventually will use them for their native types, and the The CEL Playground project produces a WASM binary to run the validations, which could be used in Timoni modules to validate their CUE configs. The bigger picture idea is to support translating CEL validations to CUE equivalents when possible, but running them with WASM would be a seriously useful substitute for now. This is related to #2691. |
Beta Was this translation helpful? Give feedback.
-
This is an umbrella discussion where people can post their thoughts on how they'd hope or expect to use web assembly (Wasm) with CUE.
Beta Was this translation helpful? Give feedback.
All reactions