Odin README

The project's README from github.com/odin-lang/Odin. As one markdown file: 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.

Examples

Examples on how to write idiomatic Odin code. Shows how to accomplish specific tasks in Odin, as well as how to use packages from core and vendor.

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

Odin (odin-lang/Odin)

Searching Database…

12.2K ·GitHub
这是什么?Odin 是一种通用的、面向数据的编程语言,专为高性能和现代系统编程而设计,定位是 C 语言的替代品。
这是一个新语言的编译器,还是某个现有语言的库或框架?它是 Odin 语言本身的编译器,以及 core 和 vendor 库集合,并不是可以添加到其他语言中的库。
我该如何让 Odin 编译器运行起来?按照官方 Getting Started 文档下载并安装 Odin 编译器和库即可;如果想用最新的改动,也可以使用 nightly 每日构建版本。
Odin 编译器可以用于生产环境吗?不可以。项目明确提示编译器仍在开发中,因此可能会有 bug,并且可能出现破坏性变更。
Odin 支持哪些操作系统?Odin 面向跨平台的系统编程,项目标注支持 Linux、macOS 和 Windows。
除了编译器文档,我还能去哪里学习这门语言本身?可以查看 Overview of Odin、FAQ、core 和 vendor 库的包文档,以及一组惯用写法的 Examples 示例代码,还有官方博客,上面有公告和文章。
我为什么要选 Odin 而不是 C?Odin 的宣传语是“the C alternative for the joy of programming”(让编程更有乐趣的 C 替代品),它提供了独特的类型系统和内置的面向数据的数据类型,同时瞄准与 C 相同的底层、高性能应用场景。
What are similar projects?Singeli, CalcKernel, goose, rust, compiler, carbon-lang, Nim, v
Creator
odin-lang
Size
606.2 MB
Stars
12.2K
Age
9y
Commits · 90 Days