Languages
Crystal
Installing Crystal on Ubuntu in TIDE
Crystal
Crystal is a compiled, statically type-checked programming language with Ruby-inspired syntax and C-like performance.
Installation
Install Crystal on Ubuntu using the official installer script:
apt update
apt install -y curl gnupg libssl-dev libxml2-dev libyaml-dev libgmp-dev libz-dev
curl -fsSL https://crystal-lang.org/install.sh | bashVerification
Check the installed Crystal version:
crystal --versionWriting and Compiling Code
Create a Crystal file named hello.cr:
puts "Hello, World!"Execute the file directly:
crystal run hello.crAlternatively, compile it to a native binary:
crystal build hello.cr
./hello