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
Requirements: Odin-lang compiler or 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
See docs: https://odin-lang.org/docs/install/
and install odin compiler locally on your machine