News for hackers. Stuff that matters.
Re:First look: adding type annotations to JavaScript by afavour on Thursday March 10, 2022 @09:45AM (#30627483)
> They're due to an ecosystem which refuses to recoginze the realities of compilation and add first class support for it.

IMO this is the correct path. Compilation should result in WebAssembly and it seems like the tooling is finally getting there.

Re:First look: adding type annotations to JavaScript by dmitriid on Thursday March 10, 2022 @09:52AM (#30627559)
> Compilation should result in WebAssembly

It... It really shouldn't. Especially not if the target is the browser as the bridge between WebAssembly and the rest of the browser is still "just pass these arrays of integers around".

Re:First look: adding type annotations to JavaScript by jeremyjh on Thursday March 10, 2022 @11:01AM (#30628402)
I do not think that is a goal of either project; I’m not even aware of a POC JavaScript to WASM compiler. AssemblyScript couldn’t work without strong typing semantics and doesn’t support many typescript features.