News for hackers. Stuff that matters.
Re:Why the New V8 Is So Damn Fast by solidr53 on Tuesday July 31, 2018 @01:54AM (#17650853)
Yeah, I've always wondered this too. It would be cool to be able to extract typings in a separate file, like source maps, and send over the wire along with the JavaScript bundle (for compatibility).

It would definitely help moving sections of the code up the tier ladder, not unlike Web Assembly.

I even predict that future typescript versions would include stricter typings optimized for an browser to solve problems like others have mentioned in the thread.

Or just a TypeScript engine in the browser, like ehm Dartium. I guess someone at Microsoft already did this on IE in a hackathon or something.

Re:Why the New V8 Is So Damn Fast by the_duke on Tuesday July 31, 2018 @06:37AM (#17652003)
I'd much prefer that optional type annotations make it into the spec, like they did for Python and PHP.
Re:Why the New V8 Is So Damn Fast by mxkxkucikf on Tuesday July 31, 2018 @08:33AM (#17652625)
Typescript being a superset of javascript does allow optional type annotations. RTFM.
Re:Why the New V8 Is So Damn Fast by syspec on Tuesday July 31, 2018 @08:37AM (#17652644)
i think they mean, make it into the JS spec.
Re:Why the New V8 Is So Damn Fast by yipbub on Tuesday July 31, 2018 @08:55AM (#17652733)
RTF-OP