Top all-time · #5353
Peter's DevLog
Personal blog · peterme.netprogramminghardware
Peter's DevLog is a personal blog at peterme.net about programming and hardware. Since 2018, 15 different Hacker News readers have linked it 28 times, most often “Nim at FOSDEM – frequently asked questions (2018)”. It is still writing: the last post was on 2026-01-17, and you can follow it by feed.
Too few sampled comments (7) to say how often HN recommends it.?
Why HN links it
HN readers link Peter's DevLog for its Nim-language projects and writing, including metaprogramming examples and a dithering deep dive from an e-paper laptop project.
Summarised by Claude from a sample of 7 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Nim at FOSDEM – frequently asked questions (2018)2 people · 2 mentions · first linked 2018-03-04
- Wrapping C libraries in Nim (2023)2 people · 2 mentions · first linked 2023-04-17
- 2019: Tips and tricks with implicit return in Nim2 people · 2 mentions · first linked 2023-01-30
- Labelled exceptions for smoother error handling (2023)2 people · 2 mentions · first linked 2023-11-01
- Dynamic Libraries in Nim2 people · 2 mentions · first linked 2023-02-19
- Asynchronous Programming in Nim2 people · 2 mentions · first linked 2021-09-03
- /metaprogramming-and-read-and-maintainability-in-nim.html2 people · 2 mentions · first linked 2019-09-24
What Hacker News says?
https://peterme.net - If you've heard about Nim and want to see what someone is doing with it. Along with various other projects and presentations I do.
Comment linking /
on “Ask HN: What is your blog and why should I read it?”Submitted Is Nim a Transpiler? as a story · 44 points
HN discussionNot a Lisp user, but a heavy Nim macro user. Nim macros are AST based, which means that after the parser part of the compiler have read the code and created a tree structure of it your macro is called on this tree. Then you can modify this tree to your hearts desire and return a new tree that the Nim compiler will splice back into the main tree before continuing. This means that you rewrite pretty much anything into…
Comment linking /metaprogramming-and-read-and-maintainability-in-nim.html
on “Nim 1.0”Submitted Optional Value Handling in Nim as a story · 43 points
HN discussionI've been a Nim respecter for many years, it's slept on in general as a language. The difference here is that Nim compiles to C and you can turn the garbage collector off: Zig compiles C and there's no garbage collector. That means the entire standard library is available when generating object code. It's also trivial to opt-in to the C ABI on a fine-grained basis, by defining a function or struct with the extern ke…
Comment linking /dynamic-libraries-in-nim.html
on “Algebraic Data Types for C99”Submitted Asynchronous Programming in Nim as a story · 7 points
HN discussionAdjacent comment already has a list of concrete libraries/frameworks for large number of areas, so I just want to mention that nim has a very good metaprogramming capabilities, and if the /language/ itself does not feel up to the task you have a lot more freedom when it comes to implementing things. So it really comes down to the community size and amount of money poured in the development, and not fundamental probl…
Comment linking /using-nimscript-as-a-configuration-language-embedding-nimscript-pt-1.html
on “Nim 1.6”Submitted Nim at FOSDEM – frequently asked questions (2018) as a story · 5 points
HN discussionYes, it's the same in nim. For instance, see this example which defines a compact definition syntax that is certainly not valid vanilla nim: https://peterme.net/metaprogramming-and-read-and-maintainabi... Refer to lines 63-88 of the large final example.
Comment linking /metaprogramming-and-read-and-maintainability-in-nim.html
on “Circle – A C++ compiler with compile-time imperative metaprogramming”Submitted Building an epaper laptop: the monitor as a story · 3 points
HN discussionLisp macros operate on a representation of the AST. By overhead I mean the nim compiler can generate direct specific instatiations at compile time instead of doing runtime based duck-typing as in lisp. Like, you can have a macro that generates a different expansion based on the type of arguments passed, if you structure the macro that way. The macro can also take entire code blocks as arguments of course, so you can…
Comment linking /cross-platform-guis-and-nim-macros.html
on “Circle – A C++ compiler with compile-time imperative metaprogramming”Submitted Labelled exceptions for smoother error handling (2023) as a story · 2 points
HN discussionJust did a bit of a deep dive into dithering myself, for my project of creating an epaper laptop. https://peterme.net/building-an-epaper-laptop-dithering.html it compares both error diffusion algorithms as well as Bayer, blue noise, and some more novel approaches. Just in case anyone wants to read a lot more about dithering!
Comment linking /building-an-epaper-laptop-dithering.html
on “Dithering – Part 2: The Ordered Dithering”Submitted NXP has messed up their password form validation as a story · 2 points
HN discussionSubmitted 2019: Tips and tricks with implicit return in Nim as a story · 2 points
HN discussionSubmitted Asynchronous Programming in Nim as a story · 2 points
HN discussionSubmitted Nim Q&A as a story · 2 points
HN discussionSubmitted Nim Types as a story · 2 points
HN discussionSubmitted Wrapping C libraries in Nim (2023) as a story · 1 points
HN discussionSubmitted Evaluating and creating dithering algorithms for epaper laptop as a story · 1 points
HN discussionSubmitted Labelled exceptions for smoother error handling as a story · 1 points
HN discussionSubmitted Teaching old C code new tricks with Nim as a story · 1 points
HN discussionSubmitted Setting up a Nim server for dummies as a story · 1 points
HN discussionSubmitted Tips and tricks with implicit return in Nim as a story · 1 points
HN discussionSubmitted Wrapping C Libraries in Nim as a story · 1 points
HN discussionSubmitted Dynamic Libraries in Nim as a story · 1 points
HN discussionSubmitted Nim at FOSDEM: Frequently asked questions as a story · 1 points
HN discussion