Feeds

Microsoft releases JavaScript alternative

TypeScript embraces and extends JavaScript, but is open source

The essential guide to IT transformation

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

Secure remote control for conventional and virtual desktops

More from The Register

next story
Apple promises to lift Curse of the Drained iPhone 5 Battery
Have you tried turning it off and...? Never mind, here's a replacement
Mozilla's 'Tiles' ads debut in new Firefox nightlies
You can try turning them off and on again
Linux turns 23 and Linus Torvalds celebrates as only he can
No, not with swearing, but by controlling the release cycle
Scratched PC-dispatch patch patched, hatched in batch rematch
Windows security update fixed after triggering blue screens (and screams) of death
This is how I set about making a fortune with my own startup
Would you leave your well-paid job to chase your dream?
prev story

Whitepapers

Endpoint data privacy in the cloud is easier than you think
Innovations in encryption and storage resolve issues of data privacy and key requirements for companies to look for in a solution.
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.
Advanced data protection for your virtualized environments
Find a natural fit for optimizing protection for the often resource-constrained data protection process found in virtual environments.
Boost IT visibility and business value
How building a great service catalog relieves pressure points and demonstrates the value of IT service management.
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.