== Clone of https://github.com/carbon-language/carbon-lang.git ==
|
|
4 سال پیش | |
|---|---|---|
| .github | 4 سال پیش | |
| .vscode | 4 سال پیش | |
| bazel | 4 سال پیش | |
| common | 4 سال پیش | |
| docs | 4 سال پیش | |
| explorer | 4 سال پیش | |
| github_tools | 4 سال پیش | |
| installers | 4 سال پیش | |
| migrate_cpp | 4 سال پیش | |
| proposals | 4 سال پیش | |
| scripts | 4 سال پیش | |
| third_party | 4 سال پیش | |
| toolchain | 4 سال پیش | |
| .bazelignore | 4 سال پیش | |
| .bazeliskrc | 4 سال پیش | |
| .bazelrc | 4 سال پیش | |
| .clang-format | 5 سال پیش | |
| .clang-tidy | 4 سال پیش | |
| .codespell_ignore | 4 سال پیش | |
| .gdbinit | 4 سال پیش | |
| .gitallowed | 5 سال پیش | |
| .gitignore | 4 سال پیش | |
| .pre-commit-config.yaml | 4 سال پیش | |
| .prettierrc.yaml | 5 سال پیش | |
| BUILD | 4 سال پیش | |
| CODEOWNERS | 5 سال پیش | |
| CODE_OF_CONDUCT.md | 4 سال پیش | |
| CONTRIBUTING.md | 5 سال پیش | |
| LICENSE | 5 سال پیش | |
| README.md | 4 سال پیش | |
| WORKSPACE | 4 سال پیش | |
| bazel-execroot | 5 سال پیش | |
| compile_flags.txt | 4 سال پیش | |
| pyproject.toml | 5 سال پیش | |
| setup.cfg | 4 سال پیش |
Carbon goals | Carbon and C++ | Take a look | Join us
<img src="docs/images/quicksort_snippet.svg" align="right" width="575"
alt="Quicksort code in Carbon. Follow the link to read more.">

Fast and works with C++
Modern and evolving
Welcoming open-source community
We believe Carbon must support:
While many languages share subsets of these goals, what distinguishes Carbon is their combination. For the Carbon project, they are prioritized in the above order to help make clear what tradeoffs we intend to make. However, each and every goal remains critically important: Carbon must have excellent C++ interoperability and migration to be successful.
Read the language overview for more on the language design itself, and the goals for more on these values.
If you're already a C++ developer, Carbon should have a short learning curve. It is built out of a consistent set of language constructs that should feel familiar. C++ code like this:
<img src="docs/images/cpp_snippet.svg" width="600"
alt="A snippet of C++ code. Follow the link to read it.">
can be mechanically transformed to Carbon, like so:
<img src="docs/images/carbon_snippet.svg" width="600"
alt="A snippet of converted Carbon code. Follow the link to read it.">
without loss of performance or readability. Yet, translating C++ to Carbon isn't necessary; you can call Carbon from C++ without overhead and the other way around. You can port your library to Carbon, or write new Carbon on top of your existing C++ investment. Carbon won't add a sea of dependencies or slow down your performance-critical code. For example:
<img src="docs/images/mixed_snippet.svg" width="600"
alt="A snippet of mixed Carbon and C++ code. Follow the link to read it.">
In terms of safety, any language that can seamlessly call C++ will not be perfectly safe in every dimension. However, Carbon's design encourages you to use safe constructs where possible.
Ultimately, C++ carries a significant historical legacy, including around ABI stability, that constrains its evolution. Carbon is an attempt to set a new direction for C++ developers that allows for fast development, flexibility, and delight without sacrificing performance, interoperability, and familiarity.
Read more about C++ interop in Carbon.
Learn more about Carbon's design:
Carbon is committed to a welcoming and inclusive environment where everyone can contribute.