Feeds

Microsoft releases JavaScript alternative

TypeScript embraces and extends JavaScript, but is open source

High performance access to file storage

Microsoft has released a new JavaScript development environment, dubbed TypeScript, and says it is designed to help developers write more complex apps with the popular scripting language.

Long-time Reg readers may recall that Microsoft has form giving the world new technologies, but not always for altruistic reasons. During its epic antitrust battle with the US Department of Justice, Microsoft's in-house use of the terms “embrace and extend” or “embrace and smother” came to light to describe the practice of releasing non-standard products, among them software development tools, then using Microsoft's market share to none-too-gently steer the industry towards buying those products to the detriment of competitors.

That strategy seems not to be in play this time, as TypeScript is free, open source and compiles into garden-variety JavaScript that Microsoft has taken pains to state repeatedly will run on any browser, host or operating system.

TypeScript is also being pitched as a developer's saviour, as by extending JavaScript developers will have more and more potent tools to build the kind of large-scale apps being built around HTML 5 in the browser and on mobile devices. Apps destined for the Windows 8 store are also cited as worthy of the more robust environment TypeScript is said to afford.

In a video posted to introduce the language (and embedded below), Microsoft Technical Fellow Anders Hejlsberg argues that TypeScript is needed because JavaScript was never intended for the roles it has found itself serving today and lacks many of the structures developers find useful in other languages. TypeScript is designed to add those extra bits, with static typing and classes at the top of Hejlsberg's list of developer desirables.

Existing JavaScript code and libraries work in TypeScript, and Microsoft has arranged TypeScript support for Emacs, Vim and Sublime Text. A TypeScript editor plugin for Visual Studio 2012 has also been released. Code samples are already available, too.

Initial response to TypeScript has tended towards the positive. While a few narky comments have appeared on Microsoft's announcement post, Twitter sentiment seems broadly happy about the new language. Your own opinions can, of course, be recorded below. ®

High performance access to file storage

More from The Register

next story
Windows 8.1, which you probably haven't upgraded to yet, ALREADY OBSOLETE
Pre-Update versions of new Windows version will no longer support patches
Android engineer: We DIDN'T copy Apple OR follow Samsung's orders
Veep testifies for Samsung during Apple patent trial
OpenSSL Heartbleed: Bloody nose for open-source bleeding hearts
Bloke behind the cockup says not enough people are helping crucial crypto project
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Windows XP still has 27 per cent market share on its deathbed
Windows 7 making some gains on XP Death Day
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
US taxman blows Win XP deadline, must now spend millions on custom support
Gov't IT likened to 'a Model T with a lot of things on top of it'
prev story

Whitepapers

Mainstay ROI - Does application security pay?
In this whitepaper learn how you and your enterprise might benefit from better software security.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Mobile application security study
Download this report to see the alarming realities regarding the sheer number of applications vulnerable to attack, as well as the most common and easily addressable vulnerability errors.