News for hackers. Stuff that matters.
Re:Writing code that writes code – Hack Codegen by nostrademons on Thursday August 20, 2015 @07:12PM (#10095164)
On a continuum from "so robust you don't even consider it codegen" to "well, some people use it": microcode, compilers, virtualization, visual interface builders like XCode and Android Studio, dynamic HTML pages, ORMs, protobufs & other schema definition languages, autoconf & friends, compile-to-C languages like early versions of C++ and Go, ES6 transpilers like Traceur and Babel, compile-to-JS languages like CoffeeScript. Probably others I've forgotten or don't know about.

When it works, you forget that the only thing that computers understand is their native instruction set, and everything on top of that is built on some form of codegen. When it doesn't, you curse out the programmer who left you a pile of buggy scripts to maintain.

Re:Writing code that writes code – Hack Codegen by kazinator on Thursday August 20, 2015 @08:49PM (#10095423)
Nice easter egg: "autoconf & friends" buried in the middle of a paragraph that appears to be about robust code generation.
Re:Writing code that writes code – Hack Codegen by nostrademons on Thursday August 20, 2015 @08:57PM (#10095437)
"Well, some people use it." Particularly toward the end of the list, there'll be more and more examples where people hate the code generation aspect (for example, I've personally had bad experiences with any JS technology that requires a build step). That doesn't change the fact that they're widely used; autoconf, for example, was mandated for all Google-owned open-source C/C++ libraries, because despite its kludginess, it will build on virtually everything.