Stream: jco

Topic: dom/browser wit interfaces?


view this post on Zulip Ramon Klass (Jan 21 2024 at 01:08):

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

view this post on Zulip Guy Bedford (Jan 21 2024 at 21:21):

@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

view this post on Zulip Guy Bedford (Jan 21 2024 at 21:22):

No one is currently working on this right now, so it is ripe for contribution.

view this post on Zulip Ramon Klass (Jan 21 2024 at 21:26):

oh boy, wit'ing all of js-sys and then some is a huge undertaking

view this post on Zulip Guy Bedford (Jan 22 2024 at 02:26):

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 :)

view this post on Zulip Ralph (Jan 22 2024 at 09:57):

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

view this post on Zulip Ralph (Jan 22 2024 at 09:58):

it'd have to be brought together and reviewed and become a "whole" of course, but progress could be made here.

view this post on Zulip Yoshua Wuyts (Jan 23 2024 at 15:59):

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

view this post on Zulip Yoshua Wuyts (Jan 23 2024 at 15:59):

This takes the WebIDL type system, and mechanically translates it to WIT

view this post on Zulip Yoshua Wuyts (Jan 23 2024 at 16:00):

It's not complete yet, but it's the first step in getting us there

view this post on Zulip DougAnderson444 | PeerPiper.io (Jan 26 2024 at 19:39):

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: Nov 22 2024 at 16:03 UTC