Wondering if once the Component Model lands in Kot...
# webassembly
e
Wondering if once the Component Model lands in Kotlin, we'll be able to do what they're doing in this code example https://code.visualstudio.com/blogs/2024/05/08/wasm#_calling-typescript-from-webassembly-code
s
Interesting! It looks like it can already be done in
wasmJs
Kotlin without C-M if V8 version is recent enough. If I understood it correctly, C-M is currently used only for interop of between Wasm and manually written JS. Once VS Code APIs are exposed to C-M directly (WASI 0.3 timeframe) it would make sense to use C-M in Kotlin as well to build extensions directly with Wasm without JS.
e
Thanks! Microsoft is trying to decouple VSC from JS, and they're investigating support for other languages and not only for Rust.
AFAIK they're going to talk again about WASM in the short future. Having everything in WASM would definitely be cool.
The thing is VSC builds its foundations on the WASI spec, so it would be cool to compile using
wasmWasi
and not
wasmJs
s
Do you know where can we find more info about its decoupling from JS and building on top of WASI instead?
e
I don't have a specific link but I recall reading it on Reddit a while back. Currently the WASI experiment is done separately trough an additional extension https://github.com/microsoft/vscode-wasm
s
I had the impression from the article that WASI will be supported in addition to JS. Replacing it completely would be big.
e
Oh no no, they don't want to replace it entirely (it would be impossible considering the amount of third party stuff), but I suppose their goal is create an environment where everyone can use their preferred language.
It would be me a massive step forward. There is a lot of interest from the community, considering the pain it is to write JS stuff.