News for hackers. Stuff that matters.
Re:Rewriting TypeScript in Rust? You'D have to be by hajile on Wednesday December 14, 2022 @02:36PM (#33988935)
People would benefit more from a stricter subset of JS that has decent performance characteristics and actually sound typing.
Re:Rewriting TypeScript in Rust? You'D have to be by AA-BA-94-2A-56 on Wednesday December 14, 2022 @05:14PM (#33991407)
I agree, but I can't help but think of that meme about there being N+1 standards. The introduction of a stricter subset of JS will make Javascript more complicated, not less. I hate that, because honestly Javascript and the web would benefit form removing a lot of the cruft.
Re:Rewriting TypeScript in Rust? You'D have to be by sli on Wednesday December 14, 2022 @06:23PM (#33992317)
> I hate that, because honestly Javascript and the web would benefit form removing a lot of the cruft.

This is the primary argument against worrying about N+1 standards. We know it's bad, if we simply do nothing at all, we know it will get worse. We can and should at least try.

Re:Rewriting TypeScript in Rust? You'D have to be by esprehn on Wednesday December 14, 2022 @09:26PM (#33994302)
As someone who's been part of the team who tried to do exactly this, I don't think it can work. Once you start subsetting things it quickly turns towards being "better" than the existing web, and soon all backwards compatibility is gone.

All those legacy features and existing pages are the back pressure that keeps the evolution of the web stable.

Re:Rewriting TypeScript in Rust? You'D have to be by solarkraft on Wednesday December 14, 2022 @07:22PM (#33993062)
"use stricter"
Re:Rewriting TypeScript in Rust? You'D have to be by scotty79 on Thursday December 15, 2022 @04:27AM (#33997130)
At this point any other language soundly typed or not is semantically a subset of JS (at most plus some of their weird thing, like Rust ownership and move semantics). You are free to pick one and let JS be JS in all its glory.