Carbon语言

Carbon
Carbon语言在GitHub上的徽标
Carbon语言在GitHub上的徽标
语言家族C
設計者Google
型態系統静态类型标称类型英语Nominal type system隐含类型
實作語言C++
許可證Apache-2.0
文件扩展名.carbon
網站github.com/carbon-language/carbon-lang
啟發語言
C++,Rust

CarbonCarbon-lang是一个实验性的通用编程语言,旨在成为“C++的后继语言”。该项目开放源代码,由Google启动,沿用了之前Google自创的编程语言的脚步(Go和 Dart)。Google工程师钱德勒·卡鲁斯(英語:Chandler Carruth)在2022年7月多伦多的CppNorth会议上首次向公众介绍Carbon语言。[1][2][3]

该语言旨在修复C++的几个明显缺点[4],但提供了类似的功能集。该语言的主要目标是可读性和“双向互操作性”,因此不会像Rust那样存在语言障碍(虽然基于C++,但与C++不兼容)。语言的更改将由 Carbon 负责人决定。[5][6][7][8]

Carbon语言的文档、设计、实现和相关工具托管在GitHub上,基于Apache-2.0许可证(带有LLVM异常)。[9]

示例

Hello, world!

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

参考文献

  1. ^ Scheduled events for Tuesday, July 19, 09:00 - 10:30. CppNorth, The Canadian C++ Conference, July 17-20, 2022. CppNorth. [2022-07-21] –通过Sched.com. 
  2. ^ Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022. CppNorth. 2022-07-22 [2022-07-26]. (原始内容存档于2022-07-29) –通过YouTube. 
  3. ^ Bradshaw, Kyle. Carbon, a new programming language from Google, aims to be C++ successor. 9to5Google. 19 July 2022 [2022-07-26]. (原始内容存档于2022-07-29). 
  4. ^ Difficulties improving C++. carbon-language/carbon-lang repo. Google. 2022-07-21 [2022-07-26]. (原始内容存档于2022-07-21) –通过GitHub. 
  5. ^ Carruth, Chandler; Ross-Perkins, Jon; Riley, Matthew; Hummert, Sidney. Evolution and governance. carbon-language/carbon-lang repo. Google. 23 July 2022 [2022-07-26]. (原始内容存档于2022-07-25) –通过GitHub. 
  6. ^ Illidge, Myles. Google’s Carbon programming language aims to replace C++. MyBroadband. 21 July 2022 [2022-07-26]. (原始内容存档于2022-07-30). 
  7. ^ Jackson, Joab. Google Launches Carbon, an Experimental Replacement for C++. The New Stack. 20 July 2022 [2022-07-26]. (原始内容存档于2022-07-29). 
  8. ^ Mustafa, Onsa. Carbon, A New Programming Language from Google As A C++ Successor. PhoneWorld. 20 July 2022 [2022-07-26]. (原始内容存档于2022-07-25). 
  9. ^ carbon-lang/LICENSE. GitHub. 2020-06-16 [2022-07-24]. (原始内容存档于2022-07-24). 

外部链接

  • Carbon at the Compiler Explorer (godbolt) (页面存档备份,存于互联网档案馆
Google
部門
广告
通讯
硬件
软件
平台
开发工具
出版
搜索
算法
特征
分析
停止开发
人物
创始人
其它
活动
项目
房地产
相关
  • 主题 主题页面
  • 分类 相关分类
  • 共享资源页面 共享资源
Google 免费和开源软件
软件
应用程序
编程语言
  • Carbon
  • Dart
  • Go
  • Sawzall英语Sawzall (programming language)
框架和开发架构
  • AMP
  • Angular
  • AngularJS
  • Beam
  • Bazel英语Bazel (software)
  • Blockly
  • Closure Tools英语Google Closure Tools
  • Cpplint英语Cpplint
  • FlatBuffers英语FlatBuffers
  • Flutter
  • Gears
  • Gerrit
  • Guava英语Google Guava
  • gRPC
  • Gson
  • Guetzli英语Guetzli
  • Guice英语Google Guice
  • gVisor英语gVisor
  • Kubernetes
  • LevelDB
  • libvpx英语libvpx
  • NaCl
  • OR-Tools英语OR-Tools
  • Polymer英语Polymer (library)
  • TensorFlow
操作系统
相关

范型
过程式
面向对象
多范型
函数式
逻辑式
脚本语言
动态语言
Shell语言
ECMA-262
特定平台
.NET
JVM
特定领域
科学计算
GPU计算
  • Cg/HLSL
  • GLSL
  • Brook英语BrookGPU
  • OpenCL
  • CUDA/PTX英语Parallel Thread Execution
  • Futhark
  • SPIR-V英语Standard Portable Intermediate Representation
数据查询
可视化
传媒设计
 
其它
  • 分类 目录
  • 列表级条目 列表
  • 历史
  • 比较英语Comparison of programming languages
  • 时间线英语Timeline of programming languages