5 ms·
This helped explain a lot about how and why Prolog works. The coolest thing? That's only a tiny percent of the language, but it's already enough to start solvin
by qwertyuiop924 10y ago
This helped explain a lot about how and why Prolog works. The coolest thing? That's only a tiny percent of the language, but it's already enough to start solving problems.
For those of you looking for prolog out in the real world, a surprising number of languages contain embedded interpreters for it. Mostly Lisps.
Perhaps most famously, picolisp uses a tiny, lisp-syntax prolog called pilog as a query languages for its built in database. Yes, it has a built in database. Picolisp is weird.
- throwaway7645 10y agoPicolisp is pretty awesomely weird. It has a lot of doc, but I don't find it the easiest to grok. How does the database work? I understand how you can query it with a prolog-esque syntax, but where is all the data stored? Is it just in memory, so this database lives as long as the application is running?
- doublec 10y agoYou can create symbols that persist to an external database file when you call 'commit' or rollback changes with 'rollback'.
- throwaway7645 10y agoKind of like SQLite?
- qohen 10y agoa surprising number of languages contain embedded interpreters for it. Mostly Lisps. Also, Smalltalks (seriously).
- qwertyuiop924 10y agoReally? I can't say I'm entirely shocked, but still...
- jhbadger 10y agoYes, my first exposure to Prolog was the toy version included with Smalltalk/V in the late 1980s.