nim-lang/Nim
View on GitHub ↗ ★ 18,297 Nim
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
162 mentions on Hacker News by 100 people: 13 stories, 149 comments · first 2013-08-26 · latest 2026-08-14
20082026
-
…be sure --lineDir=off in your nim.cfg or config.nims (to side-step the infinite loop mentioned in https://github.com/nim-lang/Nim/pull/23488 ). You may also need to --tlsEmulation=on if you do threads and you may want to --passL=-lm. tcc…
comment by cb321 · 2025-10-04 · in Zig builds are getting faster -
Main development branch - https://github.com/nim-lang/Nim/tree/devel/tools/niminst
comment by TheWiggles · 2025-08-30 · in Niminst: A tool to generate an installer for a Nim program -
…a lot of other shortcomings[1] of Python.[2] [1] - https://github.com/yugr/python-hate [2] - https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programm...
comment by archargelod · 2025-07-30 · in Pony: An actor-model, capabilities-secure, high-performance programming language -
…interested in differences in "idiomatic Nim" from Python for which there are more details here: https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programm...
comment by cb321 · 2025-07-29 · in Asyncio: A library with too many sharp corners -
…this can work and want a concrete example, you could look at the Nim stdlib Table implementation: https://github.com/nim-lang/Nim/blob/fbdc9a4c19aafc25937aaa5... or you could read the Knuth subsection that I referenced, but Knuth uses a…
comment by cb321 · 2025-07-02 · in I write type-safe generic data structures in C -
BTW, there's some analysis of some of the hash functions you mentioned (pjw, FNV1A, or djb) over here https://github.com/nim-lang/Nim/issues/23678 - just in-page search for "pjw" to find a table. Really only 1 cpu & 1 C compiler (though…
comment by cb321 · 2025-05-17 · in New high-quality hash measures 71GB/s on M4 -
All these organizations[1] using nim in production must disagree with you then. [1]: https://github.com/nim-lang/Nim/wiki/Organizations-using-Nim
comment by planetis · 2025-01-07 · in Zig's comptime is bonkers good -
…problem, Nim uses templates[1] and a `mixin`[2] statement to bind user-defined hash procedure. 0 - https://github.com/nim-lang/Nim/lib/pure/collections/tables.... 1 - https://github.com/nim-lang/Nim/blob/652edb229ae3ca736b19474... 2 -…
comment by archargelod · 2024-11-23 · in Traits are a local maximum -
…default [1]. I think Nim-core changed their mind about this being a good idea a few months later: https://github.com/nim-lang/Nim/pull/21728 (though the message still says "The bare except clause is deprecated" if you do compile with…
comment by cb321 · 2024-10-09 · in PEP 760: No more bare excepts -
…== 'C' or letter == 'G': gc += 1 total += 1 echo(gc / total) [0] - https://nim-lang.org [1] - https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers [2] - https://benjamindlee.com/posts/2021/why-i-use-nim-instead-of-python-for-data…
comment by archargelod · 2024-09-09 · in Rust for the small things? but what about Python? -
It’s not exhaustive/definitive yet (should be for the actual release), but this might be helpful: https://github.com/nim-lang/Nim/blob/devel/changelog.md
comment by michaelsbradley · 2024-07-13 · in Nim 2.2 release candidate is available for testing -
I think this may be what you are looking for: https://github.com/nim-lang/Nim/blob/devel/changelog.md
comment by cb321 · 2024-07-13 · in Nim 2.2 release candidate is available for testing -
Perhaps the Nim Github Wiki would be more to your liking? https://github.com/nim-lang/Nim/wiki EDIT: In particular, the "Nim for X Programmers" pages seem popular.
comment by cb321 · 2023-12-06 · in Mastering Nim, 2nd edition -
…because removing them reduced memory consumption and decreased compile times, so ymmv [0] https://github.com/nim-lang/Nim/pull/20433
comment by shirleyquirk · 2023-09-10 · in I wrote a string type -
…"BUT ZIG..", but how about Nim? Looks like there is a native library implementation of `lowerBound` https://github.com/nim-lang/Nim/blob/version-2-0/lib/pure/al... Yes, it's not a "bare-metal" language, but it compiles to one (or two), so…
comment by shmageggy · 2023-08-11 · in Fastest branchless binary search -
Same ideas are used in Nim's incremental compilation (wip) https://github.com/nim-lang/Nim/tree/devel/compiler/ic Also there are two JSON implementations with a flat architecture https://github.com/Araq/packedjson and…
comment by planetis · 2023-07-02 · in Flattening ASTs and other compiler data structures -
…actually true for Nim - almost all Nim Discord channels are bridged to different IRC channels, see https://github.com/nim-lang/Nim/wiki#bridged-real-time-chats
comment by Tiberium · 2023-06-04 · in Zig is hard but worth it -
I really wish they would fix the static linking. has needed a hack for three years: https://github.com/nim-lang/Nim/issues/15220
comment by 2h · 2023-03-31 · in Nim 2.0.0 RC2 -
…for awhile even the main installer was getting flagged, as well as tools like choosenim. See e.g. https://github.com/nim-lang/Nim/issues/17820
comment by dbrueck · 2023-02-18 · in Returning to Nim from Python and Rust -
…legitimate patterns that are also useful to malware and so get falsely reported as such, e.g. https://github.com/nim-lang/Nim/pull/19767
comment by int_19h · 2023-01-31 · in Nim and Go programs identified by Carbon Black as malware on Windows -
…involved. In this case maybe not, but MS Defender doesn't like Nim (and Nimble), either[0][1]. [0] https://github.com/nim-lang/Nim/issues/18933 [1] https://forum.nim-lang.org/t/8196
comment by hdjjhhvvhga · 2023-01-31 · in Nim and Go programs identified by Carbon Black as malware on Windows -
…it was much slower than trivial code in Python and Groovy, then stumbled into this discussion: https://github.com/nim-lang/Nim/issues/9026 Nothing as strong as the above but it definitely rubbed me the wrong way. So much advertising about…
comment by zmmmmm · 2023-01-27 · in The Python Paradox (2004) -
However, Nim's is very simple: https://github.com/nim-lang/Nim/blob/version-1-6/lib/system/...
comment by xigoi · 2023-01-16 · in Rust vs. C++ Formatting -
…entire wiki page to welcome developers coming from python, and show where the two languages differ: https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programm...
comment by ReneSac · 2022-12-24 · in Nim version 2.0.0 release candidate -
There's a list in the very announcement: https://github.com/nim-lang/Nim/wiki/Organizations-using-Nim though I'd imagine the number will remain small as Nim's too artisanal for enterprise to grok.
comment by intelVISA · 2022-12-22 · in Nim version 2.0.0 release candidate -
"same with the 7th place[^3]. " No, that's not the Nim[0]. [0] https://github.com/nim-lang/Nim
comment by protomolecule · 2022-12-14 · in Noulith: A new programming language by the current Advent of Code leader -
…var bar: Bar = nil # error: type mismatch echo bar.a Discussion about not nil by default is here: https://github.com/nim-lang/Nim/issues/6638
comment by j-james · 2022-11-26 · in Choosing Nim out of a crowded market for systems programming languages -
My issue is that Nim has some awkward problems with static linking: https://github.com/nim-lang/Nim/issues/15220
comment by svnpenn · 2022-11-26 · in Choosing Nim out of a crowded market for systems programming languages -
…or web apps with https://github.com/karaxnim/karax . The list goes on! https://github.com/nim-lang/Nim/wiki/Curated-Packages But, what if you want to use that battle tested C++ library? Nim can compile to C++ so you have native A
comment by rlipsc · 2022-11-14 · in I enjoy using the Nim programming language at Reddit -
…on the OrderedTable implementation to make deletes O(1) as expected with hash table operations: https://github.com/nim-lang/Nim/pull/14995 After spending a lot of time on this, I finally gave up. The problems were: - the JSON…
comment by prirun · 2022-11-11 · in A cost model for Nim -
…But there were issues with Nim executables being incorrectly flagged as viruses in Windows. ^1 1. https://github.com/nim-lang/Nim/issues/17820
comment by Decabytes · 2022-10-12 · in Introduction to Dlang [video] -
…Nim anymore? Nim has some serious technical debt, and it seems they don't have the manpower for it: https://github.com/nim-lang/Nim/issues/14719
comment by svnpenn · 2022-10-12 · in Introduction to Dlang [video] -
…And one last one for basic algorithms which I'd use to teach intro to data structures any day: https://github.com/nim-lang/Nim/blob/version-1-6/lib/pure/al... Of course Knuth's original code is still some of the best classic code. K&R's…
comment by elcritch · 2022-09-11 · in Ask HN: What's the best source code you've read? -
…not magically rewrite all previous commit messages, although apparently the improvement is present https://github.com/nim-lang/Nim/commits?author=Araq - most of the total ~25 comments made in the last seven months since December 9, 2021…
comment by haxscramper · 2022-07-08 · in NimSkull: A Hard Fork of Nim -
> unraveling mysteries of the commit messages that were written with this attitude https://github.com/nim-lang/Nim/pull/19211#issuecomment-9859 ... Curious to know what your vision of commit messages is. My commit messages look exactly…
comment by dmos62 · 2022-07-08 · in NimSkull: A Hard Fork of Nim -
…legacy features, unraveling mysteries of the commit messages that were written with this attitude https://github.com/nim-lang/Nim/pull/19211#issuecomment-9859... ("I have no intention to follow this guideline so I cannot accept it.")…
comment by haxscramper · 2022-07-08 · in NimSkull: A Hard Fork of Nim -
…is why so much effort has been spent on incremental compilation, which tmk, still isn't working - https://github.com/nim-lang/Nim/issues/19757 .
comment by hahaitsfunny · 2022-07-02 · in Mastering Nim – now available on Amazon -
…with Nim a couple of years ago for HashBackup. Here's one of the db_sqlite issues I created: https://github.com/nim-lang/Nim/issues/13559 I had much better luck with tiny_sqlite: https://github.com/GULPF/tiny_sqlite
comment by prirun · 2022-06-30 · in Mastering Nim – now available on Amazon -
…a wordle clone in a few days of very limited spare time. The reference I used the most was this: https://github.com/nim-lang/Nim/wiki/Nim-for-TypeScript-Prog...
comment by steve_adams_86 · 2022-05-28 · in Nim: Curated Packages -
…of years ago, and it's very annoying. I just checked some stdlib functions and it's still there: https://github.com/nim-lang/Nim/blob/devel/lib/std/varints.n... For example, in readVu64: 18: proc readVu64*(z: openArray[byte]; pResult: var…
comment by prirun · 2022-05-11 · in Our Experience Porting the YJIT Ruby Compiler to Rust -
…yourself acquainted with the project's structure. Here's a few links for your consideration: * https://github.com/nim-lang/Nim/issues?q=is%3Aissue+is%3Aope... * https://dev.to/xflywind/best-ways-to-make-your-first-contrib... *…
comment by ZoomZoomZoom · 2022-05-05 · in Nim Version 1.6.6 Released -
I wish they would take the antivirus issue on Windows more seriously https://github.com/nim-lang/Nim/issues/17820 This issue alone means I can't use it at work, and I haven't put much time and thought into Nim as a whole because I could…
comment by styeco · 2022-05-05 · in Nim Version 1.6.6 Released -
…you currently have to `import sugar` for bandaid fix. Nim is in progress to fix them, see here: https://github.com/nim-lang/Nim/pull/11992 I don't see why people can't admit to shortcomings in languages? I like Nim a lot, doesn't mean I'm…
comment by throwaway234272 · 2022-04-27 · in Compile time evaluation in Nim, Zig, Rust and C++ -
…`[backport]`) and even less [3] for narimiran) [1] https://forum.nim-lang.org/t/8540#55418 [2] https://github.com/nim-lang/Nim/commits/devel?author=Araq [3] https://github.com/nim-lang/Nim/commits/devel?author=narimir... Right now, it…
comment by haxscramper · 2022-02-27 · in Computer Programming with Nim -
…natural and you get idiomatic Nim. You can even use objects named "self" to ease the transition. https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programm...
comment by nimmer · 2022-02-27 · in Computer Programming with Nim -
…form, without any declarative shenanigans. Indeed, it is implemented as part of the stdlib here: https://github.com/nim-lang/Nim/blob/ce44cf03cc4a78741c423b2... Of course, that implementation is more complex than the one in the article…
comment by arc776 · 2022-01-19 · in Why static languages suffer from complexity -
…operator. I know I’m not alone because I’ve seen others mirror my concerns on Nim forums [0]. [0] https://github.com/nim-lang/Nim/issues/3502
comment by jimbob45 · 2021-10-28 · in Expectations for generics in Go 1.18