3 ms·
> Incremental compile time when changing files in cli/js takes minutes. This is crushingly slow and painful to modify. This is in my opinion the worst offender
by selfmodruntime 3y ago
> Incremental compile time when changing files in cli/js takes minutes. This is crushingly slow and painful to modify.
This is in my opinion the worst offender of TypeScript. TSC is insanely slow even in incremental mode for large code bases, and no alternative compiler exists. There are projects which can strip types and convert TS into JavaScript, but they do not check types.
Alternative implementations have been swatted down by TypeScript maintainers like Daniel Rosenwasser, with the leading argument being that the TS spec moves insanely fast and keeping two or more implementations up to spec would not be worth it due to the work it would require.
- capableweb 3y agoWell, if there would be multiple TypeScript implementations available, especially ones that are faster, Microsoft would suddenly lose their moat they gathered by getting TypeScript to be wildly used. Keeping the spec moving fast and breaking it with new updates servers multiple purposes, not only to make the language itself different, but to avoid competing implementations. When I say "spec" I main the Microsoft TypeScript implementation, as they don't actually maintain any actual specification anymore. > The spec is now an "archived" artifact and we won't be tracking defects against it anymore. - https://github.com/Microsoft/TypeScript/issues/15711 https://github.com/Microsoft/TypeScript/issues/15711
- selfmodruntime 3y agoWow. That is pretty bad.
- neodypsis 3y agoHave you heard of ReScript? Their website: https://rescript-lang.org/ https://rescript-lang.org/