Google’s New Programing Language : Carbon

Introduction

Google has announced a new programming language called Carbon. The Carbon release date is 19 July 2022. Carbon is a general-purpose programming language that was created at Google to be a C++ successor language. A Googler named …


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by kuldeep_singh

Introduction

Google has announced a new programming language called Carbon. The Carbon release date is 19 July 2022. Carbon is a general-purpose programming language that was created at Google to be a C++ successor language. A Googler named Chandler Carruth introduced developers to the new programming language called Carbon.

Chandler Carruth, the technical lead for Google programming languages, told us that they would be starting this experimental work with the C++ community. The language will be designed and developed on GitHub.

Why Build Carbon?

C++ remains the dominant programming language for performance-critical software. However, it is struggling to improve and meet developer’s needs, as outlined above, in not above part due to accumulating decades of technical debt and challenges with its evolution process. The best way to address these problems is to avoid inheriting the legacy of C or C++, instead start with solid language foundation such as modern generics system, modular code organization, consistent and simple syntax.

Carbon is fundamentally a successor language approach, rather than an attempt to incrementally evolve C++. A successor language for C++ requires:

  • Performance matching C++, an essential property for our developers.
  • Seamless, bidirectional interoperability with C++, such that a library anywhere in an existing C++ stack can adopt Carbon without porting the rest.
  • A gentle learning curve with reasonable familiarity for C++ developers.
  • Comparable expressivity and support for existing software’s design any architecture.
  • Scalable migration, with some level of source-to-source translation for idiomatic C++ code.

There are a few languages, that have followed this model for other ecosystems, and Carbon aims to fill an analogous role for C++:

  • JavaScript -> TypeScript
  • Java -> Kotlin
  • C++ -> Carbon

Language Goals

They are designing Carbon to support:

  • Performance-critical software
  • Software and language evolution
  • Code that is easy to read, write and understand.
  • 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 Language is currently an experimental project. There is no working compiler or toolchain. You can see the demo interpreter for Carbon on compiler-explorer.com

You can learn about syntax of carbon programming language here


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by kuldeep_singh


Print Share Comment Cite Upload Translate Updates
APA

kuldeep_singh | Sciencx (2022-10-18T13:44:04+00:00) Google’s New Programing Language : Carbon. Retrieved from https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/

MLA
" » Google’s New Programing Language : Carbon." kuldeep_singh | Sciencx - Tuesday October 18, 2022, https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/
HARVARD
kuldeep_singh | Sciencx Tuesday October 18, 2022 » Google’s New Programing Language : Carbon., viewed ,<https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/>
VANCOUVER
kuldeep_singh | Sciencx - » Google’s New Programing Language : Carbon. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/
CHICAGO
" » Google’s New Programing Language : Carbon." kuldeep_singh | Sciencx - Accessed . https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/
IEEE
" » Google’s New Programing Language : Carbon." kuldeep_singh | Sciencx [Online]. Available: https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/. [Accessed: ]
rf:citation
» Google’s New Programing Language : Carbon | kuldeep_singh | Sciencx | https://www.scien.cx/2022/10/18/googles-new-programing-language-carbon/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.