News for hackers. Stuff that matters.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by planb on Thursday July 01, 2021 @09:02AM (#27698666)
We haven't even figured out how to specify what "correctness" means for all but the most trivial examples. What is the "correct" behavior of that example snippet in the linked post?
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by WanderPanda on Thursday July 01, 2021 @09:26AM (#27698818)
I don't know anything about formal correctness proofs but my imagination tells me it is bounded by the description of the task. Aren't we just shifting the bugs toward the task description? Or is it about being able to specify a task with a very simple program (e.g. brute force) that is unfeasible to run but can be somehow used to verify that simpler (in terms of runtime complexity) programs provide the same outputs?
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by pbronez on Thursday July 01, 2021 @09:37AM (#27698903)
Yes. Figuring out what a program SHOULD do is often as hard as figuring out how to actually do it. The relative difficulty shifts depending how far you are from the real world. The closer your project is to actual people doing actual work, the harder it is to define the requirements precisely.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by dgb23 on Thursday July 01, 2021 @10:05AM (#27699150)
Yes, they can only logically deduce correctness based on our assumptions of a given system boundary. But I think it is typically a good idea to write them down formally if you need the guarantees. They are also typically smaller and more declarative.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by ImprobableTruth on Thursday July 01, 2021 @09:53AM (#27699055)
Sure, if your task description/specification is buggy nothing can save you, but if you only have to check the spec your work gets much easier. If you write a program, you have to both make sure that the spec is correct and that the spec is correctly implemented.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear... by auggierose on Thursday July 01, 2021 @09:09AM (#27698716)
Very good question! Try to figure it out yourself and you will see what is wrong with software development today.