News for hackers. Stuff that matters.
Re:Future of TypeScript on ESLint by coldtea on Friday January 18, 2019 @05:27PM (#18943701)
I'd like to see at some point browsers treating TS as a typed JS variant, and using the hints to speed up things perhaps too.
Re:Future of TypeScript on ESLint by nicoburns on Friday January 18, 2019 @08:04PM (#18944579)
I think if you make things consistently typed (as typescript will help enforce), then your JS will run faster already. Because a lot of techniques JS JITs use are basically guessing the type of variables, and then bailing out into a slow path if it turns out they guessed wrong. Codebases like lodash make use of this, which is one reason why they're so fast.
Re:Future of TypeScript on ESLint by h1d on Friday January 18, 2019 @06:02PM (#18943960)
Would be nice if Chromium picks it up which can be propagated to Chrome and Safari on desktop and mobile and Edge then to nodejs and others will surely pick it up if those adopt it.
Re:Future of TypeScript on ESLint by koolba on Friday January 18, 2019 @09:05PM (#18944834)
That’d be terrible as the language version changes semantics.
Re:Future of TypeScript on ESLint by coldtea on Saturday January 19, 2019 @07:48AM (#18946761)
So same as with plain JS?