News for hackers. Stuff that matters.
Re:The TypeScript compiler is now implemented internally wit... by speedgoose on Wednesday November 02, 2022 @02:42PM (#33440891)
I think tooling of one programming language should be written in the programming language. Otherwise the community will hardly be involved.

All these rust tools may be slight faster, but typescript developers will not learn rust to improve the typescript compiler.

Re:The TypeScript compiler is now implemented internally wit... by berkes on Wednesday November 02, 2022 @03:16PM (#33441441)
If you think of typescript as "tooling" that makes sense.

But if you think of it as compiler, or transpiler, not so much. Python, Ruby etc "compilers" (runtimes, really) aren't written in Python or Ruby. Or rather, there are alternatives around, but they aren't the fastest nor the best. Such "tools" are built in C. As are compilers for C++, Rust or most languages really.

Re:The TypeScript compiler is now implemented internally wit... by speedgoose on Wednesday November 02, 2022 @03:39PM (#33441787)
I understand your point. Compilers and interpreters are traditionally written in C/C++, but we don't have to do the same than before.
Re:The TypeScript compiler is now implemented internally wit... by llanowarelves on Wednesday November 02, 2022 @02:47PM (#33440984)
What's the conversion rate on that though?

For smaller languages that are much less supported that makes much more sense.

For bigger languages we treat it much more as a black box.

Re:The TypeScript compiler is now implemented internally wit... by satvikpendem on Wednesday November 02, 2022 @05:43PM (#33443308)
> but typescript developers will not learn rust to improve the typescript compiler.

Why not? TS has much more in common with Rust than with JS, in terms of typing. Compiler engineers are not that prevalent in the community, but they are much more prevalent in the systems engineering world which Rust is a part of, so I'd assume it's actually more beneficial to have a compiler in Rust than in TS because it would mean more people interested in contributing.

Re:The TypeScript compiler is now implemented internally wit... by shepherdjerred on Wednesday November 02, 2022 @08:34PM (#33445018)
> TS has much more in common with Rust than with JS, in terms of typing.

TS has much more in common with JS than it does with Rust in every other comparison

Every TS dev will know at least a little bit of JS. Not every TS dev will know Rust at all. They're very different languages.

Re:The TypeScript compiler is now implemented internally wit... by satvikpendem on Wednesday November 02, 2022 @08:51PM (#33445171)
Compiler engineers will be far more familiar with Rust, C++, C and other similar languages than with JS, so it doesn't really matter whether TS and JS are similar as long as compiler engineers can use their preferred language to build the compiler.