Go to the profile of  Suraj Patidar
Suraj Patidar
I am machine learning and deep learning enthusiast.
2 min read

Microsoft's BOSQUE – A New Programming Language Inspired by Typescript and Node.JS

Microsoft's BOSQUE –  A New Programming Language Inspired by Typescript and Node.JS

Microsoft has introduced a new and simple programming language with the name of BOSQUE. It’s inspired by the syntax of the Typescript, the semantics of Machine learning and Node.JS .Bosque aspires to be simple and easy to understand. It's the brainchild of Microsoft computer scientist Mark Marron, who describes the language as an effort to move beyond the structured programming model that became popular in the 1970s.

The structured programming paradigm, in which flow control is managed with loops, conditionals, and subroutines, became popular after a 1968 paper titled "Go To Statement Considered Harmful" by computer scientist Edsger Dijkstra.
Marron believes we can do better by getting rid of sources of complexity like loops, mutable state, and reference equality. The result is Bosque, which represents a programming paradigm that Marron, in a paper he wrote, calls "regularized programming."
"This model builds on the successes of structured programming and abstract data types by simplifying existing programming models into a regularized form that eliminates major sources of errors, simplifies code understanding and modification, and converts many automated reasoning tasks over code into trivial propositions," Marron explains in his technical paper.

According to the Microsoft one of the main aims of introducing Bosque is to create code that is simple for both humans and machines to read, eliminating "accidental complexity".

As of now Bosque is in the development stage and experts don't recommend using it for any kind of production work but the language is open for experimentation.

What Bosque looks like???

Lets see a some of the basic code snippet in Bosque:

1) Adding two numbers in Bosque:

2)All odd check using rest parameters and lambda:

The GitHub repo for the language contains many more examples.

The current focus of the Bosque project is core language design. As a result there is limited support for compilation/development and no support for packaging, deployment, lifecycle management, etc.