22 ms·
> There are no other homoiconic languages with amazing REPL support Prolog is pretty good.
by rscho 4y ago
> There are no other homoiconic languages with amazing REPL support
Prolog is pretty good.
- pjmlp 4y agoAnd unfortunely with the same amount of commercial support as Lisp languages.
- eimrine 4y agoAs much of commercial support as Pythagoras theorem.
- dj_mc_merlin 4y agoTouché. Excuse my ignorance, feel free to correct me, but I've always viewed Prolog as suited to specific tasks, whereas Lisps are more general purpose. There's games in Lisp for example, not a lot, not all of them great, but they're still there. I'm not aware of any Prolog games. SBCL is also within 2x-4x of C quite a lot so unless you really need every last bit of performance you're fine, as opposed to Prolog's snail-like tendencies. Static typing and turning off safety checks/turning on optimizations can get you very close to as fast as you'll ever need.
- rscho 4y agoProlog is probably less of a general-purpose language, in the sense that writing things such as games are probably not a very suitable goal for it. But for any problem involving the exploration of a solution space, prolog is absolutely stellar and actually quite fast, and even faster to write: solvers, irregular data processing, symbolic reasoning... It also lends itself quite well to "I just want to query a database" apps, including websites. Have a look at the "power of prolog" YouTube channel if you are interested.