r/odinlang • u/gingerbill • 25m ago
Odin Just Broke Its ABI (On Purpose)
r/odinlang • u/According-Ad-7069 • 25m ago
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 • u/Beautiful_Major_3543 • 1d ago
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 • u/KarlZylinski • 1d ago
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 • u/OwnShine6578 • 21h ago
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 • u/ConferenceEvening423 • 1d ago
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 • u/Alcacholaruz • 2d ago
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 decodeAXZ -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)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 • u/VeraMarioneta • 5d ago
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 • u/xorvralin2 • 5d ago
r/odinlang • u/concerbed • 10d ago
r/odinlang • u/DarekBomb411 • 9d ago
Hello, this is a half rant post and a half question post. I am a bit new to all this "low level programming" stuff. I first tried to learn zig, but it's problem is the same one that this post describes, taken to an extreme. I then tried Go and it was better but it still had the same exact problem, and I found its whole package model to be very annoying, and I wanted to try manual memory management. So I am now trying out odin, but it too falls short in one crucial area that so many others do as well. Eventually I got so fed up with this seemingly easily solvable problem that here I am, making a post just to shit on half of all programming languages in existence, as they all have it.
The problem is a lack of useful tutorials to help people learn.
To demonstrate, let's take me trying to learn zig as an example:
I then decide that Go might be a nice language. I hear people talk about it:
I then move on and try out Odin, as apparently its similar to Go:
As you can see, I am a bit upset just in general. I can and have made a 16 bit computer by hand out of logic gates (in a logic simulator, i dont got money for breadboards) but cannot make a simple flappy bird clone because apparently no one knows how to teach people anything. This is bullshit. I'm done. I quit. I'm deleting my flappy bird. Was pretty shitty anyway.
The moral of the story is simple: People who are great at a subject cannot teach it for the life of them, and people bad at a subject are amazing at teaching it. Almost none can do both.
So that brings me onto my final point: can anyone prove me wrong? Does literally anyone know of a tutorial/guide for odin (well maybe others but I preferred odin the most out of these three) that truly does start from the basics without assuming I know X Y or Z ahead of time? (because clearly I don't)
Maybe this is just a skill issue on my part, and I'm just a bit dumb. Maybe I'm not. I don't know. That is why I made this post.
Thanks
EDIT:
Yes I did read through the documentation overview/getting started but as I said in one of the comments, "I find it to be just a plain list of features for already experienced people to read (hence the frequent C/C++ references) and not as something for people like me to learn stuff"
r/odinlang • u/Lucky-Space6065 • 18d ago
Running on an odin and open gl engine.
r/odinlang • u/Tolasmond • 17d ago
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 • u/marianpekar • 18d ago
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 • u/y0shii3 • 18d ago
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 • u/c0gster • 18d ago
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 • u/Additional_Name_706 • 22d ago
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.
r/odinlang • u/Inevitable_Stock2807 • 23d ago
Hello guys, what is the best practices to handle error in Odin? Is Go-style is the best way if err != nil but Odin doesn't allow shadowing variable.
note: Sorry my for my poor English and thank you.
r/odinlang • u/gruntastics • 24d ago
r/odinlang • u/itnufc • 27d ago
r/odinlang • u/DarthBheed • 27d ago
Eski is a single-node in-memory store with an Odin engine that speaks RESP, so Redis clients connect unchanged: the full single-node command surface including streams, geo, ACLs, persistence and Lua scripting with Functions, minus replication, Sentinel and Cluster. Apache-2.0, one static binary.
r/odinlang • u/KarlZylinski • 29d ago
Highlights: Mipmap support and texture wrapping settings. Tested with Odin dev-2026-11
Karl2D is a library for creating 2D video games. It has few dependencies (tries to stay in Odin land) and emscripten-free web build support.
r/odinlang • u/Similar_Place6762 • Oct 31 '26