As an experimental successor to C++, Google recently announced Carbon, its latest programming language.

A few programming languages have been developed by Google over the years, some of which have gained prominence and popularity over others. In addition to improving server development, Golang (or simply Go) is used by the public to build distributed systems. In contrast, Dart didn't gain mainstream popularity until Flutter was released, originally intended as a JavaScript alternative.

A Googler named Chandler Carruth shared his vision for a new programming language called Carbon at the Cpp North convention in Toronto, as documented by Conor Hoekstra. Carruth explained how many programming languages are being supplanted by newer languages that enable developers to become productive rapidly and take advantage of modern language design.

In the same way that iOS developers know Swift is the successor to Objective-C, Android developers know Kotlin is the successor to Java. During this time, TypeScript has made great strides in improving JavaScript while staying comfortable to use and allowing it to be translated back into JavaScript. C++, which is used extensively at Google, is similar to C in that it is a descendant of the original language C.

The development of "performance-critical software" is one of Carbon's goals, and Carbon is intended to be fully interoperable with existing C++ code as well. As well as making the migration from C++ to Carbon as simple as possible, the goal is to facilitate the transition as smoothly as possible. 

Carbon has quite a few highlights that Carruth shared on stage about why C++ developers might want to introduce it to their codebase.

Indirect access is provided by pointers, as well as mutations

Name types with expressions

Namespaces are grouped into packages

Using the package name, import APIs

Method declarations are made explicit with object parameters

By default, classes are final; single inheritance is allowed

The Carbon team emphasized that Carbon's future will be shaped not only by its features but also by its development process. In addition to hosting its code on GitHub and accepting pull requests, Carbon's culture is described as inclusive and accessible to employees of corporations and individuals. 

A few aspects of the Carbon programing language aren't well explained, including Google's involvement. Despite the fact that Carbon is led by Googlers principally - but not exclusively - and today's presentation came from a Googler, it is never mentioned as being a Google project.


Facebook Conversations