Languages
Odin
Installing Odin on Ubuntu in TIDE
Odin
Odin is a general-purpose programming language designed for high performance, modern systems programming, and data-oriented design.
Installation
Install the build dependencies (LLVM and clang):
apt update
apt install -y clang llvm libstdc++-12-dev libsdl2-dev git makeClone and build Odin from source:
git clone https://github.com/odin-lang/Odin /opt/Odin
cd /opt/Odin
make
ln -s /opt/Odin/odin /usr/local/bin/odinVerify installation:
odin versionHello World Example
Create a file named main.odin:
package main
import "core:fmt"
main :: proc() {
fmt.println("Hello, TIDE!")
}Running the Code
Compile and run the Odin program:
odin run main.odin -file