Crystal: Difference between revisions
(Update Interlanguage link) |
(→Installation: Move body of #Shards here since it only deals with installing shards.) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Programming languages]] | [[Category:Programming languages]] | ||
[[es:Crystal]] | |||
[[ja:Crystal]] | [[ja:Crystal]] | ||
[[zh-hans:Crystal]] | [[zh-hans:Crystal]] | ||
[[Wikipedia:Crystal (programming language)|Crystal]] is a statically typed, compiled programming language with [[Ruby]] inspired syntax and global type inference. | [[Wikipedia:Crystal (programming language)|Crystal]] is a statically typed, compiled programming language with [[Ruby]] inspired syntax and global type inference. | ||
Line 7: | Line 7: | ||
== Installation == | == Installation == | ||
[[Install]] the {{Pkg|crystal}} package or {{AUR|crystal-git}} for the latest development version. | |||
The dependency manager ''shards'' is also available in the repositories; [[install]] the {{Pkg|shards}} package or {{AUR|shards-git}} for the latest development version. | |||
== Usage == | == Usage == | ||
To compile and run a Crystal program: | To compile and run a Crystal program: | ||
$ crystal hello_world.cr | |||
To compile a Crystal program to a binary: | To compile a Crystal program to a binary: | ||
$ crystal build hello_world.cr | |||
To compile an optimized binary: | To compile an optimized binary: | ||
$ crystal build --release hello_world.cr | |||
For more options see: | For more options see: | ||
$ crystal help | |||
== See also == | == See also == | ||
* [ | * [https://crystal-lang.org The official website] | ||
* [ | * [https://crystal-lang.org/docs/ The official documentation] | ||
* [ | * [https://crystal-lang.org/api/ The standard library reference] | ||
* [https://github.com/crystal-lang/crystal The official GitHub repository] | * [https://github.com/crystal-lang/crystal The official GitHub repository] | ||
* [https://play.crystal-lang.org/#/cr Online code evaluation] | * [https://play.crystal-lang.org/#/cr Online code evaluation] | ||
* [ | * [ircs://irc.libera.chat/crystal-lang #crystal-lang IRC channel] |
Latest revision as of 19:19, 4 July 2021
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