Get the latest tech news

Proposal: JavaScript Structs


JavaScript Structs: Fixed Layout Objects. Contribute to tc39/proposal-structs development by creating an account on GitHub.

This proposal is both intended as an incremental step towards higher-level, easier-to-use (e.g. data-race free by construction) parallelism abstractions as well as an escape hatch for expert programmers who need the expressivity. JS structs is also a good foundation for reflecting into Wasm as WasmGC objects, but that is currently left as future work as it may need a typed field extensions to be worthwhile. Structured overlays are fundamentally about aliasing memory, which we feel is both a different problem domain, has significant performance downsides, and sufficiently solvable today in userland.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of javascript

javascript

Photo of proposal

proposal

Related news:

News photo

Show HN: Tenno – Markdown and JavaScript = a hybrid of Word and Excel

News photo

Tiny Texture Tumbler – JavaScript procedural texture library and editor

News photo

Type-erased generic functions for C: A modest non-proposal