Aucune description

Jeroen van Rijn c9c237babf match_exact_value: return when type is compound il y a 10 mois
.github cded6b8479 possibly fix not having shared dir in recent windows releases il y a 9 mois
base d85f18e898 math/rand: add `choice_bit_set` il y a 9 mois
bin 930a147f24 Update to LLVM 18.1.8 il y a 1 an
ci a15afccd36 ci: aware il y a 1 an
core d9326ae93d fix cbor.to_json always returning array of tuples for objects il y a 9 mois
examples 15a8970493 Fix typo in demo.odin il y a 11 mois
misc 791b05b14f Merge pull request #2600 from Hyrtwol/icon-for-odin-exe il y a 1 an
shared cc14180e9d Update README.md il y a 6 ans
src c9c237babf match_exact_value: return when type is compound il y a 9 mois
tests 3740497e42 encoding/cbor: fix skipping of ignored/missing fields in struct unmarshal il y a 9 mois
vendor f3c19e183f wgpu: add missing JS impl for RenderPassEncoderSetBlendConstant il y a 9 mois
.editorconfig 152ac61faf editorconfig: Use 2-column spaces in YAML il y a 1 an
.gitattributes 9591eb2ed5 Tell Git to always treat Makefile and build_odin.sh as Nix EOL il y a 1 an
.gitignore 171d917b7e odin manifest file il y a 1 an
LICENSE 83c9739a7d Update year il y a 1 an
LLVM-C.dll 930a147f24 Update to LLVM 18.1.8 il y a 1 an
Makefile 8b98fff98e add debug build message and align more with build.bat il y a 1 an
PROPOSAL-PROCESS.md 44cfa3484f Fix typo il y a 4 ans
README.md 53500699a9 README.md: Fix wiki link il y a 1 an
build.bat bb29304029 remove wmic and mandatory git requirement il y a 11 mois
build_odin.sh 249242687c Fix build for linux aarch64 architectures il y a 11 mois
build_vendor.bat 439f4776e4 Add cgltf to build_vendor.bat il y a 2 ans
odin.rdi 28d01ce7b5 cached.cpp: Improve internal cached robustness il y a 9 mois
shell.nix 2411febf83 add shell environment for Nix il y a 1 an

README.md

Odin logo
The Data-Oriented Language for Sane Software Development.


The Odin Programming Language

Odin is a general-purpose programming language with distinct typing, built for high performance, modern systems, and built-in data-oriented data types. The Odin Programming Language, the C alternative for the joy of programming.

Website: https://odin-lang.org/

package main

import "core:fmt"

main :: proc() {
	program := "+ + * 😃 - /"
	accumulator := 0

	for token in program {
		switch token {
		case '+': accumulator += 1
		case '-': accumulator -= 1
		case '*': accumulator *= 2
		case '/': accumulator /= 2
		case '😃': accumulator *= accumulator
		case: // Ignore everything else
		}
	}

	fmt.printf("The program \"%s\" calculates the value %d\n",
	           program, accumulator)
}

Documentation

Getting Started

Instructions for downloading and installing the Odin compiler and libraries.

Nightly Builds

Get the latest nightly builds of Odin.

Learning Odin

Overview of Odin

An overview of the Odin programming language.

Frequently Asked Questions (FAQ)

Answers to common questions about Odin.

Packages

Documentation for all the official packages part of the core and vendor library collections.

Odin Documentation

Documentation for the Odin language itself.

Odin Discord

Get live support and talk with other Odin programmers on the Odin Discord.

Articles

The Odin Blog

The official blog of the Odin programming language, featuring announcements, news, and in-depth articles by the Odin team and guests.

Warnings

  • The Odin compiler is still in development.