nim
Installation
SKILL.md
Nim
Nim is a statically typed systems programming language offering Python-like expressive syntax, compile-time metaprogramming, and deterministic ARC/ORC memory management compiling to C, C++, and JavaScript.
When to Use
- High-Performance Compiled Systems: Producing tiny, dependency-free C/C++ or JavaScript output with Python-like syntax elegance.
- Memory-Constrained Embedded Systems: Running on microcontrollers with the deterministic ARC/ORC memory management model.
- Cross-Compilation Simplicity: Cross-compiling to Windows, Linux, macOS, and WebAssembly with a single compiler flag.
- Powerful AST Compile-Time Metaprogramming: Writing complex macros that generate and inspect code at compile time.
Quick Start
type
Person = object
name: string
age: int