News for hackers. Stuff that matters.
Re:Charity – Categorical programming language (1998) by dlahoda on Saturday May 16, 2026 @08:48AM (#48159789)
"All Charity computations terminate" - Turing decidable it was.
Re:Charity – Categorical programming language (1998) by vinnyhaps on Saturday May 16, 2026 @10:48AM (#48160737)
I think it would imply that it is a Turing incomplete language. So, it would not be able to express certain programs, but all the computation you can represent is mathematically shown to reduce to a termination point.
Re:Charity – Categorical programming language (1998) by Verdex on Saturday May 16, 2026 @11:27AM (#48161049)
IIRC they do some stuff with f co algebras. Which if I understand it is effectively doing things like "hey here's a generator that produces an infinite number of the number 1, but the only way to evaluate it is via a take with a finite number".

I know with idris there is also a progress evaluator for otherwise general recursion that proves that your input is always "getting smaller". Not sure if charity has the same deal or not.

Regardless, it isn't turning complete, but the interesting part is how far you can get in a sub turing environment.

Re:Charity – Categorical programming language (1998) by dlahoda on Saturday May 16, 2026 @03:39PM (#48163105)
Afaik there was Turing limited kind of language which had Turing decidable fragments https://www.microsoft.com/en-us/research/wp-content/uploads/...

afaik it is still in relatively active development

Re:Charity – Categorical programming language (1998) by dlahoda on Saturday May 16, 2026 @03:40PM (#48163121)
Rust macro compiling function to NPU kernel likely is Turing decidable "fragment".
Re:Charity – Categorical programming language (1998) by lgas on Saturday May 16, 2026 @11:43AM (#48161168)
It looks like what you would get if python and ocaml had a baby.