r/odinlang • • 1h ago

Is there a standard tool to generate HTML from an odin-doc?

4 Upvotes

Was reading over the "New Package Documentation" article on the Odin Forum and I realized that while there were rules for HTML generation, there wasn't a specific tool. Does a standard tool to generate HTML like pkg.odin-lang.org already exist, or do I need to make one myself?


r/odinlang • • 3h ago

Where to learn odin and the ecosystem

5 Upvotes

Hey guy, as the title says i want to learn odin and would be Nice to know if there’s something ou somewhere to start or do i just read the docs and go build something? Also i know the build system is inegrated and all but stuff like debugging and libs ate also native?


r/odinlang • • 6h ago

I was wondering how to do this sort of a thing in odin...

7 Upvotes

I come from a background of C programming and generally for logging and debugging purposes I print out the names of the variables as well (using the macro system

Basically creating a stringify macro as such:

#define STRINGIFY(x) #x

I was wondering how i can achieve this in odin... I cant seem to find it in the documentation.


r/odinlang • • 1d ago

RICO-16 - A spiritual successor to PICO-8 built in Odin.

Thumbnail
gallery
37 Upvotes

hey guys!

I wanted to share a project I've working on for a few weeks. It's a fantasy console, a spiritual successor to PICO-8.

It's built in Odin with SDL3 and uses Lua as the scripting language (tho i plan to support other languages in the future)

I call it a spiritual successor because it's like the SNES for the NES (256x224 screen, 16 palettes, 16x16 sprites, mode7, 64kb carts, etc)

source: https://github.com/FinochioM/rico16
download: https://efematt.itch.io/rico16

happy to hear your thoughts if you give it a try.


r/odinlang • • 3h ago

I built votty, a terminal for AI coding agents

Post image
0 Upvotes

I've been building votty, a GPU-accelerated terminal written in Odin.

It lets you manage multiple AI coding agents (Claude Code, Codex) in a single live canvas.

Each workspace is a node showing its current state. Agents can spawn workers in separate Git worktrees, run tests, handle failures, and ask for approval before merging all through votty.

Features include checkpoints, token budgets, node connections, and CLI automation.

Source: https://github.com/tuna4ll/votty

Still a work in progress. Feedback and contributions are welcome!


r/odinlang • • 1d ago

Can't believe it happened, I'm feeling the joy of programming again!

103 Upvotes

I'm a performance engineer, and I have never in all my life found a language that allowed me to write, read, and document code that gives me high performance data structures with multiple different layout access semantics just by changing a declaration, clean C style header doc comments, crisp SIMD intrinsics, lovely looking bit maps, bit fields, bit sets, swizzling... Whatever your heart (and CPU) desires.

Let alone in elegant, 65 character width space, so that I can have stdlib open on the same laptop while font size is zoomed for my fading eyesight.

Have a look at that! Superb syntax. And sidenote: whoever made ols did a superb job. Being able to confirm my struct layout, and field align/offset requirements through nvim's .hover(). Brilliant!


r/odinlang • • 21h ago

How / where do I report a compiler error?

Post image
2 Upvotes

Tried to generate docs for my project, and got this. Should I go to the odin forum or somewhere else?


r/odinlang • • 1d ago

Odin Just Broke Its ABI (On Purpose)

Thumbnail
youtube.com
112 Upvotes

r/odinlang • • 1d ago

RE: Good tutorials

24 Upvotes

A recent post in this subreddit lamented the lack of good low level programming tutorials in Odin. I wanted to ask generally, is there demand for this kind of thing amongst this community? I'd assumed most people learning a low-level language would already be familiar with hardware and programming fundamentals, but if that isn't the case it would be great to know as I recently discovered Odin, fell in love with it, and have always wanted to make a video series on several related topics.

Coming from a semiconductor physics background and entering computer science from below, there's a lot of things you see that could be better explained with an interdisciplinary lens. I figured that'd be a somewhat unique spin on the tutorial genre.

Thought of calling it "Sand to Software", making it a YouTube series that goes from the humble silicon dioxide sand grain, all the way through to a subset of 8086 assembly (or some RISC varietal). The low level people like Bill/Casey/Andrew/Ed have most things from assembly up covered, but the abstraction layers below CPU components tends to stay a black box, and there's a pretty logical ladder it can be explained in incrementally.

I'd throw in some "how to think when facing an empty text editor" to address those with frustrations like the other OP's, to teach how we tend to think about code from the electrical engineering side. It's much more aligned with the Wirth and earlier schools of thought from the 60s/70s - can be very different to the platonic abstract academic approach you see in most tertiary courses today, where you get started on day one learning classes and domain modelling in enterprise Java, then graduate to asymptotic growth rates and data structures + algorithms, before finally being kicked out the door with maybe a lecture on the Unix socket and exec()/fork() if you're lucky.

Interested to hear folks' thoughts, if it'd be a worthwhile thing to make or if the audience intersection would be insignificant.


r/odinlang • • 1d ago

WasmPascal actually working

9 Upvotes

I've been working on WasmPascal for quite some time now. It's a Pascal to Wasm compiler, written in Odin, of course. I really like and enjoy Odin, but I miss Pascal! So for nostalgia's sake, I've been tinkering with bringing Pascal to the web. Someone took my compiler and created this simulator with it. To be honest, I didn't even think this is possible. Sure, I've been working on it, testing it, trying out things, but for someone else to actually be able to use it, haha, no way!

Of course there's a ton of bugs and features and whatnot, which I hope to get time for over the holidays. Odin's really put the joy of programming back for me.


r/odinlang • • 2d ago

Asteroids with Odin + Raylib

80 Upvotes

Hey there, I thought I'd share this little asteroids game I made with Odin and Raylib over the past two months.

Play it here: https://caffeinatedstudios.itch.io/asterodins

I work as a web developer by day and have been building games in Unity for a few years now. Over the course of the past year, I started delegating a lot of my programming to AI. I use it to write code all day at work and, at this point, the last thing I want to do when I clock out is ask an AI to build my game for me.

Long story short, I wanted to challenge myself to write code by hand again. Let me tell ya, it was super fun! I forgot just how fulfilling it is to solve a problem after you've been stuck on it for a while. Also, rediscovering the feeling of locking in and writing code for hours and wondering where the time went.

Anyways huge shoutout to u/KarlZylinski. Still making my way through your Odin book, but it was super helpful when I got started. Also for the great reference repos on your GitHub.

Source code (it ain't pretty, but it works): https://github.com/logan-larson/asterodins

Building for web: https://github.com/karl-zylinski/odin-raylib-web

Created sound effects: https://sfxr.me/


r/odinlang • • 3d ago

New Karl2D release: beta-2026-12. Highlights: Android support and a shader compiler.

Thumbnail
github.com
29 Upvotes

Karl2D is a library for making 2D video games. It aims to have as few dependencies as possible. That way most of the code between your game and the OS is within the library. Just modify the library source, recompile your game and you're running your modded Karl2D.


r/odinlang • • 3d ago

An easy-to-use CLI Framework

Thumbnail
codeberg.org
11 Upvotes

Hello, everybody!

I am currently making a minimal framework for building CLI Tools as a side-project to learn about the Odinlang.
I tried to make it a little bit different than usual CLI Frameworks since there is no flags attached to it!
At the moment, it has `help` support and also the `version` command.

The code inside the repo is BSD 3-Clause, so you can pretty much do anything you want with it!


r/odinlang • • 2d ago

We're building Mirai: a native 3D engine where AI agents are first-class (Windows, macOS, Linux)

0 Upvotes

Hi! We're building Mirai, an open-source native 3D engine and editor written in Odin.

- Agent-native: every editor feature is a typed MCP, so Claude, Codex or any agent can drive it

- Native on Windows, macOS and Linux

- Fast compile times: the full engine and editor rebuild in about 13 s

- Live collaboration, built-in multiplayer and physics, real-time ray-traced GI

- No telemetry, no fees

More here: https://x.com/mirai3d/status/2127528627575116192

Repo: https://github.com/mirai-engine/mirai

Feedback very welcome!


r/odinlang • • 4d ago

Wrote a multi-core-native, SIMD lossless compression codec, originally for my engine, but just released to github with permissive license!

Thumbnail
github.com
25 Upvotes

Hey everyone,

I originally built this compression algorithm for my own game engine because I wanted an open-source middle ground between LZ4 and Zstd for game dev workloads (paks, streaming assets, snapshots, small netcode packets). Full disclosure: I have background in network and low-level optimization, and I used AI to help me bridge the domain gap in compression itself while steering the architecture, profiling, and verifying everything on real hardware.

It turned out useful enough that I split it into a standalone zero-dependency library + CLI in both C11 and native Odin (100% wire-compatible, Apache-2.0, Linux/macOS/Windows):

https://github.com/JoseIgnacioAragon/axz

Quick numbers on the standard 202 MiB Silesia corpus (Intel Core 7 240H, AVX2, in-memory):

  • AXZ -1: 2.21x | 3.36 GiB/s 1T / 17.0 GiB/s 16T decode
  • AXZ -5: 2.90x | 3.24 GiB/s 1T / 17.0 GiB/s 16T decode (matches Zstd -1 ratio while decoding ~2x faster 1T and ~11x faster 16T, since standard Zstd frames don't parallelize decode)
  • On a 32T Ryzen 9 7950X (AVX-512VBMI2) it scales up to 58 GiB/s multi-core decode.

It's multi-core native in the wire format, skips bit-level Huffman/ANS in favor of SIMD planar tables, and includes 11 per-chunk pre-filters (RGBA8, Float4_Xor, Delta, SoA, etc.) plus 8-byte micro-packets + 8 KiB dictionaries for small RPC/netcode payloads. ARM64 NEON isn't in yet (runs scalar fallback for now), and -5 is intentionally slow to encode for offline asset cooking.


r/odinlang • • 7d ago

Odin game framework

33 Upvotes

I’m new to Odin, and I have to say it has brought back the joy of programming for me. What I find curious is that although Odin seems like a great fit for the game dev community, there isn’t a game framework comparable to MonoGame or libGDX. I know there’s a Raylib wrapper and Karl2D, but each has its own drawbacks. I understand that building something like this would be a major undertaking, but I think a code-first game framework with both mobile and desktop support would make Odin very appealing to the indie community. Maybe we could crowdfund it, with JangaFX also contributing by open-sourcing part of the core functionality such a project would need. What do you think?


r/odinlang • • 7d ago

I spent some evenings building a write- counterpart to core:image/png by porting stb_image_write.h to Odin

Thumbnail
github.com
9 Upvotes

r/odinlang • • 12d ago

Windows installer for the Odin Programming Language + MSVC and Windows SDK (by Karl Zylinski)

Thumbnail
github.com
36 Upvotes

r/odinlang • • 19d ago

Isaac inspired rougelike with heavy synergies in early build.

30 Upvotes

Running on an odin and open gl engine.


r/odinlang • • 19d ago

GitHub - Tolasmond/scanned_card_cutter

Thumbnail
github.com
5 Upvotes

Scanned Card Cutter finds the cards on a scan, lets you check and adjust each one with a live preview, and saves every card as a PNG with transparent rounded corners. It can also remove the moiré pattern that printed halftone dots leave on a scan.

It is a small desktop app written in Odin with raylib, and it builds with only what ships with Odin. It runs on Linux, Windows and macOS (untested).


r/odinlang • • 20d ago

Physics Engine in Odin from Scratch, Part VII

Thumbnail
marianpekar.com
78 Upvotes

It took a bit longer than usual. I wanted to have Part VII done by the end of October, but life got in the way :).


r/odinlang • • 20d ago

Const values initialized at runtime?

10 Upvotes

I have been curious about learning Odin lately, and reading through the docs, I cannot find anything about initializing constant variables with runtime values. It seems like :: only works at compile time, and if you assign from a runtime value with :=, the variable is always mutable? Doesn't that slow you down sometimes, not having a way to know that a variable isn't modified without checking through the whole scope? Or have I just not read the docs right?


r/odinlang • • 20d ago

How to get the language server to update the editor suggestions immediately instead of upon save?

9 Upvotes

Hello, I am very new to Odin, and I first wanted to get my editor (vscodium/vs code) to properly warn me about errors, provide suggestions for stuff, tell me what arguments functions take in, etc etc.

I installed the language server from https://github.com/DanielGavin/ols and also the VS Code "Odin Language" extension by DanielGavin. Initially it seemed to work, but it seemed to only update its analysis and suggestions of the code when I saved the file which is extremely annoying.

I did some research (aka asking chatgpt how to do it because usually its way faster than reddit and I wanted to get on with my day dont judge me) and found that I needed to create an ols.json file in my project root and put this in it:

{
    "collections": [
        {
            "name": "core",
            "path": "/path-to-odin-folder/core"
        },
        {
            "name": "vendor",
            "path": "/path-to-odin-folder/vendor"
        }
    ],
    "enable_checker_only_saved": false,
    "enable_checker_on_change": true,
    "checker_on_change_delay": 400
}

And it seems to work! It updates immediately without me needing to save the file.

However, creating this ols.json for every single project I open is pretty annoying, considering that I probably won't have it do anything else besides this one specific thing. I wasn't able to find any answer online on how to get this to work without each project having an individual ols.json file, so I came here to ask how I can do it.

Thanks


r/odinlang • • 24d ago

Progress update

35 Upvotes

A few months ago, I posted this:
not a fluid sim, not ecs : r/odinlang

So, I'm just here for a little progress update.

I've made a lot of improvements to the core engine but the majority of the codebase is now gameplay scripting...

The playtest is open, if you'd like to try it.

https://store.steampowered.com/app/5413470/Primordaeon/