Crystal

Crystal is a statically typed, compiled programming language with Ruby inspired syntax and global type inference.

Installation

Install the crystal package or crystal-gitAUR for the latest development version.

The dependency manager shards is also available in the repositories; install the shards package or shards-gitAUR for the latest development version.

Usage

To compile and run a Crystal program:

$ crystal hello_world.cr

To compile a Crystal program to a binary:

$ crystal build hello_world.cr

To compile an optimized binary:

$ crystal build --release hello_world.cr

For more options see:

$ crystal help
gollark: That is not a problem. The lack of required moderation actions is a GOOD thing.
gollark: I know I haven't exactly done much as a staff, but there doesn't seem to be much staffing which needs doing and/or that I can do.
gollark: How weird.
gollark: I've got code for it sort of written, but it doesn't support images or anything yet, and doesn't tell you what answers were right and wrong.
gollark: I should launch the osmarks.tk quiz™.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.