by killthebuddha · 3y ago · 0 comments
> When all is said and told, the "naturalness" with which we use our native tongues boils down to the ease with which we can use them for making statements the nonsense of which is not obvious.
I would say that he leaves out a critical detail: the nonsense of which is not obvious _and also not important_.
And these are precisely the sorts of things LLMs can bring to the table. With the added benefit that they are infinitely patient, and don’t suffer from embarrassment if they get it wrong.
As long as anything they produce is reversible and malleable they can be induced to try again or refine their output indefinitely, which helps solve ambiguities and confusions - I don’t have to prematurely jump to precise language if the LLM can figure out what I want from a vague description.
And these are precisely the sorts of things LLMs can bring to the table.
LLMs have shown some promise here, obviously, but I think at the end of the day you are still going to have to enumerate all of the edge cases and error states w.r.t. a particular segment of code and it's not clear to me that LLMs are going to make this faster in many real world cases.LLMs shine with boilerplate stuff that zillions have done before ("create a linked list implementation for me in language XYZ", "create a dropdown list with these five options", etc) but it is less clear to me that they are (or can be) useful for more custom domain- or application- logic.
There are certainly many classes of things for which specialized notation/representations are far clearer than natural language. Imagine describing how to play Beethoven's 5th with [insert human language here] rather than standard musical notation.
It's probably a continuum of suitability, and not a binary yes/no thing, but I think even after LLMs really hit their full potential most software development will probably still be best achieved with the precision of specialized programming languages and not natural language.
Think about a thing someone needs to do in an office somewhere.
‘Get all the data from the excel file attached to this email, find the CRM record for each company listed and make a list of the ones whose data needs updating’.
That’s the kind of thing you can ask John in accounting to spend a day doing.
Or you can write a script. Try to express in precise unambiguous code exactly how you want to accomplish it and spend a couple of days debugging it.
Or you can ask an LLM with some tool access to do it and maybe it’ll give you a list in a few minutes.
And if you need to do that same task every week: either John gets good at doing it, or he gets bored and quits; if you made a script you have to keep bug fixing it and dealing with the changes in the excel file, and eventually someone tells you that it really needs to be implemented in The System so you file a Jira ticket and a product owner comes out and writes down your user story and six months later you get a web form you can upload your excel attachments to that sometimes produces the list of clients to update…
But if you asked the LLM to do it… you just ask it do it again the next week.
This is the bit that maybe programmers haven’t quite realized yet: if I can get an LLM to just do that task, I don’t need to go and get someone to build some software to do it. I can get the computer to do it myself.
This is the bit that maybe programmers haven’t quite realized yet:
if I can get an LLM to just do that task, I don’t need to go and
get someone to build some software to do it.
I think everybody understands that part, and that the cynicism/skepticism is about LLMs' ability to deliver on that aspect of it.Part of training John, or writing a script, or telling an LLM, is handling all of the edge cases that exist in even a "simple" import job.
- What to do if there is a duplicate record? Create a dupe? Do an upsert? If data conflicts how we decide which version "wins?"
- What about fuzzy dupes? Two records that are probably identical but not really the same, probably due to typos or slightly different accent characters, etc
- "find the CRM record for each company listed" <-- okay, and what if the record doesn't exist? fail?
- Is the import job an all-or-nothing thing? In other words should we wrap everything in a transaction and back it out if there's a single failure? Or do we keep going? Do we log failures? Email somebody?
- If we're wrapping the whole job in a transaction, should we lock out the users while this is happening so they don't see stale data? Do we notify them? Do we just do it in the middle of the night?
- Should we log changes to an audit table for debugging purposes?
- What if the import file is invalid? Do we log, email, etc?
etc etc etc.
Like Visual Basic, Excel macros, etc I think LLM will enable some non-programmers to do scripty, programmery stuff and I think that is excellent. But anything really robust (and honestly, "simple" import jobs are often critical path and therefore need to be fairly robust) is going to require some rigor. A person telling LLM what to do is still going to need to address all of those edge cases and then some.
It's also very unclear to me how we'll debug LLM-managed processes. When things go wrong, how do we determine what/when/why? And in fact, how do we determine LLM-managed processes are correct in the first place? These particualr concerns seem completely solvable, but they will need to be solved.
Algebraic notation is not just more concise/precise. It enables solving harder problems that otherwise wouldn't be even attempted.
I have several friends and an entire career worth of coworkers on the spectrum who would unintentionally challenge the shit out of that statement.
Expecting a human to disambiguate and do nonsense filtering is a crap shoot. Usually done through trial and error. We write things we think are correct according to an informal specification and since there’s no way to prove our implementation is incorrect… we review it, wrote a few example tests, and deploy it.
Surprisingly this is good enough most of the time because the liability for mistakes lies with the company, most mistakes are benign, and users will tolerate being frustrated to a degree.
This is why I’m not optimistic about LLM’s replacing programming. The art and science of programming is rooted in formal mathematics. It takes a sophisticated ability to reason and a certain amount of creativity to write beautiful proofs. And formal maths demands a level of rigorous thinking that even mathematicians balk at.
The allure that EWD is writing about here is very much alive. Many people hope to have a genie inside their computer do the thinking for them. It may not be the answer we desire but precise thinking is what we need and I would rather have better tools and languages for doing formal mathematics and programming with them than using a really expensive system to piece together the program I want from other peoples’ code and guessing what I want from an imprecise specification.
If the specification itself isn’t precise then any program I give you, by definition, cannot be wrong.
This relies on a feature of human communication that the LLMs do not have an approach for: empathy. I am able to discern meaning from ambiguity because I can put myself in your shoes and decide what you probably meant.
Computers can probabalistically guess what was meant in natural language, but it will be missing out on enormous context of who the speaker is and what they're attempting to achieve (granted, you could provide this context in text form to the LLM, but then you are no longer taking advantage of the human ability to disambiguate, instead relying on verbosity and redundancy to constrain the LLM to catching your drift)
If you're building system software that must be reliable, then precision is fantastic and mandatory.
But if you're building some light weight automation that will have enough human oversight that it can tolerate a bit of failure, it's very powerful to open up the implementation to a layperson.
If we have learned anything from the previous decade in terms of programming is that strong (and static?) types, strictness, and compiler feedback to the developers are features that nearly everyone appreciates. We see this in the popularity of Rust, and TS, static type inference tools and linters like eslint, mypy, ruff and on.
Not important to whom?
Strongly disagreeing with you here, because misleading is a thing that is quite important to people that carefully manufacture nonsense.
And if it's not important to you, you're helping them reproduce it.
For further reference, I direct you to one of the best (in my opinion) essays of all time: Orwell's "Politics and the English Language"[1].
Like no other, this essay illustrates how harmful the critical flaw Dijkstra pointed out is if we aren't careful enough about how we use our "natural" language.
I put "natural" in quotes, because something like Google's press release on any given matter is anything but natural, and yet it's this kind of language that both sticks around and is deliberately used to create non-obvious nonsense.
[1] https://www.orwellfoundation.com/the-orwell-foundation/orwel...