r/functionalprogramming • • Feb 19 '23
Question Universally generalizing code.
Hi, I'm working on an AI research project and we need a generalization way of easily describing any piece of code. It's seeming like partial combinatory algebra might be the way. But I'm a bit out of my depth here.
Could anyone point me towards the answer, and possibly an ascii-friendly standard for performing that math? Thanks.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Feb 19 '23
True but I need to preserve the structure of the original code, not something computationally equivalent. And it needs to be able too be able to represent unknowns like input. Thats why I was looking at partial combinatory algebra, as it seems too describe all computational systems, and allows partial description. Which I think is what I want.