crystal – crystal-lang
Crystal 编程语言
关键指标一览
主题标签
README 详细介绍
Crystal
<img src="https://github.com/crystal-lang/crystal/workflows/Linux%20CI/badge.svg" alt="Linux CI Build Status" class="ra0-md-img" loading="lazy" />
<img src="https://github.com/crystal-lang/crystal/workflows/macOS%20CI/badge.svg" alt="macOS CI Build Status" class="ra0-md-img" loading="lazy" />
<img src="https://github.com/crystal-lang/crystal/workflows/AArch64%20CI/badge.svg" alt="AArch64 CI Build Status" class="ra0-md-img" loading="lazy" />
<img src="https://github.com/crystal-lang/crystal/workflows/Windows%20CI/badge.svg" alt="Windows CI Build Status" class="ra0-md-img" loading="lazy" />
<img src="https://circleci.com/gh/crystal-lang/crystal/tree/master.svg?style=shield" alt="CircleCI Build Status" class="ra0-md-img" loading="lazy" />
<img src="https://badges.gitter.im/crystal-lang/crystal.svg" alt="Join the chat at https://gitter.im/crystal-lang/crystal" class="ra0-md-img" loading="lazy" />
<img src="https://www.codetriage.com/crystal-lang/crystal/badges/users.svg" alt="Code Triagers Badge" class="ra0-md-img" loading="lazy" />
Crystal is a programming language with the following goals:
- Have a syntax similar to Ruby (but compatibility with it is not a goal)
- Statically type-checked but without having to specify the type of variables or method arguments.
- Be able to call C code by writing bindings to it in Crystal.
- Have compile-time evaluation and generation of code, to avoid boilerplate code.
- Compile to efficient native code.
Why?
We love Ruby's efficiency for writing code.
We love C's efficiency for running code.
We want the best of both worlds.
We want the compiler to understand what we mean without having to specify types everywhere.
We want full OOP.
Oh, and we don't want to write C code to make the code run faster.
Project Status
Within a major version, language features won't be removed or changed in any way that could prevent a Crystal program written with that version from compiling and working. The built-in standard library might be enriched, but it will always be done with backwards compatibility in mind.
Development of the Crystal language is possible thanks to the community's effort and the continued support of 84codes and every other sponsor.
Installing
Follow these installation instructions
Try it online
Documentation
Community
Have any questions or suggestions? Ask on the Crystal Forum, on our Gitter channel or IRC channel #crystal-lang at irc.libera.chat, or on Stack Overflow under the crystal-lang tag. There is also an archived Google Group.
Contributing
The Crystal repository is hosted at crystal-lang/crystal on GitHub.
Read the general Contributing guide, and then:
- Fork it ()
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request