Write Your First Program in Microsoft’s Bosque Language—A Step by Step Approach

Microsoft launched a new language called Bosque Language. This is in an experimental phase and designed for writing code that is simple, obvious, and easy to reason about for both humans and machines. This language has TypeScript-like syntax and JavaScript-inspired semantics.

Some of the main features of the Bosque language are:

  • Improved developer productivity
  • Increased software quality
  • New range of compilers and developer tooling experiences

You can learn more about the Bosque language here.

This article will help you in a step by step manner to configure your system to write your first program in Bosque language. Let’s get started.

Step 1

Download and install LTS version of Node.js from here: https://nodejs.org/en/download/. Once Node.js is installed, run the following command to confirm it was installed.

node –v 

Step 2

After making sure that Node.js is successfully installed, next install TypeScript using npm. To do that run the below command,

npm i typescript -g

Step 3

After installing TypeScript, navigate to the Github repository of Bosque language at the below URL,

https://github.com/Microsoft/BosqueLanguage

From here, either download or clone the repository. Once repository is downloaded, unzip it and save at any location of your choice. Change directory to Bosque language master folder and then to folder ref_impl.

In this folder run the following command,

npm install && npm run-script build && npm test

After successfully running the command, you should get output that test passed as shown in the next image,

Read full article on the Infragistics blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s