Google's carbon programming - A new language for software development

Google's carbon programming - A new language for software development

file-google-logo-svg-wikimedia-commons-23.png Google introduced a new programming language, the Carbon language, which was described as an "experimental successor to C++".

C++ is one of the dominant programming languages for software development." C++ is a powerful general-purpose programming language. It can be used to develop operating systems, browsers, games, and so on. C++ supports different ways of programming like procedural, object-oriented, functional, and so on. This makes C++ powerful as well as flexible. -Programiz

Carbon was unveiled by Google on Tuesday, 19th of July 2022. Chandler Carruth, Google's principal software engineer said Carbon is intended to be fully interoperable with the existing C++ codebase.

Carbon is fundamentally a successor language approach, rather than an attempt to incrementally evolve C++. It is designed around interoperability with C++ as well as large-scale adoption and migration for existing C++ codebases and developers. -Carbon-lang

According to carbon's official repository, the language's goals are:

  • Performance-critical software
  • Software and language evolution
  • Code that is easy to read, understand, and write
  • Practical safety and testing mechanisms
  • Fast and scalable development
  • Modern OS platforms, hardware architectures, and environments
  • Interoperability with and migration from existing C++ code

Carbon is presently an experimental project, but it is a sight to behold when it comes to syntax authoring. Performing quick sorting in carbon looks like this

quicksort_snippet.jpg

Another attractive feature of carbon is that it can be blended with C++, allowing you to call carbon from C++ without incurring overhead and vice versa. You may migrate a single C++ library to carbon inside an application, or you can create new Carbon on top of your existing C++ codebase. As an example:

mixed_snippet.jpg

Finally, I believe the Google Carbon programming language will achieve significant popularity in the developer community. Navigate to the carbon-language official GitHub repository to learn more about it.