Nimony icon
Nimony icon

Nimony

 Like

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.

Cost / License

  • Free
  • Open Source (MIT)

Application type

Since

  • New

GitHub

  • GitHub stars: 472

Platforms

  • Windows
  • Mac
  • Linux
  • BSD
0likes
0articles
Save

Features

Features

Highlights All activities

Nimony News & Activities

Recent activities

Nimony information

AlternativeTo Category

Development

GitHub repository

  •  472 Stars
  •  58 Forks
  •  40 Open Issues
  •   Updated  
View on GitHub
Nimony was added to AlternativeTo by Paul on and this page was last updated .

No comments or reviews, maybe you want to be first?

Official Links

What is Nimony?

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.

Nimony for…

Embedded:

  • 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.
  • A runtime hardened against heap exhaustion: running out of memory is a condition you handle, not a crash.
  • A structured, typesafe inline assembler that uses Nim’s own syntax.
  • Memory safe thanks to optimized automatic reference counting and a variant of borrow checking that is easy to understand.
  • Provable absence of out-of-bounds indexing. 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. Your own routines state their preconditions the same way.

Games:

  • Standalone binaries optimized for your target architecture.
  • .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.

Full stack:

  • A single language for the full stack. 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.
  • 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.
  • The compiler as a reviewer. Generics are type checked where they are defined, sum types are matched exhaustively, and the borrow checker rejects mutation under active borrows. Whole classes of plausible-looking mistakes become compile errors, pointing at the line that caused them.
  • Little ceremony. Nim’s concise, indentation-based syntax means less code to write and less code to review.

Compiler devs:

  • Built around NIF, an interchange format that every stage of the pipeline reads and writes. You can inspect, diff and transform the output of any stage — and it is what makes incremental and parallel builds possible.
  • 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.