Home Tech News Carbon: Google programming language as a C++ successor

Carbon: Google programming language as a C++ successor

by anupmaurya
3 minutes read

Carbon, the latest programming language to be built within Google, was unveiled today as an experimental successor to C++.

FamilyC
DeveloperGoogle
First appeared19 July 2022
Preview release0.1 / 19 July 2022
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
OSCross-platform
Filename extensions.carbon
Websitehttps://github.com/carbon-language/carbon-lang
Influenced byC++, Rust

Programming languages are constantly improving and developing, and have been replaced in recent years with models that are even easier to use. Apple’s own Swift language has opened up several possibilities to the less experienced that its predecessor, Objective-C, for example.

Today, at the Cpp North convention in Toronto, as shared by Conor Hoekstra who was in attendance and documented the slides, Googler Chandler Carruth shared the vision for a new programming language called Carbon. To set the scene, Carruth showed how programming languages are constantly improving and developing, and have been replaced in recent years with models that are even easier to use. Apple’s own Swift language has opened up several possibilities to the less experienced that its predecessor, Objective-C, for example.

The language is developed as a free and open source project under the Apache License (version 2).

Carbon Language: An experimental successor to C++ – Chandler Carruth – CppNorth 2022

Hello World Program in Carbon

package sample api;    
fn Main() -> i32 {
    Print("Hello, world!");
    return 0;
}

Language Goals of Carbon Programming Language

Carbon is Designed to Support

  • 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

You may also like

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.