CUE and WebAssembly (Wasm)
This is an umbrella tracking issue for WebAssembly support in CUE.
Details to follow, but initial exploration is linked to #2007.
If you'd like to provide use cases and/or feedback on potential use of Wasm with CUE, please post to the discussion at https://github.com/cue-lang/cue/discussions/2045.
For folks following along here, apologies we forgot to add notice of the CUE + Web Assembly Focus Session Call. It was well advertised elsewhere, but we failed to join the dots here.
As we discussed in several community calls, we're pausing Wasm developement until the Wasm ecosystem matures, in particular, we're waiting for the Component Model.
Will there be an alternate way to do custom functions?
We are open to the idea, although we don't have a concrete design in mind yet. Care to share an experience report, or a simple feature request?
Would using an abstraction layer like extism help for integration of wasm? Then cue using wasm/wasi/wasipx wouldn't depend too much on their versions but more on the implementation in extism. https://github.com/extism/go-sdk
In case useful: https://github.com/dclareio/cue-wasm
Quick heads-up for folks finding this thread via other routes. Per our Community Call updates, the CUE + WASM effort is on pause. In particular, the work to use WASM as a cross-language bridge for embedding the evaluator is currently on hold.
Some context on that decision:
• Ongoing flux in the WASM/WASI/WIT/component model standards landscape.
• The approach depends on cue-lang/cue#2007, which we consider a critical requirement.
• That strand was also gated on eval v3 landing (which it now has).
As ever, we’re happy to re-evaluate priorities—if there’s renewed interest or concrete use cases here, please shout.