Odin
Odin copied to clipboard
Odin Programming Language
Do: ``` cd /tmp mkdir '$' cd '$' printf "package main\nmain::proc(){}\n" > main.odin odin build . ``` Output: ``` clang: error: no such file or directory: '/tmp/hBcmain-7f905ae5c980.o' clang: error: no...
For the most part the GLFW bindings are a direct mapping of the original source files. For instance lots of `#defines` are mapped to constants in Odin. I think there...
Running `odin report` yields the following output: ``` Odin: dev-2025-05 OS: NixOS 25.05 (Warbler), Linux 6.12.30 CPU: AMD Ryzen 7 8840HS w/ Radeon 780M Graphics RAM: 15232 MiB Backend: LLVM...
## Context Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions. ``` Odin: dev-2025-01:20fa9fbd6 OS: openSUSE...
[This function](https://github.com/odin-lang/Odin/blob/master/vendor/raylib/raymath.odin#L109) does in fact calculate the squared distance, the original raylib function is called "[Vector2DistanceSqr](https://www.raylib.com/cheatsheet/raymath_cheatsheet.html)". So the whole idea of this function is to not calculate the square root....
[`vendor:darwin/MetalKit`](https://pkg.odin-lang.org/vendor/darwin/MetalKit/) appears to contain only the "View Management" MetalKit APIs (see sidebar [here](https://developer.apple.com/documentation/metalkit?language=objc)) and not the "Texture Loading" or "Model Handling" ones.
## Context * Operating System & Odin Version: ```none Odin: dev-2024-11:7cfaf0b18 OS: Windows 10 Professional (version: 21H2), build 19044.2846 CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz RAM: 16275 MiB Backend:...
## Context Relevant code: ```go package bug t :: proc() { defer { x :: 1 y := x + 1 } } ``` Results in  This happens with...
## Context Using a range in a switch is being flagged as duplicate by the compiler. I found this out while trying to check some unicode codepoints. * Arch Linux...
## Context Odin: dev-2025-04-nightly OS: Ubuntu 24.10, Linux 6.11.0-26-generic CPU: AMD Ryzen 7 6800H with Radeon Graphics RAM: 14703 MiB Backend: LLVM 20.1.1 ```odin package main import "core:fmt" WORLD_WIDTH ::...