TIDE
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 make

Clone 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/odin

Verify installation:

odin version

Hello World Example

Create a file named main.odin:

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

Official Resources

On this page