top | item 47120179

(no title)

rk06 | 7 days ago

> they are betting that JS-the-language is so broken that it cannot even host its own tools.

Evan wallace proved it by building esbuild. this is no longer bet.

> If their open platform were as powerful as it should be, it would be easy to use it to recreate the kinds of experiences they propose to sell.

you would be surprised to know that tech companies may find it cheaper to pay money than developer bandwidth for stuff beyong their core compentency.

dropbox was also considered to be trivially implementable, but end users rarely try to re-invent it.

discuss

order

lioeters|7 days ago

> esbuild

Another example is the TypeScript compiler being rewritten in Go instead of self-hosting. It's an admission that the language is not performant enough, and more, it can never be enough for building its own tooling. It might be that the tooling situation is the problem, not the language itself, though. I do see hopeful signs that JavaScript ecosystem is continuing to evolve, like the recent release of MicroQuickJS by Bellard, or Bun which is fast(er) and really fun to use.

MrJohz|6 days ago

I don't think that's necessarily a bad thing, though. JavaScript isn't performant enough for its own tooling, but that's just one class of program that can be written. There are plenty of other classes of program where JavaScript is perfectly fast enough, and the ease of e.g. writing plugins or having a fast feedback loop outweighs the benefits of other languages.

I quite like Roc's philosophy here: https://www.roc-lang.org/faq#self-hosted-compiler. The developers of the language want to build a language that has a high performance compiler, but they don't want to build a language that one would use to build a high performance compiler (because that imposes a whole bunch of constraints when it comes to things like handling memory). In my head, JavaScript is very similar. If you need a high performance compiler, maybe look elsewhere? If you need the sort of fast development loop you can get by having a high performance compiler, then JS is just the right thing.

pjmlp|6 days ago

Which also proves the point that not everything needs to be Rust.