Live data from Hacker News

Announcing TypeScript 1.0

blogs.msdn.com

11–20 of 118 posts

Re: Announcing TypeScript 1.0

#11
post #7

Earlier quoted context omitted.

asm.js requires you to manage your own memory. TypesScript doesn't, it's a pretty thin layer on top of JavaScript.

Care to explain why? To my understanding asm.js is a restricted subset of JS that allows for optimisations to be performed that would not otherwise be possible. In a similar way to how Java bytecode can be interpreted more efficiently compared to a non-compiled language, like Python. With that in mind, sure you could target asm.js with a high level language that requires memory management, but why couldn't you also t…

This is just a temporary limitation of asm.js because it has no access to garbage-collected data. In the future it should have support for managed languages.

Re: Announcing TypeScript 1.0

#14
post #7

Earlier quoted context omitted.

asm.js requires you to manage your own memory. TypesScript doesn't, it's a pretty thin layer on top of JavaScript.

Care to explain why? To my understanding asm.js is a restricted subset of JS that allows for optimisations to be performed that would not otherwise be possible. In a similar way to how Java bytecode can be interpreted more efficiently compared to a non-compiled language, like Python. With that in mind, sure you could target asm.js with a high level language that requires memory management, but why couldn't you also t…

JS interpreters have this GC component built in already.

that you cant use with asmjs. asmjs IS NOT javascript. Mozilla folks may have made you think it is,it is not!!!

you'd need to reimplement a gc on top of asmjs...

It'd makes no sense.

Re: Announcing TypeScript 1.0

#15
post #2

Am I really missing it or are they announcing a new version with no release notes? edit: it seems that they had them in the blog post for the release candidate http://blogs.msdn.com/b/typescript/archive/2014/02/25/announ...

There are a few little new things, but 1.0 is essentially bugfixes from the 0.98 release which was essentially feature complete.

New things (eg async) are further away on the roadmap: http://typescript.codeplex.com/wikipage?title=Roadmap

Re: Announcing TypeScript 1.0

#16
post #5

This project really is the greatest thing that could happen in computer science : a great mind trying to solve a problem in the most pragmatic yet elegant way to achieve the greatest possible benefit for developper with th minimal amount of time and work.

A little strong on hyperbole.

Less Flair version - Happy to see a well know and respected computer scientist trying to solve a problem faced by lots of developers and doing it in a simple and easy to understand way.

Re: Announcing TypeScript 1.0

#17
post #5

This project really is the greatest thing that could happen in computer science : a great mind trying to solve a problem in the most pragmatic yet elegant way to achieve the greatest possible benefit for developper with th minimal amount of time and work.

Dart already happened

Re: Announcing TypeScript 1.0

#18
Anders is my favourite language designer, ever :)

TypeScript is something I'm still trying to get more buy-in from my team, but the issue is the lack of decent autocomplete/static analysis in anything other than Visual Studio. I'm working on that problem myself, actually.

Re: Announcing TypeScript 1.0

#19
post #7

Earlier quoted context omitted.

asm.js requires you to manage your own memory. TypesScript doesn't, it's a pretty thin layer on top of JavaScript.

Care to explain why? To my understanding asm.js is a restricted subset of JS that allows for optimisations to be performed that would not otherwise be possible. In a similar way to how Java bytecode can be interpreted more efficiently compared to a non-compiled language, like Python. With that in mind, sure you could target asm.js with a high level language that requires memory management, but why couldn't you also t…

asm.js is a subset of JavaScript, and to be easy to optimize, it removes most of the dynamic stuff from JS and leaves a simple, low-level dialect that is basically equivalent to LLVM IR or to C.

You can compile many things to C and LLVM IR, like C++, C#, and so forth. You can compile the VMs of dynamic languages like Python, Lua and Ruby, but compiling them directly would be inefficient - you'd need type checks all over the place. You need a custom VM to be fast on those.

asm.js can run Lua at close to the speed of the normal Lua VM running natively, so this approach is very feasible. But, for JavaScript itself, it probably doesn't make sense, the current VMs are the best that can be done.

However, a subset of TypeScript - without classes, without weird prototype things, just arrays and numbers and computation on those - could be compiled to asm.js. That might be an interesting project to try out.

Re: Announcing TypeScript 1.0

#20
I am huge believer in typescript. This has made me consider html5 seriously for the first time.

There are still many dark spots (hello js scope, bs standards), but with Typescript I've already built stuff I could have only done AIR in the past.

I find it ironic that MSFT tried to compete with Flash with Silverlight (and failed I think), and to me, Typescript means end of the line for Flash/AS3.

The language is dead easy to pick up, and IntelliJ has been a really good IDE with it.

Highly recommended.

Post reply on HN