Structs in JS might change everything
JavaScript is considering a new proposal that introduces structs, which resemble a feature in languages like Rust. This proposal aims to enhance performance by allowing fixed-layout objects and shared memory, enabling JavaScript to be competitive with languages like Go and Rust in concurrency. The proposal includes features like unshared and shared structs, mutexes, and unsafe blocks for managing multi-threading. These changes could significantly benefit complex web development, high-performance applications, and tools that require concurrent processing. However, it's important to handle these features carefully to avoid common pitfalls in multi-threaded programming.