News for hackers. Stuff that matters.
Re:A proposal to add signals to JavaScript by bastawhiz on Monday April 01, 2024 @03:57PM (#39898461)
Let me offer you a scenario: you want to build a UI web component that uses state, but you want it to be usable in both Svelte and React (with solidjs). The current situation is that it's a massive pain in the ass, because you have to move all of the state out of your code into a "driver" module that you can swap out for each of the frameworks you want to target. The entire architecture of your library is made worse (less readable/maintainable, probably less performant, harder to contribute to) in order to have a single set of UI code.

All of that goes away when the plumbing for handling state is standardized by the runtime.

Re:A proposal to add signals to JavaScript by imbnwa on Monday April 01, 2024 @05:45PM (#39899753)
Perhaps Svelte, Solid, React, et al should form a working group and hammer out an interopt standard