Live data from Hacker News

Show HN: Writing an HTTP server in Prolog

jamesbvaughan.com

11–20 of 74 posts

Re: Show HN: Writing an HTTP server in Prolog

#11

Sometimes, just because you can doesn't mean you should..

The author states many times that they did this to learn about networking and Prolog, killing two birds with one stone. This is clearly in no way meant to run any serious server software.

Are you saying that people shouldn't teach themselves powerful technologies?

Re: Show HN: Writing an HTTP server in Prolog

#13

Prolog is extremely different than other programming languages and as a result, learning it and writing a few small programs is very mind expanding. It really drives home how different paradigms are suited to different problems. Prolog is suited toward problems like Einsteins riddle https://udel.edu/~os/riddle.html

The class I was taking kind of blew my mind when I saw how you can solve some problems in such cool ways with Prolog, but I would certainly admit that this server isn't exactly the kind of use it's best suited for.

Python's set class and comprehension syntax can get you much of the declarative power of Prolog.

Re: Show HN: Writing an HTTP server in Prolog

#15
post #4

No! What are you doing?! Let that language die in peace!

Any particular reason you think Prolog should be abandoned? I think it looks like very nice language for untyped, high-level programming.

My understanding is that there's a very limited amount of research going into Prolog so it ends up being incredibly slow for larger tasks. And a lot of it's functionality can be done via standard SQL so there's not a ton of use cases for it.

Re: Show HN: Writing an HTTP server in Prolog

#16

Pretty cool. I also did a stint messing around with Prolog and it was pretty awesome discovering an entirely new programming paradigm. I ended up doing the Priceonomics puzzle ( https://priceonomics.com/jobs/puzzle/ ) in Prolog and wrote up about it here - http://dangoldin.com/2013/06/07/fun-with-prolog-priceonomics...

That's awesome, thanks for sharing!

Re: Show HN: Writing an HTTP server in Prolog

#17

Sometimes, just because you can doesn't mean you should..

The author states many times that they did this to learn about networking and Prolog, killing two birds with one stone. This is clearly in no way meant to run any serious server software. Are you saying that people shouldn't teach themselves powerful technologies?

> Are you saying that people shouldn't teach themselves powerful technologies?

That much it was clear they weren't saying. What was being said was that prolog is just about the last lang you'd do this in. Aside from that, I think everyone else was aware that this was an experiment.

To add:

I think this is a great approach. The last highly up voted article suffered from being the same ol' hello world intro to prolog. It's fun to see a real world problem tackled.

Re: Show HN: Writing an HTTP server in Prolog

#18

Pretty cool. I also did a stint messing around with Prolog and it was pretty awesome discovering an entirely new programming paradigm. I ended up doing the Priceonomics puzzle ( https://priceonomics.com/jobs/puzzle/ ) in Prolog and wrote up about it here - http://dangoldin.com/2013/06/07/fun-with-prolog-priceonomics...

That's awesome, thanks for sharing!

Yea - Prolog is super neat and gets you thinking a very different way. It was my first real introduction so took a bit of time getting used to thinking the "Prolog" way.

Re: Show HN: Writing an HTTP server in Prolog

#20
In one of my first jobs out of college, I got assigned to figure out how to make the Tivoli Enterprise Console do something useful. They gave up on the IGS guys and picked me because I took a class that used Prolog in my sophomore year.

IBM bundled some ancient prolog dialect (copyright 1991 iirc) and the product was a mess.

But it was a great time... a coworker and I came up with a way to persist facts to DB2 and decode/standardize all sorts of fubar network device alarms. Good times.

Post reply on HN