« *
@arv.tools
1
That would be a fun experiment. Shared Wasm structs would replace my hand-rolle…
@arv.tools
2
Any progress towards next stage?
@arv.tools
3
It sticks closely to the spec, and the docs list each place it differs. npm ins…
@arv.tools
4
The playground runs your program on 1, 2, 4 and 8 workers, so you can watch it …
@arv.tools
5
With TypeScript it goes further. Where the types prove that an object is a shar…
@arv.tools
6
How it works: the compiler turns struct syntax into plain JavaScript. Shared st…
@arv.tools
7
```js shared struct Counter { count = 0; lock = new Atomics.Mutex(); } ``` Pass…
@arv.tools
8
I built an implementation of the TC39 structs proposal that you can use today: …
@arv.tools
9
Try it in the browser, the TypeScript and the JS it compiles to side by side: t…
@arv.tools
#
More
Back a page
Bluesky home
☆ Save to home
·
0 Home
·
Find
·
Games
·
Chat
·
AI
·
Setup