The Odin programming language is designed with the intent of creating an alternative to C with the following goals:

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

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

Documentation:

User Libraries:

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

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

} [/code]

Demonstrations:

Recent Activity

Jason
bpunsky
New forum thread: Full compile time execution?
Jason
Blog comment: Odin Goals for 2019
Mikkel
New blog post: Odin Goals for 2019
Ginger Bill
Forum reply: Debugging?
ratchetfreak
New forum thread: Debugging?
Jason
Jason