News for hackers. Stuff that matters.
Re:The Concise TypeScript Book by Tade0 on Sunday January 11, 2026 @06:57AM (#46574916)
Same could be said about Java Applets or Flash and, in a way, about Elm. We've been there and this approach doesn't work.

The creators of TypeScript realized early on that people don't need yet another ecosystem, but a migration path that won't pause development.

Re:The Concise TypeScript Book by phplovesong on Sunday January 11, 2026 @07:51AM (#46575309)
Thats true, but comes with a cost. TS has become an incredibly complex language, even it only provides types. Thats being said is will always lack features as it only "javascript".

Haxe has a more robust, but simpler typesystem, that comes from ocaml.

Haxe also compiles to C++ so making native tools would have been a breeze.

TS sits at the top chair, but there is many "better" options out there, like Elm (even its kild of a dead languge) and ReScript/ReasonML etc.

TS is good, but will never be a perfect language for javascript. It will always be a mediocre option, that is growing more and more complex in every new release.

Re:The Concise TypeScript Book by Tade0 on Sunday January 11, 2026 @09:51AM (#46576195)
Yes, amazing language - I recall having a look at it in 2013 when I was scrambling for a replacement for Flash (also amazing platform). Shame it doesn't solve the problem at hand.

Hardly anyone cares TypeScript isn't perfect when they can migrate their (or anyone else's) terrible, but business-critial JS library to TS and continue development without skipping a beat.

For the same reason ReasonML took years to overtake fartscroll.js in the number of stars on GitHub.

A huge part of TS's complexity is there so that library authors can describe some exotic behaviours seen normally only in dynamically-typed languages. When you're writing an app you don't need the vast majority of those features. Personally I regret every usage of `infer` in application code.

Re:The Concise TypeScript Book by Timon3 on Sunday January 11, 2026 @03:16PM (#46579548)
> For the same reason ReasonML took years to overtake fartscroll.js in the number of stars on GitHub.

Wow, that's a fascinating statistic! Certainly puts the popularity delta into a different light.

On a separate note, the fartscroll.js demo page[0] no longer works since code.onion.com is no longer accessible. Truly disappointing. Luckily their release zip contains an example.html!

[0]: https://theonion.github.io/fartscroll.js/

Re:The Concise TypeScript Book by Tade0 on Sunday January 11, 2026 @04:27PM (#46580297)
Well, it was actually slightly less than two years:

https://www.star-history.com/#theonion/fartscroll.js&reasonm...

I remember the hype back when it was released, though. You don't hear much about it any more.

Re:The Concise TypeScript Book by phplovesong on Monday January 12, 2026 @04:26AM (#46586057)
Is this a serious take? Do we now measure popularity based on github stars? Thats sort of like measuring how good software is by the amount of LOC.