This blog has lain fallow for a couple of years, but has now reawakened with the help of openai's large language models. ChatGPT and GPT-3 are amazing tools. It is not only ChatGPTs impressive ability to answer questions but, moreover, it is its ability to dialogue with humans and understand our questions that amazes me.
Here's an example: Years ago I struggled to find a Prolog predicate that would efficiently generate all the subsets of a given set. I looked on stacktrace, at SWI-Prolog's web site. I downloaded code that claimed to work but to no avail.
Today, in a matter of minutes, ChatGPT was able to generate this very simply pair of predicates that can generate -- very efficiently, as far as I can tell -- all the subsets of a given set:
The subsets/2 predicate (which I would probably relabel subset/2) is so simple
No comments:
Post a Comment