Feeds

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

Next VS2013 update to make TypeScript a first-class citizen

Security and trust: The backbone of doing business over the internet

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. ®

Security and trust: The backbone of doing business over the internet

More from The Register

next story
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
'Windows 9' LEAK: Microsoft's playing catchup with Linux
Multiple desktops and live tiles in restored Start button star in new vids
iOS 8 release: WebGL now runs everywhere. Hurrah for 3D graphics!
HTML 5's pretty neat ... when your browser supports it
Mathematica hits the Web
Wolfram embraces the cloud, promies private cloud cut of its number-cruncher
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
Mozilla shutters Labs, tells nobody it's been dead for five months
Staffer's blog reveals all as projects languish on GitHub
SUSE Linux owner Attachmate gobbled by Micro Focus for $2.3bn
Merger will lead to mainframe and COBOL powerhouse
iOS 8 Healthkit gets a bug SO Apple KILLS it. That's real healthcare!
Not fit for purpose on day of launch, says Cupertino
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
WIN a very cool portable ZX Spectrum
Win a one-off portable Spectrum built by legendary hardware hacker Ben Heck
Saudi Petroleum chooses Tegile storage solution
A storage solution that addresses company growth and performance for business-critical applications of caseware archive and search along with other key operational systems.
Protecting users from Firesheep and other Sidejacking attacks with SSL
Discussing the vulnerabilities inherent in Wi-Fi networks, and how using TLS/SSL for your entire site will assure security.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.