Hacker News new | past | comments | ask | show | jobs | submit login
Memory-mapped IO registers in zig (scattered-thoughts.net)
5 points by kristoff_it on March 7, 2021 | hide | past | favorite | 1 comment



This is a great writeup about how to make good use of comptime and how it can occasionally blow out of the water more complex type systems.

Of course duck typing all the things is not great in complex projects so it's a matter of finding a balance and not abusing metaprogramming when it's not needed, but that's a social problem that in my opinion should be solved primarily by having a good culture around the feature, similarly to how Go has an amazing culture around interfaces.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: