Live data from Hacker News

Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

channel9.msdn.com

21–30 of 69 posts

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#22
post #16

To me this interview underlines the accomplishment of CoffeeScript. No committees. No marketing team. No developer evangelists. No PR team. No corporate interests. No budget. Just code.

Also nobody with the sense of history to design proper lexical scoping of variables.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#23
post #21

Haxe anyone ? full HTML5 api support , dead-code elimination, loads of libraries and frameworks , easy integration with third party libraries ,multi-target (C++,Flash,JS,...) and open source...

Stop trying to make Haxe happen, it's not going to happen.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#24
post #7

Earlier quoted context omitted.

> Dart's VM isn't Chrome-only I meant that dart is chrome-only in practice. I don't know of any other browser vendor that bundles the dart vm, including the few browsers based on chromium like rockmelt or 360. > However, I think that even if initial reaction might have been better with such a response, Google clearly did the right thing by being up front about their vision. I can appreciate Google's directness regard…

> I meant that dart is chrome-only in practice. I don't know of any other browser vendor that bundles the dart vm, including the few browsers based on chromium like rockmelt or 360. I didn't think even Chrome bundles Dart, yet, either; for native Dart (as opposed to compiled-to-JS Dart), Google distributes (both separately and with the Dart SDK) a special Chromium-based browser with the Dart VM integrated called "Dar…

Dart has special data types for the VM. They clearly want to target the VM for fast applications that aren't very usable compiled to JavaScript.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#25

Can anyone explain what the difference between TypeScript and ECMAScript 4 are? I know ECMAScript 4 was abandoned for some reason, but from the few examples I've seen of Typescript it looks very similar. Did the js community just need a few more years to come around to the ideas?

It looks very much like ECMAScript 4. I've done a lot (too much) Flex/AS3 coding and I plan on using TypeScript for my next big Javascript project. Static type checking makes a whole class of problems on large applications just go away.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#26
post #22
post #16

To me this interview underlines the accomplishment of CoffeeScript. No committees. No marketing team. No developer evangelists. No PR team. No corporate interests. No budget. Just code.

Also nobody with the sense of history to design proper lexical scoping of variables.

To achieve that CS would have had to put everything with a new variable inside a new function scope, having a major impact on performance and readability of the generated code.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#27
post #22

Earlier quoted context omitted.

Also nobody with the sense of history to design proper lexical scoping of variables.

To achieve that CS would have had to put everything with a new variable inside a new function scope, having a major impact on performance and readability of the generated code.

It's possible to detect name collisions in a compiler and only generate scopes when needed...

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#28

It's a pretty smart move that Microsoft did with TypeScript, making it a proper superset of JavaScript. Google seems to be stuck in the past, bringing out its own VM that is a complete non-starter, and making another class-based, Java-like language. I guess Google is going down the road that Microsoft did years ago with flinging feces on the wall and see what sticks. I have nothing against Dart. I played with it a ye…

Yesterday, I rewrote one of my JS modules into Dart, and it ended up being about 10 lines of code with only two modules imported. Then I compiled it to JS, and it was over 120k. I tried for about an hour to get that down to a reasonable size with Closure Compiler/Uglify, but the names were too wonky.

I'm sure that, given enough time, they'll solve these problems, but as for right now... it isn't ready for primetime. Not by a longshot.

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#29
post #16

To me this interview underlines the accomplishment of CoffeeScript. No committees. No marketing team. No developer evangelists. No PR team. No corporate interests. No budget. Just code.

...No formal semantic or syntactic specification...

Re: Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, and Dart

#30

It's a pretty smart move that Microsoft did with TypeScript, making it a proper superset of JavaScript. Google seems to be stuck in the past, bringing out its own VM that is a complete non-starter, and making another class-based, Java-like language. I guess Google is going down the road that Microsoft did years ago with flinging feces on the wall and see what sticks. I have nothing against Dart. I played with it a ye…

Yesterday, I rewrote one of my JS modules into Dart, and it ended up being about 10 lines of code with only two modules imported. Then I compiled it to JS, and it was over 120k. I tried for about an hour to get that down to a reasonable size with Closure Compiler/Uglify, but the names were too wonky. I'm sure that, given enough time, they'll solve these problems, but as for right now... it isn't ready for primetime.…

Related: http://blog.sethladd.com/2013/03/i-shrunk-my-dart-to-js-code...
Post reply on HN