Hacker News new | ask | show | jobs
by pjmlp 665 days ago
Yet, type annotations are being discussed for JavaScript, eventually the browsers will be running Typescript.
2 comments

I thought I read somewhere that the Chrome team tried typed JS, found out that there was a performance hit, and they ended the experiment? Is this a continuation of that or a new effort? Sounds interesting.
Maybe as part of the Flutter/Dart sales story?

Here is the current status of the standard proposal.

https://tc39.es/proposal-type-annotations/

The browsers are already running anything via custom WASM interpreters, like Pyodide for Python.
With a huge performance hit and leaky abstractions.