This article is all about the new programming language i.e Carbon Language.
Are you excited about this language?
If you are a developer then this article is for you to explore a new language and if you are a fresher and planning for going to the development field it will also help you to explore new opportunities.
Recently Google introduced “C++ successor” i.e Carbon language. It is the next-generation programming language to replace C++.
This is an open-source project and release on 19 July 2022. It is still in the experimental phase.
This language is introduced during the recently held ‘CPP North’ conference in Toronto, Chandler Carruth, a software engineer at Google, introduced developers to this new programming language.
Here, In this article, we are going to discuss carbon programming language in brief.
Let’s dig in.
What is carbon?
Carbon is an experimental, general-purpose programming language which is created by Google. It can give high performance and is widely used in many production systems.
This language can run with multiple platforms, hardware architecture, and many operating systems.
Why carbon is build?
The developer gets frustrated with the slow evolution of C++. It consumes resources like time, memory, computing, and power. Bringing changes in C++ was a very difficult task and many changes were not possible at all.
So, that’s why the developer made a new language which is its successor but much better than this language.
Even before this, there is many successors of different languages coming into the market for example –
C ———–> C++
Objective- C ———–> Swift
Java ———–> Kotlin
C++ ———–> Carbon
All these have given a new twist to the development and made it better than before.
Goals of Carbon
Carbon is a new programming language. It will mainly focus on code that will be easy to write and read.
This language is fast and scalable in development. It supports all modern OS platforms and environments and comes into the market with these goals-
- Fast and scalable development
- Software critical to productivity
- Language and Software evolution
- Practical safety and testing mechanisms
- Modern OS platforms, hardware architectures, and environments
Key features of Carbon language
This language has many key features some of them are-
- Fast performance
- Bi-directional Interoperability
- Migration support
- Modern and evolving features
- Built with Open Source
Is Carbon better than C++?
Carbon is completely interoperable with C++ code and is at an extremely early stage of development. It aims to address memory safety by tracking uninitialized states, increasing initialization enforcements, and discouraging initialization bugs.
Being a successor of C++, obviously, it will be better than this. Efforts are being made to reduce the flaws which were in C++.
The file extension for Carbon language code is .carbon. So, if you write a new carbon language file you need to have a file that ends with an extension of .carbon. Example: Project. carbon.
If you’re already a C++ developer, This new language Carbon should have a gentle learning curve for you.
You can use it at least once!
If you like this article you can share your valuable feedback related to this article and share with us how this article is helpful for you.
Leave a Reply