Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

The logic that says it's possible for them to be the same?

Microsoft has that in certain areas, like Typescript. Not so much anything related to Windows.



sort by: page size:

> Neither one is a different language. Both merely add type annotations to an otherwise pristine ECMAScript code base.

This isn’t really a matter of debate — Microsoft describes TypeScript as a programming language distinct from JavaScript on its homepage.

It’s a programming language with a trivial transpiration step to another language, but a separate language all the same.


I would assume MS is largely using TypeScript.

I think reasonable people can probably agree that there is a difference in kind between CoffeeScript and TypeScript. CoffeeScript was functionally equivalent to JavaScript, whereas TypeScript has feature-level improvements that are worth a developer's time. Sure, TypeScript is pushed by Microsoft. It's also an excellent solution for large-scale systems, its adoption is nontrivial, and Microsoft has a history of supporting its tools (Managed C++ aside, I suppose) in a way that can offer a promise of consistency on its own.

Of course they aren't the same, but the benefits of using TypeScript don't go away from one UI to the next.

Well yeah, Microsoft developed TypeScript to resemble C#'s type system so naturally it will look a bit like Java? TS is far from being the de-facto standard though (maybe because it's centred around OOP?)

I should have been a bit more specific, Microsoft could have used any language to build the TypeScript compiler.

They took however the best solution by bootstraping it in JavaScript and using node for the process.

Just correct me if I am wrong.


I'm willing to bet money that MS is actually using Typescript for almost all their Javascript.

Yeah, we can verify the validity of the statement since most of these project are open source. It's all Typescript, not JavaScript. according to the OP:

>> Those are one in the same thing (compiled) :-). But us TypeScript in majority at Microsoft in almost all the projects I've seen or been apart of.

Using the same logic, could we say that all windows is written in assembly ? When looking at JavaScript output of a Typescript program, it does really look like JavaScript is treated as assembly.

One almost never edits the JavaScript code when using Typescript, especially if the mapped ts files are available when debugging in F12.


Same with TypeScript and JS.

Yes, exactly. Interoperable doesn't mean much if it is not properly cross platform. I've tried Dart for a project, and it worked OK, but in my opinion TypeScript is clearly the way to go in the foreseeable future.

Notably both C# and TypeScript are developed in the same Microsoft division as Visual Studio and VSCode. :p

It is Anders Hejlsberg, who is in charge of both projects (or was in charge of C#) so the similarity is not that strange.

I have to say though that I like Typescript so much, precisely because it has such a great type system.


Perhaps because Typescript is a Microsoft baby?

Isn't TypeScript the same type system that Microsoft scuttled along with the rest of ES4?

Perhaps with TypeScript (And Microsoft as a big corporate name behind it) Node is a little more acceptable?

Where does TypeScript fit into this? It's a wildly successful language from Microsoft that's also interpreted but doesn't use the CLR.

Disclaimer: I work at Microsoft, but not in the Developer Division.


Those things (or at least the one of them whose source we actually have access to) are written in TypeScript. Why do you think Microsoft created the language?

Also they aren't exactly being rewritten in JS - the person who tweeted that later casually clarified that "well, actually" they're using JS as a sort of build system/integration over a still huge amount of native code.


True.

I'm also seeing that with JavaScript and TypeScript.

TS feels very C# like.

Luckily there seem to be counter movements with languages like Reason, ClojureScript and PureScript.


I thought Microsoft was working on Typescript as an alternate to pure JavaScript. How does WinJS fit into that picture?
next

Legal | privacy