Nim for Pythonistas
summary
Nim claims Python-like syntax with C-level speed via a statically typed compiled compiler that can target C, C++, Objective‑C and JavaScript; it offers hygienic templates and Lisp‑style macros for compile‑time metaprogramming, plus overloading, effect tracking and const evaluation. Interop uses nimpy and nimporter; the uploader shows a dashboard compiled to native JavaScript and reports success. A small project, Nimib, is ported to Python and used for Advent of Code; package management is via Nimble and threading options include malja and Reddit’s mummy.
AI-written summary · about
chapters (17)
- 0:00Introduction to Nim
- 2:21Philosophy and agenda
- 8:33Performance and syntax
- 9:10Metaprogramming power
- 10:06Python interoperability
- 12:19Compiler and type safety
- 13:26State management tools
- 14:31Effects tracking
- 15:20Procedural overloading
- 16:12Multiple compiler backends
- 17:17Investing in niche technology
- 20:54Culture of the Nim community
- 22:10Community impact
- 22:39Contributing to open source
- 23:20Literate programming with Nimib
- 24:40Final reflections
- 28:13Q&A session
related talks
30mNumba, a JIT compiler for fast numerical code
37mUsing Numba Effectively Today
36mThe Python Compiler
01h 04mExtending MicroPython: Using C for good!
40mGet native with Cython
24mA sack full of angry snakes: Taming your python dependencies with Nix
25mIntroduction to Python Network Libraries (Netmiko, NAPALM, Nornir, and More)
37mNipype
