Crystal

Crystal编程语言。(The Crystal Programming Language.)

Github星跟蹤圖

Crystal

Travis CI Build Status
CircleCI Build Status
Join the chat at https://gitter.im/crystal-lang/crystal
Bountysource
Code Triagers Badge


born-and-raised

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

Crystal is still under heavy development. There can be breaking changes but we're trying to keep them as minimum as possible.

The development is possible thanks to the community's effort, 84codes' support, and every BountySource supporter.

Installing

Follow these instructions

Try it online

play.crystal-lang.org

Documentation

Community

Questions or suggestions? Ask on the Crystal Forum, on our Gitter channel or IRC channel #crystal-lang at chat.freenode.net, or on Stack Overflow under the crystal-lang tag. There is also an archived Google Group.

Contributing

Read the general Contributing guide, and then:

  1. Fork it (https://github.com/crystal-lang/crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

主要指標

概覽
名稱與所有者crystal-lang/crystal
主編程語言Crystal
編程語言Shell (語言數: 14)
平台BSD, Linux, Mac, Windows
許可證Apache License 2.0
所有者活动
創建於2012-11-27 17:32:32
推送於2025-06-30 11:59:54
最后一次提交2025-06-30 13:59:53
發布數151
最新版本名稱1.16.3 (發布於 2025-05-12 21:46:10)
第一版名稱ruby (發布於 2013-11-29 10:54:18)
用户参与
星數19.8k
關注者數412
派生數1.6k
提交數16k
已啟用問題?
問題數7776
打開的問題數1738
拉請求數6487
打開的拉請求數262
關閉的拉請求數1256
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?