Odin
Odin copied to clipboard
Odin Programming Language
## Context Observe the following code, using the build in libraries: ``` main :: proc () { some_thread_func :: proc () { fmt.printf("Thread 2 started"); time.sleep(10 * time.Second); fmt.printf("Thread 2...
This returns the number of runes in a u16 slice, copied from decode proc above.
## Context Odin: dev-2024-10 OS: Arch Linux, Linux 6.11.3-arch1-1 CPU: Intel(R) Core(TM) i9-14900HX RAM: 15693 MiB Backend: LLVM 18.1.8 EDIT: While doing some testing with [this bug](https://github.com/odin-lang/Odin/issues/4392), which seems to...
`is_graphic`, `is_print`, `is_control`, `is_number`, `is_punct`, and `is_symbol` only support the latin1 range of unicode currently.
`@init` is problematic because you can't import it without linking against the library. Removing the init allows importing, not calling any of the functions, and having it not link in...
## Context * Operating System & Odin Version: Odin: dev-2024-10:9f609dd74 OS: openSUSE Tumbleweed, Linux 6.11.0-1-default CPU: AMD Ryzen 9 5900X 12-Core Processor RAM: 31989 MiB Backend: LLVM 18.1.8 ## Expected...
## Context running below via `odin test` does not output the complete string on the console. I see the same behavior with the console logger, when step debugging after `io.flush(w)`...
Odin: dev-2024-10:2141299d2 OS: Windows 10 Unknown Edition (00000064) (version: 22H2), build 19045.5011 CPU: 12th Gen Intel(R) Core(TM) i5-12500H RAM: 16088 MiB Backend: LLVM 18.1.8 Happens when assigning the result of...
## Context Odin: dev-2024-10-nightly:af9ae48 OS: Windows 10 Home Basic (version: 22H2), build 19045.5011 CPU: AMD Ryzen 7 5800X 8-Core Processor RAM: 16305 MiB Backend: LLVM 18.1.8 Given the following program:...