Live data from Hacker News

Static TypeScript: A Static Compiler for the TypeScript Language

microsoft.com

31–40 of 57 posts

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

#31
post #24

Earlier quoted context omitted.

> 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 Ty…

C++ is the biggest cancer in the industry. I can't really understand how people can easily say its name. A C++ programmer needs to understand not only language syntax but also underlying operating system and its internals. This is completely different job and therefore needs completely different expertise. I don't even want to mention hardware limitations, cpu architectures, etc. So, don't use C++. It is not mainstre…

> A ... programmer needs to understand ... underlying operating system and its internals

Oh the humanity!

I weep for mankind and for the industry if this is where we have fallen.

Quick question: are you a Javascript programmer?

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

#32
> As a result, the use of scripting languages (such as JavaScript and Python) for microcontrollers is on the rise.

I can not think of what they smoke claiming running a scripting language on an MCU.

Microsoft seem to set its sights on breaking the MCU development after nothing has left to break on the desktop.

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

#33

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…

> This feels like the beginning of TypeScript throwing its weight around. It has the momentum to supplant JS and this is an exploratory compatibility-breaking step.

If this dream will come true, we will have both broken JS development space, and not much better TS developer ecosystem.

The creation of TypeScript is Microsoft's doing its trick called "Extend Embrace Extinguish."

They see that their captive developer community of VB and C# devs is trying to migrating to more sane scripting languages, and they want to cauterise the bleeding with TS.

The moment TS will gain steam, they will very likely add some extensions that will finally break any form of reverse compatibility, and make TS a standalone language. And few years down the line they will put a lid on it too.

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

#34
post #24

Earlier quoted context omitted.

C++ is the biggest cancer in the industry. I can't really understand how people can easily say its name. A C++ programmer needs to understand not only language syntax but also underlying operating system and its internals. This is completely different job and therefore needs completely different expertise. I don't even want to mention hardware limitations, cpu architectures, etc. So, don't use C++. It is not mainstre…

> A ... programmer needs to understand ... underlying operating system and its internals Oh the humanity! I weep for mankind and for the industry if this is where we have fallen. Quick question: are you a Javascript programmer?

Well I mean that is the point of abstraction.. if we always had to have our heads at the lowest level we would not be productive what-so-ever.

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

#35

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 Ty…

I'm mostly on board with the idea of moving away from the mess of the Javascript ecosystem. But going back to C++ doesn't really get you away from the big mess problems!

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

#36
post #33

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…

> This feels like the beginning of TypeScript throwing its weight around. It has the momentum to supplant JS and this is an exploratory compatibility-breaking step. If this dream will come true, we will have both broken JS development space, and not much better TS developer ecosystem. The creation of TypeScript is Microsoft's doing its trick called "Extend Embrace Extinguish." They see that their captive developer co…

Who on earth is moving from the well-typed, statically compiled world of C# to some dynamic scripting language? I mean, not to besmirch the merits of scripting languages, but C# and, ex, JS excel in very different domains.

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

#37
post #33

Earlier quoted context omitted.

> This feels like the beginning of TypeScript throwing its weight around. It has the momentum to supplant JS and this is an exploratory compatibility-breaking step. If this dream will come true, we will have both broken JS development space, and not much better TS developer ecosystem. The creation of TypeScript is Microsoft's doing its trick called "Extend Embrace Extinguish." They see that their captive developer co…

Who on earth is moving from the well-typed, statically compiled world of C# to some dynamic scripting language? I mean, not to besmirch the merits of scripting languages, but C# and, ex, JS excel in very different domains.

Indeed they are, but people sign plumpy "Enterprise" development contracts don't seem to think so.

And knowing that MS Devs are not far Java devs in their mentality, they will follow wherever their stomach guides them.

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

#38

Earlier quoted context omitted.

It does have objects: STS has at runtime four kinds of unrelated object types: 1. a dynamic map type has named (string-indexed) properties that can hold values of any type; 2. a function (closure) type; 3. a class type describes instances of a class, which are treated nominally, via an efficient runtime subtype check on each field/method access, as described below; 4. an array (collection) type.

Ok, I did not read the specifications yet and just refered to the other comment. But your quote gives no indication of (prototyp or classical) inheritance?

STS classes are compiled similarly to Java or C# with single inheritance and static memory layout.

Don't know much about STS or TS but I assume the usual JS class syntax works as spelled out here: https://www.typescriptlang.org/docs/handbook/classes.html

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

#39

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 seems like the main market for the language is education, specifically a high-level language for ARM-based arduino-compatibles, but with an SDK that can be hosted on a browser for easy distribution on school computers. Microsoft can use the nuts and bolts of their existing typescript compiler, which happens to be able to run in a browser, to implement the language.

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

#40

Earlier quoted context omitted.

> 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 Ty…

Typescript has a unique typesystem that embraces duck typing. This is quite different to how you would type e.g. a scala program. C++ adds a load of additional burden on the programmer (memory) and has a relatively weak typesystem. Clearly Typescript has a niche, has familiarity to subset of programmers, so there are plenty of reasons for this to have its place.

I'm less familiar with Typescript but this sounds quite close to how go does interfaces! Maybe you could speak to that.

I've been pretty impressed with static duck-typing and miss it when I'm in Java.

Post reply on HN