News for hackers. Stuff that matters.
Re:Generate code for declarative language instead of program... by habitue on Tuesday April 23, 2024 @02:35AM (#40129141)
Exactly, generate Haskell. It's declarative and a programming language
Re:Generate code for declarative language instead of program... by kristianp on Tuesday April 23, 2024 @05:04PM (#40137240)
I was thinking the same, although I don't think declarative is the best term. Purely functional may be better.

Would getting an llm to use a language like Haskell allow it to make less errors? I've had chat gpt make errors to do with state changes that maybe haskell or caml code can't have.

Re:Generate code for declarative language instead of program... by habitue on Wednesday April 24, 2024 @07:20PM (#40151140)
I don't know that it would make less errors, but the more expressive type system could help you detect those errors.