#LogicProgramming

2026-02-04

@screwlisp @kentpitman regarding the discussion we had after the #LispyGopherClimate show ended, MiniKanren is logic programming language embedded in Scheme (sort-of like a Prolog implemented in Scheme and coded with S-expressions), and you can use machine leaning methods like neural networks to guide the search tree of the goal solver mechanism. This paper is an example of what I was talking about.

Even before LLMs were invented, MiniKanren was able to do program synthesis using purely symbolic logic. They developed a prototype called Barliman where you would provide example input->output pairs as constraints, and using a constraint solver, could generalize those examples to a function that generates any output for any input. As a simple example, you could give it the following input-output pairs:

  1. () -> ()
  2. (a) () -> (a)
  3. () (a) -> (a)
  4. (a) (a) -> (a a)

…and the constraint solver could determine that you are trying to implement the append function for lists and write the code automatically — without LLMs, using purely symbolic logic.

As you might expect, the solver could be very slow, or even diverge (never returning an answer). The paper I mentioned above talks about using neural networks to try to guide the constraint solver to improve the performance and usefulness of the results returned by the solver.

Now imagine applying this technique to other domains besides code generation or optimization, for example, auto-completion, or cache pre-fetching, and building it into a programmable computing environment like Emacs. You could have a tool like “Cursor,” but instead of using LLMs, it uses classical computing and constraint solvers, while taking a fraction of the amount of energy that LLMs use.

#tech #software #AI #LLM #MachineLearning #NeuralNetwork #ConstraintLogic #ConstraintSolver #LogicProgramming #Prolog #MiniKanren #Emacs #Lisp #Scheme #SchemeLang #ProgramSynthesis

2026-01-19

Logic programming with extensible types. ~ Ivan Perez, Angel Herranz. arxiv.org/abs/2601.03836v1 #Haskell #FunctionalProgramming #Prolog #LogicProgramming

2026-01-10

Coding exercise ———————– Given this map (you choose an input representation), assign colours to regions A–F so that no adjacent regions have the same colour. Choose your favourite prog language. #logicprogramming #computerscience #gofai Based on Triska's lovely #Prolog video youtu.be/6XD7vBbywMc

Pencil sketch of a map of rectangular regions, labelled A–F.

The regions are related as follows (adjacency works both ways, so redundant declarations are skipped):

A is adjacent to B, C, D, E.
B is adjacent to C, D, F.
C is adjacent to D.
D is adjacent to E, F.
E is adjacent to F.
2025-12-13

gitlab.com/b2495/fleng

A compiler for the concurrent logic programming languages FGHC, Strand, KL1 and PCN.

2025-11-22

𝗣𝗿𝗼𝗹𝗼𝗴 𝗯𝘆 𝗘𝘅𝗮𝗺𝗽𝗹𝗲

A short course developed specifically for anyone who struggled with the traditional university courses and textbooks.

The focus is on concepts, and building confidence through short hands-on examples and exercises.

I actually had a lot of fun writing it myself ! 😄

amazon.co.uk/dp/B0BTQ7P69H/

#prolog #logicprogramming

prolog by example book cover
N-gated Hacker Newsngate
2025-08-16

🚀✨ Behold, Dyna: the brainchild of machine learning mavericks who decided wasn't inscrutable enough. Now with weighted rules! Because who wants their logic programming to be intuitive or user-friendly? 😅🔍
dyna.org/

Hacker Newsh4ckernews
2025-08-16
2025-08-09

Macros in Prolog: Term and goal expansion. ~ Markus Triska. youtu.be/E8byql4RaUY #Prolog #LogicProgramming

2025-07-23

I was excited to see a 40 year old Byte magazine featuring, among other declarative languages, Prolog. I learned Prolog for a quarter semester in one of my CS major’s intro classes…20 years ago.

hachyderm.io/@thomasfuchs/1149

A couple years ago, I looked around for a Prolog interpreter that would run on my mac, but didn’t find one. Funny how exuberant and optimistic this article was about the longevity of the language and the “logic programming” concept.

#prolog #logicprogramming

2025-07-12

Proof theory and logic programming: Computation as proof search. ~ Dale Miller. lix.polytechnique.fr/Labo/Dale #Logic #ProofTheory #LogicProgramming

2025-07-12

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst