(no title)
hellodanylo | 2 years ago
One of the under-appreciated wisdoms of TDD is that there is a complexity asymmetry in many problems between finding a solution and (fully or partially) verifying it. Examples of asymmetric problems: inverting matrices, sorting an array, computing a function's gradient, compressing a byte stream, etc.
Human writes the easier part -- the test suite, the language model writes the harder part -- the solution. This can be a net gain in productivity.
BaseballPhysics|2 years ago
And given how hard formal verification is, I don't know that you'll ever get away with not having to manually check these programs, at which point I question just how much productivity you've gained.
It's kinda like self-driving cars: when they work, they work great. But when they fail, they fail in ways a human never would, and therefore a human struggles to anticipate or trust their behaviour.
That said, I'm waiting to see the rise of programming languages designed with LLMs in mind, where a human could use contract oriented programming or similar (think: Ada) combined with TDD methods to more formally specify the problem that an LLM is being asked to solve.
hellodanylo|2 years ago
Me too. It's an empirical question to be answered by those who will dare to try.
> It's kinda like self-driving cars
Strong disagree. Yes, neural nets are blackboxes, but the generated code can be idiomatic, modular, easy to inspect with a debugger, etc.
> more formally specify the problem that an LLM is being asked to solve.
That would be a great direction to explore.
fodkodrasz|2 years ago
ramesh31|2 years ago
I've been doing just this with Llama 2 local lately, and I'm convinced that anyone who isn't will be a dinosaur in a couple years.
Fact is, these things are damn good (at JS at least) when dealing with pure unit-testable functions. To the point that I can accept practically any solution it comes up with will be better than mine. Everything is still verified of course, but the days of writing algorithms from scratch are basically over for me.
hk__2|2 years ago
doctoboggan|2 years ago
awesomepeter|2 years ago
hughesjj|2 years ago
michaelfeathers|2 years ago
https://michaelfeathers.silvrback.com/prompt-hoisting-for-gp...
zitterbewegung|2 years ago
visarga|2 years ago
unknown|2 years ago
[deleted]
darepublic|2 years ago