r/javascript • • Apr 16 '24

JavaScript Signals standard proposal

https://github.com/proposal-signals/proposal-signals
6 Upvotes

19 comments sorted by

View all comments

5

u/fagnerbrack Apr 16 '24

If you want a TL;DR:

This proposal introduces signals to JavaScript, aiming for a common direction akin to Promises/A+, focusing on ecosystem alignment for potential standardization. Originating from collaborations among authors of frameworks like Angular, Vue, and React, it seeks to define core semantics rather than developer-facing APIs, intending signals for underlying framework construction rather than direct application use. Early prototyping and integration into frameworks are planned before progressing beyond Stage 1, emphasizing suitability and benefits over existing framework-provided signals. Signals aim to simplify UI state management, offering an infrastructure for efficient state synchronization without the repetitive boilerplate, demonstrating potential through examples contrasting traditional JavaScript with proposed signals usage. The document outlines interoperability, performance, dev tools support, and standard library benefits as motivations, with an extensive API sketch provided for further development.

If you don't like the summary, just downvote and I'll try to delete the comment eventually 👍

Click here for more info, I read all comments

-1

u/[deleted] Apr 16 '24

Cool idea! Since you're aiming for ECMAScript, make sure it's a JavaScript polyfill. All of the polyfill's source code files are TypeScript files (`*.ts`). It looks like you've done some but not all of the conversion in the repo. Just wanted to point it out though.

1

u/jessepence Apr 16 '24

Lol, I really appreciate your positive attitude, but you're a little off-base here. This dude doesn't actually do anything of importance himself. He just spams all the programming subreddits with his AI gibberish.

Look at who owns the repository. This is as official as it gets. It's a collective effort with major contributions from the Angular, Wiz, Solid, Svelte, Ember, and Vue teams.

Also, if this hasn't been enough of a wake-up call, TypeScript is a first class citizen in the JS world these days. It's a pretty critical part of the EcmaScript process with all stage 3 proposals being implemented in TS first.

1

u/[deleted] Apr 16 '24

TypeScript is definitely not a first class citizen. It's a proprietary Microsoft library meant to hold the hands of C#, .NET, and Java devs when they begin working in a dynamically typed language such as JavaScript in the name of making it "easier to work with" instead of actually learning how to read and write JavaScript.

0

u/jessepence Apr 16 '24

Cool story, bro. I think you slightly misspelled "Ah, I see how I was mistaken! Thank you for correcting me. I suppose that maybe I don't know better than the actual members of TC39 about the current state of JavaScript, so perhaps I shouldn't act like some grand arbiter of the language."

Have a good day! 🙂

1

u/[deleted] Apr 16 '24 edited Apr 16 '24

I wasn't mistaken, this proposal has no legs. Next time don't assume the TC39 members know the problem they are "solving" when it's just more syntactic sugar bloating the language. This sort of logic is why we have frameworks. It doesn't belong in the Lang. The "arbiters" should know better, but they obviously don't care.