logoalt Hacker News

Gibbon1 • yesterday at 8:58 PM • 1 reply • view on HN

Maybe having a way to enforce that on the compiler. So you can force the compiler to tell you it couldn't eliminate heap allocations.


Replies

pjmlp • today at 10:25 AM

Basically you can run the Go compiler with the escape analysis output flags, and have a script process its output, breaking the build if there are too many of them, or whatever condition you feel like.

Don't folks brag about UNIX philosophy all the time around here?

Here is a good scenario for some pipelining with Make, awk, sed, perl and co.