TypeScript 3.4 is out: Microsoft tweaks programming language to cut build times
Microsoft has released TypeScript 3.4, a language that's growing among developers and helping them scale up projects written in today's top coding language, JavaScript.
Released in 2012, TypeScript looks set to become a mainstay among the world's top programming languages, lying just outside top 10 status in one ranking based on projects in GitHub and chatter on Stack Overflow.
techrepublic cheat sheet
TypeScript, which compiles to plain JavaScript, offers developers a compiler with safety features that check programs based on optional static types – like strings, arrays, text, and numbers – to catch errors and to clean up JavaScript code.
Also, as a language server, it can be used for cross-platform editor tooling, such as code completions, fixes, and refactoring. Meanwhile, JavaScript developers can use it to type-check, or verify, JavaScript code.
TypeScript 3.4's headline feature is a new flag called 'incremental', which aims to help developers type-check and output changes to an existing project, allowing them to save time when compiling subsequent builds.
The flag "tells TypeScript to save information about the project graph from the last compilation", explains Daniel Rosenwasser, program manager on the TypeScript team.
"The next time TypeScript is invoked with --incremental, it will use that information to detect the least costly way to type-check and emit changes to your project."
SEE: How to build a successful developer career (free PDF)
Rosenwasser boasts that adding the new flag to a TypeScript file for Microsoft's Visual Studio Code editor drastically cut compile time for follow-on builds.
"For a project the size of Visual Studio Code, TypeScript's new --incremental flag was able to reduce subsequent build times down to approximately a fifth of the original," he notes.
Currently TypeScript editor support is available in Visual Studio and Visual Studio Code when using it as an editor for JavaScript files.
However, Rosenwasser notes that it is likely to come "in the near future" to other popular editors such as EMACS, NetBeans, Notepad++, and Vim.
More on TypeScript and programming languages
- Microsoft's TypeScript programming language rising fast, almost makes top 10
- Programming languages: PowerShell nets more Linux, macOS, Windows developers
- Programming languages: Python rides high but Groovy is cool again with developers
- Python programming language's top uses, tools: Developers reveal their choices
- Best-paying programming languages, skills: Here are the top earners
- The programming languages and skills that pay the best in 2019 TechRepublic
- Is Julia the next big programming language? MIT thinks so, as version 1.0 lands TechRepublic
- Mozilla's radical open-source move helped rewrite rules of tech CNET