back to article TypeScript 0.9 arrives with new compiler, support for generics

Microsoft on Tuesday announced TypeScript 0.9.0, the latest version of its JavaScript killer alternative web language, which Redmond describes as the "largest update to TypeScript to date." In addition to the usual assortment of bug fixes and performance improvements, this release includes a number of significant new language …

COMMENTS

This topic is closed for new posts.

This post has been deleted by a moderator

Silver badge
Facepalm

Re: Insecure Solution In Search Of Problem FAIL

It's not an alternative at all in any way - the article was not written by someone competent to understand the technology; similar to the way you're not competent to understand, you know, words.

TypeScript is like CoffeeScript except better because while both compile to plain JavaScript, TypeScript is an extended superset so you can drop in your existing JavaScript project and it runs. And what you get out is, like with CoffeeScript, plain JavaScript.

Therefore, not an alternative. A development tool.

And MS have not killed .NET. I thought you of all people with your open source fetish should know that they've officially open sourced asp.net for starters but that wouldn't quite fit your worldview, would it?

You can develop for Metro in C# and the .NET framework addresses the WinRT libraries just as it addresses the Win32 libraries.

Your FUD is shocking, Eadon. You've been told this a million times but still you keep on telling people lies on the Register. Why? Is it your job?

EADON SHILL FAIL.

16
3
Thumb Up

Typescript IS Javascript

Unlike stupid alternatives like VBScript and Dart, Typescript is not a new language but a tool to decorate JavaScript with type information to help debugging and editors.. simple as that, no conspiracy, no FUD, no lockin.

'function Hi (name : string) {return "Hi" + name;}' will compile/save to regular Javascript 'function Hi (name) {return "Hi" + name;}' for a browsers, but the IDE will be able to highlight errors. The type info is postfix because it is optional (there is no need for "param : object").

It is not a particularly new idea either, large commented/structured JavaScript libraries are often compiled to strip out comments/tabs/linefeeds/spaces anyway.. but that's not to poo, poo Typescript, there is one corporate intent: to make Visual Studio the best HTML5 editor

7
1
Boffin

@Eadon - .NET "killed off"

"In any case MS have already killed .NET for Metro"

.NET is a development runtime/frameowrk, Metro (as it was called) is a user interface.

Neither is a replacement for the other.

What you probably meant (if you'd bothered to get your facts right and come out with some reasoned argument, instead of your usual knee-jerk anti-MS rhetoric) is that under Windows 8, the runtime of choice is WindowsRT (not to be confused with WinRT).

And, as dogged points out, .NET is not dead.

Do try and keep up...or, even better, grow up.

EADON FAIL

2
3
Unhappy

Re: Insecure Solution In Search Of Problem FAIL

he has been told constantly that .Net is very far from being dead.

It seems he can turn a constant blind eye to his beloved Java and all its woes though...

3
3
Gold badge
Facepalm

Re: Insecure Solution In Search Of Problem FAIL

Here's an idea. When you find that you are first to an article that mentions or alludes to an MS product, why don't you just type in "F1rst p0st".

It would be just as meaningful, insightful and constructive.

2
0
Silver badge

Re: Insecure Solution In Search Of Problem FAIL

Moearon strikes again.

0
0
Silver badge
FAIL

"Typescript" ?

I'd never even heard of it until now.

Anyway... Really? They are still trying to embrace and extend? You would have thought they'd have learned their lesson with their version of java, and their previous javscript efforts. I thought they were going to follow web standards from now on...

7
9
Silver badge

Re: "Typescript" ?

They are still trying to embrace and extend?

No. The compiled output of TypeScript is JavaScript. Of course, the article did its very best to obscure this. TypeScript is Anders Hjelsberg's shot at making life much, much easier for JS developers. It's a dev tool, not an alternative language.

5
2
Silver badge

Re: "Typescript" ?

"No. The compiled output of TypeScript is JavaScript. Of course, the article did its very best to obscure this. TypeScript is Anders Hjelsberg's shot at making life much, much easier for JS developers. It's a dev tool, not an alternative language."

In which case, I apologise to Microsoft, and anyone else who may have been annoyed.

Serves me right for taking a Reg article on face value!

2
0
Childcatcher

Just what the world needs …

Oh good. Just when we though it was safe to develop cross-browser web sites, another opportunity to fragment the the browser environment presents itself. It was getting boring writing code once instead of having to write it 3 times to accommodate Bloody IE.

For those who don’t yet know it, JavaScript is an advanced, powerful scripting language. Like all languages it has its quirks and foibles. Many of them are addressed in the next version. Microsoft’s approach is, once again, a destructive attempt to hijack the Web.

6
10
Bronze badge

Re: Just what the world needs …

JavaScript's lack of strong typing and freedom to do anything is what makes a small bit of code so easy and a large bit of code so awful. Editors can't offer any assistance in managing a large codebase because the code can not be statically interpreted. Even the runtime is often unable to perform vital optimizations because it can't prove that they're safe.

What's odd about Microsoft is that they're designing a new language syntax. There's really no need for that. They could recycle C++ or Java syntax but supply it with web-specific runtime libraries rather than the sprawling and insecure ones used for applications.

0
4
Silver badge

Re: Just what the world needs …

For those who don’t yet know it, JavaScript is an advanced, powerful scripting language. Like all languages it has its quirks and foibles. Many of them are addressed in the next version. Microsoft’s approach is, once again, a destructive attempt to hijack the Web

Having you considered checking out what TypeScript actually is before sounding off?

Usage pattern :

1. Take your JavaScript project

2. Drop it into TypeScript

Lo! It runs! (provided it would have run in any other JS environment - TS doesn't magically fix your shitty broken code)

3. Add more code using strongly typed objects, generics, overloading, all the good stuff.

4. Compile your project.

5. Examine the results of the compile to find.... zomg it's all JavaScript! There is no TypeScript in the output! at all! It's completely to standard!

Of course, 3 minutes worth of actually checking what the story was about would have told you that. And one minute of fact-checking would have told the author of the article that, too but clearly neither of you gives a flying fuck at a rolling doughnut about what's actually going on.

13
2
Silver badge

@Kevin McMurtrie

Kevin,

It'd be lovely if TypeScript used C++ syntax but the requirement that you should be able to drop your existing JavaScript project in and have it work without amendment means that's not really feasible.

On the plus side, it sure beats CoffeeScript.

1
1
Silver badge

Re: Just what the world needs …

Wanted to upvote 2x, 1 for clear info and 2 for amusing idiom.

1
0
Thumb Down

It'd be lovely if TypeScript used C++ syntax...

No. No, it wouldn't.

(I recommend that people try writing a parser for C++. When you get out of the asylum, you will agree with me, oh yes you will.)

1
0
Ru

Re: It'd be lovely if TypeScript used C++ syntax...

I recommend that people try writing a parser for C++

C++ grammar ain't quite the same as its syntax. Personally, I'm not quite sure what 'c++ syntax' is supposed to mean in this context anyway, beyond curly braces'n'semicolons which JS and its various extensions and putative replacements already have...

0
0
Anonymous Coward

MISINFORMED TROLLS FROTHING AT MOUTH WITHOUT UNDERSTANDING SUBJECT AT HAND FAIL

7
8
Silver badge
FAIL

"MISINFORMED TROLLS FROTHING AT MOUTH WITHOUT UNDERSTANDING SUBJECT AT HAND FAIL"

Being misinformed doesn't make you a troll. It doesn't even make you a moron if you are willing to be corrected when you are wrong

2
0
Anonymous Coward

Whoosh!

0
1
Facepalm

So, JavaScript as a target for compilation is what everyone is doing today, but then Microsoft makes something about it and is suddenly uncool.

I guess all other commentators are CoffeeScript users and anti-semicolon hipsters.

3
1
Joke

application scale, meh.

Never mind if it's "application scale", we want to know if it's WEB SCALE.

1
0
Thumb Up

Clearing up misconceptions

Typescript is **not** a web language, and is never intended to be used directly in a web browser. Typescript is a standalone language that brings many advantages over Javascript (many of which were mentioned in the article). This is **not** an attempt by MS to subvert an existing web-technology by causing fragmentation. Anyone who sees TS and comes to the conclusion that MS is simply repeating the tactic that they employed with Java is sorely missing the point.

The most important thing to realise here is that the compiled output of TypeScript is JavaScript. The purpose of TS is to provide compile-time type-safety so that code written by developers is more easily checked and enforced at compile time. Once compiled, the output is standard, vanilla Javascript.

Anyone who thinks that this causes disadvantage to the web at large simply doesn't understand what TypeScript is and the aims of the TypeScript project.

+1 to Microsoft for finally "getting" the web.

3
0
Silver badge

Re: Clearing up misconceptions

". Anyone who sees TS and comes to the conclusion that MS is simply repeating the tactic that they employed with Java is sorely missing the point."

My apologies. I (and I assume others) came to that conclusion based only on what was written about Typescript in the article - in my eyes, it implied it was a superset replacement for javascript.

1
0
Silver badge

Re: Clearing up misconceptions

Understandable. The article was pure Eadon-bait.

1
0

Bizarre review

Why call it a JS-killer / alternative web language? Typescript will live in your PC only, rather than the client. Why is that hard to get? The good thing is that Typescript is closely following ECMAScript 6 so Typescript now looks like what JS will do in the future.

0
0
This topic is closed for new posts.

Forums