No Description

gingerBill f96fbc94c8 v0.9.0 Release 6 years ago
core d035d48c8e Fix issue #280 6 years ago
examples f96fbc94c8 v0.9.0 Release 6 years ago
misc f96fbc94c8 v0.9.0 Release 6 years ago
src bb62bed981 Remove assert that should have never been there 6 years ago
.gitignore 9e0b69312b Fixed foreign import for linux. Modified .gitignore to ignore temp files and files in shared/. Added a Makefile for linux 7 years ago
LICENSE 9a8759efef Polymorphic type specialization for procedures 8 years ago
Makefile e04ba7530d Updated makefile to run demo package instead of demo.odin 7 years ago
README.md 6181c4edb3 Update 7 years ago
build.bat c8b30de771 Update compiler flags for build.bat 7 years ago
build.sh efe4b71bae Fix build.sh 7 years ago

README.md

Odin logo
A fast, concise, readable, pragmatic and open sourced programming language.

The Odin Programming Language

The Odin programming language is fast, concise, readable, pragmatic and open sourced. It is designed with the intent of replacing C with the following goals:

  • simplicity
  • high performance
  • built for modern systems
  • joy of programming
  • metaprogramming

Website: https://odin.handmade.network/

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);
}

Demonstrations:

Documentation

Requirements to build and run

  • Windows

    • x86-64
    • MSVC 2010 installed (C++11 support)
    • LLVM binaries for opt.exe, llc.exe, and lld-link.exe
    • Requires MSVC's link.exe as the linker
      • run vcvarsall.bat to setup the path
  • MacOS

    • x86-64
    • LLVM explicitly installed (brew install llvm)
    • XCode installed (for the linker)
  • GNU/Linux

    • x86-64
    • Build tools (ld)
    • LLVM installed
    • Clang installed (temporary - this is Calling the linker for now)

Warnings

  • This is still highly in development and the language's design is quite volatile.
  • Syntax is not fixed.