Skip to content

Odin programming language - a playground for curiosity and deep personal notes

Notifications You must be signed in to change notification settings

Neal-C/hello-odin

Repository files navigation

A Odin-lang playground, for curiosity

https://odin-lang.org/ && https://github.com/odin-lang/Odin

At time of writing, February 3rd 2024, Odin has not yet reached version 1.0

Notes :

  • Presented as ideal for Game Development (see SOA data types)
  • odin-lang has SOA Data Types

"Array of Structures (AoS), Structure of Arrays (SoA), and Array of Structures of Arrays (AoSoA) refer to differing ways to arrange a sequence of data records in memory, with regard to interleaving. These are of interest in SIMD and SIMT programming."

  • Data Oriented Programming language
  • It presents itself a C alternative
  • Great community
  • it uses and leverage existing build tools ( LLVM, Clang)

Goals:

  • remove UB from C at the instruction level
  • compile to C code

Instructions

Requirements: Odin-lang compiler or Docker

With Docker

clone my repository

git clone git@github.com:Neal-C/hello-odin.git
cd hello-odin

build and run with Docker

docker build -t neal-c:hello-odin . && docker run --name neal-c-odin-lang neal-c:hello-odin

With odin-lang

See docs: https://odin-lang.org/docs/install/

and install odin compiler locally on your machine

About

Odin programming language - a playground for curiosity and deep personal notes

Topics

Resources

Stars

Watchers

Forks