Readit News logoReadit News
nickswalker commented on A Tour of Microsoft's Mac Lab (2006)   davidweiss.blogspot.com/2... · Posted by u/ingve
iwontberude · a month ago
lol they made a reference to Sanford and Son (“the big one”)
nickswalker · a month ago
The author is likely referring to the potential for a Cascadia megaquake: https://www.newyorker.com/magazine/2015/07/20/the-really-big...

Deleted Comment

nickswalker commented on Ask HN: What's Prolog like in 2024?    · Posted by u/overclock351
networked · a year ago
Thanks for the link. I have played with PySwip (https://github.com/yuce/pyswip), and the MQI looks like a more maintainable approach to integrating SWI-Prolog with Python (https://github.com/SWI-Prolog/packages-mqi).

The biggest source of friction I noticed when playing with PySwip was that because Prolog code was represented as strings, you avoided generating it on the fly. It would be nice to have an embedded DSL for Prolog in Python. (I am thinking something like SymPy or the Pony ORM—https://github.com/ponyorm/pony.)

nickswalker · a year ago
I noticed the same friction while trying to integrate Answer Set Programming solvers into Python projects. The people who built the dominant ASP solver actually provide nice solutions though. Possible inspiration for Prolog tooling:

Clorm (Clingo ORM) [1] makes it easy to create facts after you define simple predicate Python classes. Here's an example project of mine which uses it to set up a scheduling problem (Python -> ASP) and to present the results (ASP -> Python).

https://github.com/raceconditionrunning/relay-scheduler

Clingo (the solver) exposes its internal AST implementation through Python bindings[2], so you can build up rules or other statements from typed components instead of strings. This simplifies the translation bits of implementing an ORM or whatever kind of wrapper a developer would prefer.

[1] https://github.com/potassco/clorm [2] https://potassco.org/clingo/python-api/current/clingo/ast.ht...

u/nickswalker

KarmaCake day352December 7, 2016
About
Humans, robots, AI

https://nickwalker.us

meet.hn/city/47.6038321,-122.330062/Seattle

Socials:

- github.com/nickswalker

Interests:

Robotics, Running

---

View Original