Hacker News new | ask | show | jobs
by notnullorvoid 17 days ago
Programming languages are a terse way to describe the logic we want, so if you understand what needs to be built well enough it's possible to write it out faster in code.

Natural language is more ambiguous so you often need more of it to describe something. Specifications if consistent often end up as a kind of programming language in themselves, but usually ambiguous on matters that affect performance.

I'm with you on the review side though. Even the best models of today give some nonsense in reviews, but if you understand the code it's usually easy to skim the review and skip over nonsense.

1 comments

I've been programming for many decades and I go all the way back to FORTRAN IV to C/C++ through CUDA. That said, there are tasks I can more easily describe than implement. I no longer bother resolving config issues on my machines, I let the coding agents do that as one example and then explain their fix to me.

But you are right about the efficiency of description given you have the 10,000+ hours into writing efficient code in the chosen language. Most do not. And they hide that by leaning on Python and its insane library toolchain which itself becomes its own skill set, but one more amenable to LLMs to master.

To be brutally efficient, one would write everything in machine code, no?

One more thing: any low-level coding legend will tell you to focus on the 2% of the code that eats 98% of time. That leaves the other 98% of the codebase as fair game for increasingly trustworthy coding models as AI becomes the new compiler.

If you micro-optimize an entire codebase yourself, not only will you never get the job done, the hardware and architecture underneath will shift faster than you can specify your precise intent. CUDA itself proved this 20 years ago with 100x to 1000x accelerations over legacy single-threaded and or badly distributed CPU code, but I guess the lesson didn't sick in.