Live data from Hacker News

Static TypeScript: A Static Compiler for the TypeScript Language

microsoft.com

11–20 of 57 posts

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#11

This language is quite striking! TypeScript is a superset of JS but here we're going from the other direction. Make a language that is only the TypeScript extensions to JS, and drop all the JS parts. No Object (!!), no Date, TypedArray, RegExp, almost all the mainstays are gone. It's Java 1.0: static offsets and vtables. This feels like the beginning of TypeScript throwing its weight around. It has the momentum to su…

The only reason typescript has gotten the massive adoption is because its a superset of JS. If you remove the js part then it wont grow anymore!

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#12

This language is quite striking! TypeScript is a superset of JS but here we're going from the other direction. Make a language that is only the TypeScript extensions to JS, and drop all the JS parts. No Object (!!), no Date, TypedArray, RegExp, almost all the mainstays are gone. It's Java 1.0: static offsets and vtables. This feels like the beginning of TypeScript throwing its weight around. It has the momentum to su…

The only reason typescript has gotten the massive adoption is because its a superset of JS. If you remove the js part then it wont grow anymore!

It worked pretty well for C++.

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#13
post #12

Earlier quoted context omitted.

The only reason typescript has gotten the massive adoption is because its a superset of JS. If you remove the js part then it wont grow anymore!

It worked pretty well for C++.

would it work in 2019 though?

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#14
post #12

Earlier quoted context omitted.

It worked pretty well for C++.

would it work in 2019 though?

Assuming the same support as it got from OS vendors and third party C compiler vendors in the early 90's, surely.

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#17

This language is quite striking! TypeScript is a superset of JS but here we're going from the other direction. Make a language that is only the TypeScript extensions to JS, and drop all the JS parts. No Object (!!), no Date, TypedArray, RegExp, almost all the mainstays are gone. It's Java 1.0: static offsets and vtables. This feels like the beginning of TypeScript throwing its weight around. It has the momentum to su…

> Make a language that is only the TypeScript extensions to JS, and drop all the JS parts.

So? Is there a reason left then to use Typescript instead of C or C++? I cannot think of one. Especially for education you better use a real language that will stay for more than 10 years at least. Microsoft is doing a great job taking over the Javascript community, and now this.., would love to see their hidden agenda.

IMAO Typescript is only interesting as a (painful) intermediate solution for large Javascript code bases until there is a serious replacement for Javascript through WebAssembly. I'd never choose Typescript as a language, even stronger, I recently moved away from full-stack web development partly because of it. Back to C++, what a relief..

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#18

This language is quite striking! TypeScript is a superset of JS but here we're going from the other direction. Make a language that is only the TypeScript extensions to JS, and drop all the JS parts. No Object (!!), no Date, TypedArray, RegExp, almost all the mainstays are gone. It's Java 1.0: static offsets and vtables. This feels like the beginning of TypeScript throwing its weight around. It has the momentum to su…

What's wrong with TypedArray? It provides kickass performance for things like graphics. Any replacement would have to be at least as fast.

Re: Static TypeScript: A Static Compiler for the TypeScript Language

#20

This language is quite striking! TypeScript is a superset of JS but here we're going from the other direction. Make a language that is only the TypeScript extensions to JS, and drop all the JS parts. No Object (!!), no Date, TypedArray, RegExp, almost all the mainstays are gone. It's Java 1.0: static offsets and vtables. This feels like the beginning of TypeScript throwing its weight around. It has the momentum to su…

It seems JS is not your favourite language :) There's already a solid technology in place to supplant it which is WebAssembly.
Post reply on HN