High-level definition language allows developers to define an API and then output many different protocols, clients, servers, and documentation, Microsoft said. Credit: Michele M.F. Microsoft has introduced TypeSpec, a language for API-centric development. Unveiled April 25, TypeSpec is designed to meet the needs of API developers, managers, and architects in an environment where delivering high-quality APIs and related experiences has become increasingly critical and complex, Microsoft said. The company described TypeSpec as a lightweight language that describes APIs using any protocol or serialization format and encapsulates common data types, API patterns, and API guidelines into high level, reusable components. It can define complex data and API shapes with minimal types. The language was inspired by Microsoft’s TypeScript and C# languages and is easy to learn, according to Microsoft, which has used TypeSpec internally for many Azure cloud services. Instructions on getting started with the language can be found on the project website. Installation requirements also are accessible. TypeSpec provides a platform that enables abstraction, encourages code reuse, and leverages modern tools including Visual Studio and Visual Studio Code for rapid development, Microsoft said. APIs are described using any protocol or serialization format with familiar syntax. The language can compile to OpenAPI, JSON Schema, Protobuf (Protocol Buffers), or all three simultaneously. Microsoft said TypeSpec is “not just another API description language” but a higher-level definition language capable of defining an API and then outputting different protocols, clients, servers, documentation, and other capabilities. The language thus becomes a tool to adapt to a variety of development scenarios. Plus the tools for TypeSpec make development and maintenance easy, surfacing errors and guideline violations at development time, the company said. Related content analysis Beyond the usual suspects: 5 fresh data science tools to try today The mid-month report includes quick tips for easier Python installation, a new VS Code-like IDE just for Python and R users, and five newer data science tools you won't want to miss. By Serdar Yegulalp Jul 12, 2024 2 mins Python Programming Languages Software Development analysis Generative AI won’t fix cloud migration You’ve probably heard how generative AI will solve all cloud migration problems. It’s not that simple. Generative AI could actually make it harder and more costly. By David Linthicum Jul 12, 2024 5 mins Generative AI Artificial Intelligence Cloud Computing news HR professionals trust AI recommendations HireVue survey finds 73% of HR professionals trust AI to make candidate recommendations, while 75% of workers are opposed to AI making hiring decisions. By Paul Krill Jul 11, 2024 3 mins Technology Industry Careers how-to Safety off: Programming in Rust with `unsafe` What does it mean to write unsafe code in Rust, and what can you do (and not do) with the 'unsafe' keyword? The facts may surprise you. By Serdar Yegulalp Jul 11, 2024 8 mins Rust Programming Languages Software Development Resources Videos