(no title)
pseudopersonal | 11 months ago
"To meet those goals, we’ve begun work on a native port of the TypeScript compiler and tools. The native implementation will drastically improve editor startup, reduce most build times by 10x, and substantially reduce memory usage."
kaoD|11 months ago
It's hard to tell if there will even be a runtime that somehow uses TS types to optimize even further (e.g. by proving that a function diverges) but to my knowledge they currently don't and I don't think there's any in the works (or if that's even possible while maintaining runtime soundness, considering you can "lie" to TS by casting to `unknown` and then back to any other type).
dec0dedab0de|11 months ago
Just like if you said faster C++ that could mean the compiler runs faster, or the resulting machine code runs faster.
Just because the compile target is another human readable language doesn’t mean it ceases to be a typescript program.
I didn’t think this particular example was very ambiguous because a general 10x speed up in the resulting JS would be insane, and I have used typescript enough to wish the compiler was faster. Though if we’re being pedantic, which I enjoy doing sometimes, I would say it is ambiguous.
pseudopersonal|11 months ago
https://betterstack.com/community/guides/scaling-nodejs/node....
jilles|11 months ago
pzo|11 months ago
maxloh|11 months ago
Yeah, that exists. AssemblyScript has an AOT compiler that generates binaries from statically typed code.
seanmcdirmid|11 months ago
Typescript's type system is unsound so it probably will never be very useful for an optimizing compiler. That was never the point of TS however.
xanth|11 months ago
pas|11 months ago
unknown|11 months ago
[deleted]
fabian2k|11 months ago
hexomancer|11 months ago
I don't think that is too far fetched either since typescript already has most of the type information.
gr__or|11 months ago
https://youtu.be/0mCsluv5FXA
pseudopersonal|11 months ago
ggus|11 months ago
hansifer|11 months ago
mmcnl|11 months ago
Etheryte|11 months ago
alpaca128|11 months ago
It would be possible that MS wrote a TypeScript compiler that emits native binaries and that made the language 10x faster, why not?
wendyshu|11 months ago
zamadatix|11 months ago
surajrmal|11 months ago
darknavi|11 months ago
9rx|11 months ago
Except in the case of Doom, which can run on anything.
rs186|11 months ago
lordofgibbons|11 months ago
dimitropoulos|11 months ago
pseudopersonal|11 months ago
legohead|11 months ago
I agree with pseudopersonal in that the title should be changed. technically it's not misleading, but not everyone uses or is familiar with typescript.
k__|11 months ago
jasonjmcghee|11 months ago
dcre|11 months ago
unknown|11 months ago
[deleted]
hinkley|11 months ago
hot_gril|11 months ago
_ink_|11 months ago
unknown|11 months ago
[deleted]
TechSquidTV|11 months ago