Live data from Hacker News

Extending C with Prolog (1994)

amzi.com

11–20 of 29 posts

Re: Extending C with Prolog (1994)

#11
I started using Prolog in my self written home automation system over 20 years ago. At first I was using CORBA and I linked ACE/Tao into SWI-Prolog so that Prolog could catch and send CORBA messages. That worked for years but was too annoying to add new message types since a wrapper had to be written for each, plus threading had to be coordinated between C++ and Prolog. Eventually I ditched the CORBA stuff and switched to MQTT, but instead of binding the C++ and Prolog together I found and extended MQTT support for Prolog directly, actually I've mostly replaced the C++ parts of my HA system with Java. The Prolog is pretty nice the way I can now specify predicates for MQTT topic paths, and I use shared topics for scalability. Now all of this is running deployed in k3s.

Re: Extending C with Prolog (1994)

#14
FWIW (not much), around the time of that article, I reversed this: I used Arity Prolog for a morphological parsing program, with C calls for the bit fiddling (because I needed 64 bits, and the Prolog I was using only handled 16 bit strings).

Re: Extending C with Prolog (1994)

#15
post #11

I started using Prolog in my self written home automation system over 20 years ago. At first I was using CORBA and I linked ACE/Tao into SWI-Prolog so that Prolog could catch and send CORBA messages. That worked for years but was too annoying to add new message types since a wrapper had to be written for each, plus threading had to be coordinated between C++ and Prolog. Eventually I ditched the CORBA stuff and switch…

This sounds really cool and I am glad that Prolog has outlived CORBA

Re: Extending C with Prolog (1994)

#16
post #6

Earlier quoted context omitted.

Refreshing stories between all the AI ones (and crypto/web3 before that)

Ironically, once upon a time Prolog and logic programming in general were part of the cutting-edge of AI. There's quite a fascinating history of Japan's fifth-generation computing efforts in the 1980s when Japan focused on logic programming and massively parallel computing. My former manager, who is from Japan, earned his PhD in the 1990s in a topic related to constraint logic programming.

I remember when so-called "expert systems" written in Prolog or LISP were supposed to replace doctors. Then came the (first) AI winter after people realized how unrealistic that was.

Nowadays LLMs are supposed to replace doctors.. and that makes even less sense given that LLMs are error-prone by design. They will hallucinate, you cannot fix that because of their probabilistic nature, yet all the money in the world is thrown at people who preach LLMs will eventually be able to do every human job.

The second AI winter cannot come soon enough.

Re: Extending C with Prolog (1994)

#17
post #3

Is this the time of year when we try to force redditors to stay away by posting about Prolog? I see three stories already.

We need more.

In case you weren't aware, people are using Prolog with LLMs;

https://news.ycombinator.com/item?id=42039527

https://news.ycombinator.com/item?id=45712934

Post reply on HN