Skip to content

Carbon (programming language)

(소스코드를 예쁜 이미지로 출력해 주는 앱은 Carbon 항목 참조)

Carbon is an experimental general-purpose programming language created at Google to be a "C++ successor language". It was first presented to the public by Chandler Carruth at the CppNorth conference in July of 2022. The language intends to fix several perceived shortcomings of C++ but otherwise provide a similar feature set. The main goals of language are readability and "bi-directional interoperability" so there will not be a language barrier like Rust had. The language will be designed and developed on GitHub, as opposed to the ISO process C++ uses.

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

Features

  • Java → Kotlin, JavaScript → TypeScript 처럼 기존 에코시스템 호환이 가능한 언어를 목표.
    • Rust가 C++을 계승한다고 얘기되지만, C++ 에코시스템을 Rust로 옮기는 것은 어려움
  • C++ → Carbon 으로 아주 손쉽게 이관 가능하며, 양방향 호환
  • LLVM 을 이용하여 C++ 정도의 성능 제공
  • 상속에서 템플릿까지 기존 C++ 코드와 상호 운용
  • 기존 C++ 빌드 시스템 그대로 활용 가능
  • C++ 개발자들이 쉽게 배울 수 있음

See also

Favorite site