is it possible or maybe even planned to provide something like that wasi shims, but for dom and other browser apis? Those could be used for prototyping native apis
@Ramon Klass yes we should have something like this in JCO, I believe it should be in the core project as a Web Sys WIT
No one is currently working on this right now, so it is ripe for contribution.
oh boy, wit'ing all of js-sys and then some is a huge undertaking
well, if there are parts people are witting anyway, perhaps there's an incremental path. But yes a js-sys undertaking would be amazing, glad you are appreciating the gravity of it :)
this is a project I can get behind. It's not about tackling everything at once, but about finding those parts people are already doing, and throwing in a few extra helpers here and there
it'd have to be brought together and reviewed and become a "whole" of course, but progress could be made here.
Some of the required work for automatically translating the Web/DOM interfaces to WIT has already started: https://github.com/MendyBerger/webidl-wit/blob/main/README.md
This takes the WebIDL type system, and mechanically translates it to WIT
It's not complete yet, but it's the first step in getting us there
This has come up before, also see this thread where Alex weighed in:
https://bytecodealliance.zulipchat.com/#narrow/stream/223391-wasm/topic/.E2.9C.94.20wasm-bindgen.2Fwit-bindgen.20commonality/near/351092226
Last updated: Dec 23 2024 at 12:05 UTC