8 ms·
So, PROLOG people, how excited should anyone be about this? This vs SWI, Visual Prolog, Prolog in a LISP like Allegro, or alternatives like Mercury. Is this sig
by nickpsecurity 11y ago
So, PROLOG people, how excited should anyone be about this? This vs SWI, Visual Prolog, Prolog in a LISP like Allegro, or alternatives like Mercury. Is this significant in general or just for their community of users?
- kev009 11y agoI worked at a place a handful of years ago that used SICStus (https://sicstus.sics.se/ https://sicstus.sics.se/) because it was quite a bit faster than the other implementations. I'd like to revisit prolog, I think it is an underused language in industry.
- nickpsecurity 11y agoSo, that's two votes for SICStus. What did you use Prolog for with what advantages?
- danieldk 11y agoI work in academia, where SICStus is usually the most popular besides SWI Prolog. If SICStus went open source, that would be big news for me/us. This not so much. If SICStus went open source or free for academic use, I would probably use that in my research/courses over SWI Prolog. Mostly because of familiarity, performance, and compatibility reasons.
- nickpsecurity 11y agoSo, that's two votes for SICStus. What do you use Prolog for with what advantages?
- danieldk 11y agoI am currently not actively using Prolog. But during my PhD for natural language generation of Dutch, in the Alpino system: http://www.let.rug.nl/vannoord/alp/Alpino/ http://www.let.rug.nl/vannoord/alp/Alpino/ Prolog has some nice advantages for such knowledge-based language processing: - With relatively little work, terms can be used to represent linguistic feature structures. You can build a small type system using meta programming and define operators on feature structures. - Unification can be used build larger structures, check syntactic constraints, etc. - Backtracking makes handling ambiguity in parsers/generators much easier There are two quite elaborate chapters in my PhD thesis about the system mentioned above and the generator: http://danieldk.eu/Research/Publications/phd-thesis.pdf http://danieldk.eu/Research/Publications/phd-thesis.pdf Though for the time being, I am working on dependency parsing using deep neural nets (like everyone else ;)).
- nickpsecurity 11y agoAppreciate the tips and link.
- fusiongyro 11y agoNot an expert, but certainly an amateur "Prolog person." Frankly, SWI gets all the action. There are times where it isn't the most efficient Prolog, but the toolset you're going to get from AMZI is much more limited, and that in the end is going to be a bigger deal. Does AMZI have ODBC, CLP, CHR, and a web framework? Probably not. SWI has the biggest community, the largest built-in library, the most 3rd-party packages, and is the easiest to install. Everything else is basically tied for second place. Except Visual Prolog, which comes last. :) It's kind of a shame, because my earliest exposure to Prolog was through AMZI; they had a nice Windows IDE you could try for free (30 minutes at a whack). I went through their "Nani Quest" tutorial and that gave me positive memories of Prolog that I revisited later. Mercury is an interesting language, but not having a REPL is a huge problem for me. The language mixes in some good ideas from Haskell and Clean. The tutorial comes off as sort of condescending towards Prolog users and fans though. Having to furnish modes and effect types is a bit of a burden. Allegro is a pretty compelling product, but when I want to do Prolog, I want to do Prolog. core.logic in Clojure seems like it would be more interesting to me, because Clojure is enough better than Common Lisp. I believe core.logic is based on miniKanren, which is also interesting. The Prolog implementations I sometimes wish I knew more about are B-Prolog, YAP and XSB. But I don't really have the kinds of performance problems that would benefit from tabling or a more sophisticated compiler.
- YeGoblynQueenne 11y ago>> I went through their "Nani Quest" tutorial and that gave me positive memories of Prolog that I revisited later. Yeah, that's a great tutorial to the language, I learned a buttload from that when I was doing my degree. Not to look down on Learn Prolog Now! and others, but this is how to teach Prolog to university students.
- nickpsecurity 11y agoOk, that's two seconding that one. My references are overloaded as is but I'll add Nani Quest to give to anyone starting with Prolog. Note: Your alias is hilarious. Nice one.
- YeGoblynQueenne 11y agoI'm first of all excited by the fact that this made first page on HN. I didn't realise there was that much interest in Prolog news (as in more than two or three people). Also, having more open-source Prolog engines is a very good thing, both for the language and for the project itself. For the project, it's good because it makes it easier for a community to grow around it. Swi has benefited enormously from its popularity (Jan Wielemaker has commented on this occasionally). For the language, it's good because the more healthy Prolog communities we have, the more we can hope to get new people interested in the language. Comparing to other Prologs (and Prologs-ish'es) the problem with having closed-source and only for-pay Prolog engines is mainly one of portability, which in the Prolog world is a bit shit (and that's a vast understatement). Frex, I wrote my degree dissertation using Win-LPA Prolog in 2010-11. LPA is commercial and I don't have a licence anymore (I had a student one) so now I can't run my dissertation. I tried (and tried (and tried)) to make it work on Swi but failed (and failed (and failed))[1]. The problem is there are subtle differences between implementations that bite you in ways you never thought possible, and it's just aaaargh hard to get the same program running in the same way on two different Prologs. Apparently the exception to this portability hell is Yap and Swi, who have worked together to maintain some compatibility with each other. I don't have experience of this myself (after getting burned I've stuck to Swi) but if Amzi open-sourcing their stuff also means they'll be more open to this sort of working with others, then that's really, really amazing news. ____________________________ [1] It's here: https://github.com/stassa/Gleemin https://github.com/stassa/Gleemin But it will hurt you. Also, graduate dissertation, 5 years ago: embarrassing.
- danieldk 11y agoThe problem is there are subtle differences between implementations that bite you in ways you never thought possible, and it's just aaaargh hard to get the same program running in the same way on two different Prologs. Or even between versions of the same implementation. E.g., I know of one project that sticks with SICStus 3, because in SICStus 4 findall/3 removes blocked goals from copied variables. This system relies quite heavily on blocked goals and working around this change turned out to be too expensive. (If I recall correctly ;).) Another example is SWI Prolog diverging from the ISO standard in version 7 (e.g. double quoted strings are now a type on their own, rather than a list of character codes). Luckily, there is a --traditional flag for older code. In both cases, there are good reasons for the changes, but it makes portability hard. Edit: wanted to add that this is not intended to be a critique of these particular (great) implementations of Prolog.
- frik 11y agoTriva: IBM Watson uses Prolog for its reasoning.
- nickpsecurity 11y agoShows it's still useful for sure. But, Watson uses a lot of techniques for it's operation with several languages integrated together w/ Prolog just one. And it does it on this hardware: "Watson employs a cluster of ninety IBM Power 750 servers, each of which uses a 3.5 GHz POWER7 eight core processor, with four threads per core. In total, the system has 2,880 POWER7 processor threads and 16 terabytes of RAM." (Wikipedia) My house might burn down haha. It would be interesting to know a complex, useful, performant application coded entirely in PROLOG that wasn't a Visual Prolog IDE or something. ;) A list of those with what advantages and headaches Prolog gave the developers would be a nice start.