cue icon indicating copy to clipboard operation
cue copied to clipboard

CUE and WebAssembly (Wasm)

Open myitcv opened this issue 3 years ago • 6 comments

This is an umbrella tracking issue for WebAssembly support in CUE.

Details to follow, but initial exploration is linked to #2007.

myitcv avatar Oct 24 '22 13:10 myitcv

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.

4ad avatar Oct 25 '22 15:10 4ad

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.

myitcv avatar Sep 15 '23 04:09 myitcv

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.

4ad avatar May 15 '24 15:05 4ad

Will there be an alternate way to do custom functions?

AndrewSav avatar May 16 '24 04:05 AndrewSav

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?

4ad avatar May 16 '24 11:05 4ad

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

yoktobit avatar Oct 06 '24 20:10 yoktobit

In case useful: https://github.com/dclareio/cue-wasm

keeganmccallum avatar Jul 12 '25 16:07 keeganmccallum

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.

myitcv avatar Sep 01 '25 11:09 myitcv