←back to thread

448 points nimbleplum40 | 1 comments | | HN request time: 0s | source
Show context
01100011 ◴[] No.43566393[source]
People are sticking up for LLMs here and that's cool.

I wonder, what if you did the opposite? Take a project of moderate complexity and convert it from code back to natural language using your favorite LLM. Does it provide you with a reasonable description of the behavior and requirements encoded in the source code without losing enough detail to recreate the program? Do you find the resulting natural language description is easier to reason about?

I think there's a reason most of the vibe-coded applications we see people demonstrate are rather simple. There is a level of complexity and precision that is hard to manage. Sure, you can define it in plain english, but is the resulting description extensible, understandable, or more descriptive than a precise language? I think there is a reason why legalese is not plain English, and it goes beyond mere gatekeeping.

replies(12): >>43566585 #>>43567611 #>>43567653 #>>43568047 #>>43568163 #>>43570002 #>>43570623 #>>43571775 #>>43571852 #>>43573317 #>>43575360 #>>43578775 #
fluidcruft ◴[] No.43568047[source]
I'm not so sure it's about precision rather than working memory. My presumption is people struggle to understand sufficiently large prose versions for the same reason a LLM would struggle working with larger prose versions: people have limited working memory. The time needed to reload info from prose is significant. People reading large text works will start highlighting and taking notes and inventing shorthand forms in their notes. Compact forms and abstractions help reduce demands for working memory and information search. So I'm not sure it's about language precision.
replies(2): >>43568144 #>>43571228 #
card_zero ◴[] No.43568144[source]
So is more compact better? Does K&R's *d++ = *s++; get a pass now?
replies(8): >>43568588 #>>43569499 #>>43569619 #>>43570182 #>>43571065 #>>43571967 #>>43572616 #>>43580134 #
layer8 ◴[] No.43571065[source]
When I first read the K&R book, that syntax made perfectly sense. They are building up to it through a few chapters, if I remember correctly.

What has changed is that nowadays most developers aren't doing low-level programming anymore, where the building blocks of that expression (or the expression itself) would be common idioms.

replies(2): >>43571397 #>>43574921 #
1. card_zero ◴[] No.43571397[source]
Yes, I really like it, it's like a neat little pump that moves the string from the right side to the left. But I keep seeing people saying it's needlessly hard to read and should be split over several lines and use += 1 so everyone can understand it. (And they take issue with the assignment's value being used as the value in the while loop and treated as true or false. Though apparently this sort of thing is fine when Python does it with its walrus operator.)