Next Hy release will remove cons cells from the language. In this post, we’ll have a quick look what they were used for.
lisp
Simple Chat Bot
While working on Stilpo, I wrote a simple chat bot. This post takes a look at how it works and how it could be expanded. It’s based on ideas of Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp by Peter Norvig.
Bitten by Mutability
A cautious tale how having mutable data structure caused a curious bug.
n-queens puzzle solved in hy and cps
Tiny Rule Engine, the Final Post (for now)
This should be the last post in the series about Tiny Rule Engine. I have most of the features down and the part that is left is to actually learn to use them. And what could be a better way than trying our new shiny Tiny Rule Engine than solving n-queens puzzle.
Tiny Rule Engine, part (inc n)
Not too surprisinly, I’m still tinkering with the tiny rule engine. Specifically on how to add some logic into rules.
Tiny Rule Engine and Unification Woes
Work continues with tiny rule engine and I have encountered rather interesting design decision relating to unification, namely uniqueness of values.
Tiny Rule Engine, part 2
In the previous blog post I wrote about tiny rule engine, my implementation of pattern directed inference system from Building Problem Solvers by Kenneth D. Forbus and Johan de Kleer. This blog post will be about internals of the system.
Tiny rule engine, part 1
I have been slowly working my way through Building Problem Solvers by Kenneth D. Forbus and Johan de Kleer. This blog post is about my implementation of pattern directed inference system in Hy .
Deleting a macro
I sometimes run into a situation with Hy that I would like to delete a macro. This happens especially when I’m trying to get a feel of code and are prototyping in REPL. Functions are easy to delete and replace with macro, but other way around took a bit digging.