Feeds

Microsoft's JavaScript challenger nears 1.0, wins Visual Studio love

Next VS2013 update to make TypeScript a first-class citizen

Secure remote control for conventional and virtual desktops

Microsoft's TypeScript web development language is almost ready for prime time, and by the time the next update for Visual Studio 2013 arrives, TypeScript 1.0 will be treated as a first-class language by Microsoft's IDE.

So sayeth S. "Soma" Somasegar, corporate VP of Microsoft's developer division, who announced a new community technology preview (CTP) release of the forthcoming VS2013 Update 2 on Tuesday.

"TypeScript is today being used to build products all over Microsoft, including Visual Studio Online, XBox Music and Video, parts of Bing, and the IE11 Developer Tools," Somasegar said. "Outside of Microsoft, TypeScript is being used in projects like Adobe's Digital Publishing Suite."

Developed at Microsoft by a team that includes language guru and C# architect Anders Hejlsberg, TypeScript offers web developers an alternative to idiomatic JavaScript, which has often been criticized as being bug-prone and difficult to maintain when used in large projects.

Google has been working along similar lines with its own Dart language. Like Dart, TypeScript code is compiled into ordinary JavaScript before being deployed, so it will run in any web browser. But unlike Dart, TypeScript doesn't force developers to learn an entirely new syntax.

Instead, TypeScript is a superset of JavaScript, such that all valid JavaScript code is also valid TypeScript code. Developers can take advantage of TypeScript features like optional static typing and class-based object orientation simply by adding TypeScript syntax to their existing JavaScript routines, rather than rewriting them.

They can even make popular JavaScript libraries like jQuery TypeScript-friendly by writing header files to let the TypeScript compiler know how they should behave under its programming model.

One problem with all of this, however, is that no matter how similar TypeScript is to JavaScript, it isn't strict JavaScript, which means today's JavaScript editors and IDEs won't know how to handle TypeScript code without help from plugins.

Enter Visual Studio 2013 Update 2. The final version of the update is still a few months away, but Tuesday's CTP release shows off how the next version of VS2013 will treat TypeScript as a first-class language, complete with IntelliSense, code navigation, code refactoring, and other features that developers have come to expect from Microsoft's tools.

Screenshot of TypeScript tools in Visual Studio 2013 Update 2

Visual Studio 2013's next update will understand TypeScript code before it's compiled into JavaScript

The release coincides with Microsoft's announcement that the TypeScript language has reached the first release candidate of version 1.0. That means it is now feature-complete for its initial release, its syntax is considered production-ready, and the TypeScript compiler outputs code in a way that fully complies with the 1.0 specification.

The language itself has changed slightly since the last release. In TypeScript 1.0 it's now easier to use the "any" keyword as a wildcard when declaring types, and handling of generic types has been simplified. Interface overloading has also been made more straightforward, making it easier to extend the standard lib.d.ts library. In addition, Microsoft has also added support for touch events and WebGL to lib.d.ts.

Besides TypeScript support, the forthcoming Visual Studio update adds a few other tools for web developers. Most notably, it now includes a full-featured JSON editor with support for syntax coloring, auto-formatting, and code warnings. JSON support has also been added to the debugger, so that complex JavaScript objects can be browsed in JSON format.

Visual Studio 2013 Update 2 CTP 2 is available for download beginning on Tuesday – though as with all CTP releases, Microsoft cautions that it's currently suitable for experimental use only.

TypeScript 1.0RC1 – also known internally as TypeScript 0.9.7 – is available from the TypeScript homepage, and its source code is downloadable from Microsoft's CodePlex site under the Apache 2.0 open source license. ®

The essential guide to IT transformation

More from The Register

next story
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Munich considers dumping Linux for ... GULP ... Windows!
Give a penguinista a hug, the Outlook's not good for open source's poster child
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Linux Foundation says many Linux admins and engineers are certifiable
Floats exam program to help IT employers lock up talent
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Linux kernel devs made to finger their dongles before contributing code
Two-factor auth enabled for Kernel.org repositories
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Top 10 endpoint backup mistakes
Avoid the ten endpoint backup mistakes to ensure that your critical corporate data is protected and end user productivity is improved.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Rethinking backup and recovery in the modern data center
Combining intelligence, operational analytics, and automation to enable efficient, data-driven IT organizations using the HP ABR approach.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.