Skip to content
HN On Hacker News ↗

Nimony Manual

▲ 198 points • 116 comments • by Fervicus • 1w ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI and human-written content.

24 %

AI likelihood · overall

Mixed
76% human-written 24% AI-generated
SEGMENTS · HUMAN 24 of 34
SEGMENTS · AI 9 of 34
WORD COUNT 855
PEAK AI % 100% · §10
Analyzed
Nov 17
backend: pangram/v3.3
Segments scanned
34 windows
avg 25 words each
Distribution
76 / 24%
human / AI fraction
Verdict
Mixed
Pangram v3.3

Article text · 855 words · 34 segments analyzed

Human AI-generated
§1 Human · 0%

Nimony Efficient, expressive, elegant Get the nightly toolchain Built every day from nimony’s master branch.

§2 Human · 0%

Unpack, put bin/ on your PATH, done — and with nimony n you do not even need a C compiler.

§3 Human · 0%

Download page · Build from source · Tools Nimony is a new compiler for Nim and the home of the Nim 3 language: borrow checking, explicit nilability, sum types, checked generics and more, with incremental and parallel builds from the start.

§4 Human · 0%

For how it relates to Nim 2, see the FAQ.

§5 Human · 0%

Nimony for… Embedded development Native code generation for x86_64, ARM64, ARM32, AVR and RISC-V — independent of LLVM and GCC, so there are fewer surprises from the implicit assumptions about C’s undefined behavior that plague these toolchains.

§6 Human · 5%

A runtime hardened against heap exhaustion: running out of memory is a condition you handle, not a crash.

§7 Human · 0%

A structured, typesafe inline assembler that uses Nim’s own syntax.

§8 Human · 0%

Memory safe thanks to optimized automatic reference counting and a variant of borrow checking that is easy to understand.

§9 Human · 1%

Provable absence of out-of-bounds indexing.

§10 AI · 100%

Indexing into arrays, seqs and strings is a requires contract checked at the call site: an index that is provably out of range is a compile-time error, and a module with {.feature: "staticContracts".} must prove every access in bounds — no buffer overruns and no run-time checks left in the binary.

§11 AI · 100%

Your own routines state their preconditions the same way.

§12 Human · 0%

Game development Standalone binaries optimized for your target architecture.

§13 Human · 0%

.passive procs turn linear code into state machines — ideal for splitting game logic across frames. Mutable state is well supported, not an afterthought. Short feedback loops. Incremental and parallel builds keep the edit–compile–fix cycle fast.

§14 Human · 0%

Full stack development A single language for the full stack.

§15 Human · 0%

No matter how low level or high level your tasks are: get familiar with Nimony and end up with readable, maintainable code. The same code base compiles to C, to native code, to JavaScript and to WebAssembly — from microcontrollers to the browser.

§16 Human · 0%

Batteries included. The standard library ships what applications need: linear-time regular expressions, sockets with a TLS 1.3 client written in Nim, an HTTP client and server, JSON and a math library.

§17 Mixed · 67%

The compiler as a reviewer.

§18 AI · 100%

Generics are type checked where they are defined, sum types are matched exhaustively, and the borrow checker rejects mutation under active borrows.

§19 AI · 100%

Whole classes of plausible-looking mistakes become compile errors, pointing at the line that caused them.

§20 AI · 74%

Little ceremony.

§21 Human · 0%

Nim’s concise, indentation-based syntax means less code to write and less code to review.

§22 Human · 0%

Compiler and tool developers Built around NIF, an interchange format that every stage of the pipeline reads and writes.

§23 Human · 0%

You can inspect, diff and transform the output of any stage — and it is what makes incremental and parallel builds possible.

§24 Human · 0%

Plugins go far beyond what a macro system can accomplish easily: Custom validators that look for possible deadlocks, race conditions or risky recursion (embedded targets often have very small stacks). Custom code generators that compile a subset of Nim to GPUs or target FPGAs. Custom DSLs, supported more cleanly than in Nim today — for example lexer and parser generators.

§25 Human · 0%

Here is a taste of the language.

§26 AI · 100%

Sum types (algebraic data types)Variant objects no longer need a separate discriminator enum: tags live in the case section, and `case value of Tag(fields):` pattern matching binds the fields for that arm — like expressions you’d write in ML-family languages, checked for exhaustiveness.

§27 Human · 0%

type Expr = ref object case of Lit: value: int of Add, Sub: left, right: Expr proc eval(e: Expr): int = case e of Lit(value): result = value of Add(left, right): result = eval(left) + eval(right) of Sub(left, right): result = eval(left) - eval(right) echo eval(Add(left: Lit(value: 10), right: Lit(value: 32))) Shared fields can live outside the case, variants can nest (seq[Tree] in a branch), and grouped matchers like {Add, Sub}(left, right) appear where multiple tags share the same shape — see Case in object in the manual.

§28 Human · 0%

Borrow checking — iterator safety and aliasingNimony rejects classic footguns at compile time: proc grow(s: var seq[int]; use: int) = s.add use var s = @[1, 2, 3] This follows prefix exclusion: while s (or s.elements) is borrowed, that path cannot be mutated until the borrow ends — sibling fields can still be updated.

§29 Human · 0%

Type checked genericsBy default generics are type checked: the code is checked when the generic is defined, not only when it is instantiated! Duck typing is still available, you get it via the {.untyped.} pragma.

§30 Human · 0%

The required operations are described via concepts: type Comparable = concept proc `<`(a, b: Self): bool proc min[T: Comparable](a, b: T): T = if a < b: a else: b echo min(3, 7) echo min("b", "a") Container-style concepts (e.g.

§31 AI · 100%

Findable[T]) work the same way with iterators and indexed access — see Concepts and Generics in the manual.

§32 Human · 0%

Latest news2026-09-08 Nimony 0.6.2 has been released.

§33 AI · 100%

It ships with a guest report from a user who spent a year porting real projects over.

§34 AI · 100%

A Vulkan visualiser, a web framework, an embedded server: Nim, one year in. Older entries, including the 0.2 release, live on the News page.