News for hackers. Stuff that matters.
Re:Functional programming is finally going mainstream by danielscrubs on Wednesday July 13, 2022 @02:15AM (#32079528)
“Everything is Turing complete” isn’t true. You can get quite interesting languages by making sure it isn’t. See strong functional programming for examples.

https://en.m.wikipedia.org/wiki/Total_functional_programming

Re:Functional programming is finally going mainstream by ncmncm on Wednesday July 13, 2022 @02:27AM (#32079580)
That you can code certain solutions in a non-Turing-complete language is of identically null benefit.
Re:Functional programming is finally going mainstream by tadfisher on Wednesday July 13, 2022 @04:03AM (#32080098)
Aside from being able to prove that the solution halts, you mean? You get a lot of side benefits as well with a halting program, such as provable limits in time and space for the totality of the program instead of just the functional core bits.
Re:Functional programming is finally going mainstream by ncmncm on Wednesday July 13, 2022 @07:45AM (#32081350)
Maybe you are unable to prove properties of programs you have coded in Turing-complete languages. Many of us do, though. Routinely.

Quick, does this program terminate:

  int main() {}
? Can't prove it?
Re:Functional programming is finally going mainstream by tadfisher on Friday July 15, 2022 @02:36PM (#32111385)
That's not a very useful program.
Re:Functional programming is finally going mainstream by ncmncm on Saturday July 16, 2022 @12:54AM (#32115324)
It is the first stage of every useful program.

Add to it, and show that it still terminates, uses finite memory, introduces no data races or undefined behavior, and maybe computes a step toward something useful.

Repeat until done.