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…
Announcing TypeScript 1.0
11–20 of 118 posts
Re: Announcing TypeScript 1.0
#12Re: Announcing TypeScript 1.0
#13Re: Announcing TypeScript 1.0
#14Earlier 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…
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
#15Am 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...
New things (eg async) are further away on the roadmap: http://typescript.codeplex.com/wikipage?title=Roadmap
Re: Announcing TypeScript 1.0
#16This 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.
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
#17This 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.
Re: Announcing TypeScript 1.0
#18TypeScript 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
#19Earlier 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…
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
#20There 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.