Skip to content

crystal-lang/crystal

Folders and files

NameName
Last commit message
Last commit date
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025
Jan 4, 2024
Oct 19, 2024
Jan 13, 2025
Oct 15, 2024
Sep 5, 2024
Dec 4, 2024
Jan 18, 2025
Jan 21, 2025
May 1, 2018
Mar 28, 2024
Jan 1, 2024
Feb 19, 2021
Nov 24, 2023
Jan 10, 2025
Sep 20, 2022
Dec 10, 2024
Apr 10, 2020
Nov 26, 2024
Aug 21, 2024
Jan 2, 2025
Feb 9, 2024
Aug 20, 2023
May 18, 2024
Jan 13, 2025
Jan 13, 2025
Jan 13, 2025

Crystal

Linux CI Build Status macOS CI Build Status AArch64 CI Build Status Windows CI Build Status CircleCI Build Status Join the chat at https://gitter.im/crystal-lang/crystal Code Triagers Badge


Crystal - Born and raised at Manas

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

play.crystal-lang.org

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:

  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