News for hackers. Stuff that matters.
Re:Programming with Natural Language Is Going to Work (2010) by Hirrolot on Tuesday May 23, 2023 @11:02PM (#36053570)
I'm imagining an AI based on a deductive system rather than sequential text generation. This is roughly how "strong type systems" work, and so it might be simpler to map this model to formal methods.

By the way, if you spend 90% of time debugging your code, I think that's really sad. Either the programming language sucks, or the codebase sucks, or both. I probably spend 10-20% max of my time on debugging.

Re:Programming with Natural Language Is Going to Work (2010) by hnfong on Tuesday May 23, 2023 @11:33PM (#36053753)
The "strong type systems" work by having you design the types correctly in the first place. If designed correctly they work wonders, and 90+% of the time if the code compiles it's probably correct. That's a big "if" though, and most of your time writing "strong type systems" is coming up with the correct type structure.

The one thing worse than debugging code is debugging "types". Those 30-page C++ compiler errors are definitely worse than whatever I had to do with (for example) Python.

Re:Programming with Natural Language Is Going to Work (2010) by lmm on Wednesday May 24, 2023 @12:05AM (#36053968)
> Those 30-page C++ compiler errors are definitely worse than whatever I had to do with (for example) Python.

That's definitely in the "programming language sucks" category. Good languages make it easy to debug problems with your types.

Re:Programming with Natural Language Is Going to Work (2010) by Hirrolot on Wednesday May 24, 2023 @12:33AM (#36054129)
> The "strong type systems" work by having you design the types correctly in the first place.

I was responding to a comment that was suggesting letting an AI to do that.

> The one thing worse than debugging code is debugging "types".

It depends on a language. In languages with first-class types, we have the same tools to debug types. Classical C++ templates are more akin to a macro system than a type system.

Re:Programming with Natural Language Is Going to Work (2010) by mikebenfield on Wednesday May 24, 2023 @02:41AM (#36054853)
> Those 30-page C++ compiler errors are definitely worse than whatever I had to do with (for example) Python.

C++ is sort of the canonical example of a language with a terrible type system, so it's not really the right place to look for this comparison.

Re:Programming with Natural Language Is Going to Work (2010) by raincole on Wednesday May 24, 2023 @03:33AM (#36055127)
> Those 30-page C++ compiler errors are definitely worse than whatever I had to do with (for example) Python.

Everyone complains how slowly Rust compiles. But at least its error messages are much better.