What is Carbon? A successor of C++?

in LeoFinance2 years ago (edited)

Google engineers developed the Carbon programming language to address the shortcomings of C++.

Many existing languages like Golang and Rust already exist that mirror the performance of C++ without its shortcomings. Unfortunately, these languages present significant barriers to the migration of existing C++ codebases.

Carbon aims to be what TypeScript is to JavaScript, and Kotlin is to Java. It is not a replacement, but a successor language designed around interoperability with C++. It aims for large-scale adoption and migration for existing codebases and developers.

Getting Started With Carbon

You can explore Carbon right now by checking out the codebase and using Carbon explorer:

Install bazelisk using Homebrew.

$ brew install bazelisk

Install Clang/LLVM using Homebrew.

Many Clang/LLVM releases aren't built with options we rely on.

$ brew install llvm
$ export PATH="$(brew --prefix llvm)/bin:${PATH}"

Download Carbon's code.

$ git clone https://github.com/carbon-language/carbon-lang
$ cd carbon-lang

Build and run the explorer.

$ bazel run //explorer -- ./explorer/testdata/print/format_only.carbon


According to the Carbon roadmap, Google will make the experiment public with the release of a core working version (0.1) by the end of 2022. They plan to follow this with a 0.2 version in 2023 and a full 1.0 release in 2024–2025.

Sort:  

Congratulations @keyboard97! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You received more than 10 upvotes.
Your next target is to reach 50 upvotes.
You made more than 10 comments.
Your next target is to reach 50 comments.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Our Hive Power Delegations to the August PUM Winners
Feedback from the September 1st Hive Power Up Day
Hive Power Up Month Challenge 2022-08 - Winners List
Support the HiveBuzz project. Vote for our proposal!