3 ms·
On the one hand, I personally enjoy exercises like this, and the end result is quite pleasing to look at. On the other hand, the whole idea is kind of funny to
by mckirk 4y ago
On the one hand, I personally enjoy exercises like this, and the end result is quite pleasing to look at. On the other hand, the whole idea is kind of funny to me.
In my experience, a proclivity to programming serious low-level code in C very much comes with an intense defensive reaction to things like "metaprogramming using the C precompiler". At least I still vividly the remember my co-workers' reaction to the C code I wrote as an intern, when I tried to be clever.
- comma_at 4y agolibmill's goal was to be as close to Go as possible. If you look at it in that light, it's an accomplishment. Then came libdill, which created the whole "structured concurrency" movement and brought new concepts to light that are now being replicated in python, kotlin, java...
- jesse__ 4y ago> programming serious low-level code in C I mean.. a lot of code that's written in C isn't particularly "low level" in the sense that it's optimizing for runtime or memory in any kind of outrageous way. A lot of C is very normal/straight forward code which can benefit greatly from metaprogramming due to the lack of language-level niceties. > I still vividly the remember my co-workers' reaction to the C code I wrote as an intern, when I tried to be clever. That's understandable. I'm highly skeptical of clever code anyone writes, including myself. I guess what I'm trying to say here is that metaprogramming and being clever aren't mutually intertwined ideas.