README.markdown @ ba205f6b2875

Excise the stupid fucking `set-*` opcodes

The book uses the horribly-confusingly-named `set-*` operations for handling
subterms in query mode.  The author does this because he claims this is both
easier to understand and more performant.  In reality it is neither of these
things.

If you just name the subterm-handling opcodes something not completely stupid,
like `handle-subterm-*` instead of `unify-*` it becomes obvious what they do.

Also, despite the fact that `put-*` instructions now need to set the WAM's
`mode`, we still get about a 10% speedup here, likely from some combination of
reducing the VM loop code size and simplifying the compilation process.  So it's
not even more performant.

TL;DR: Just say "No" to `set-*`.
author Steve Losh <steve@stevelosh.com>
date Sun, 10 Jul 2016 14:21:18 +0000
parents c60cac27a0a7
children cb324d188513
    eeeee  eeeee eeeee eeee eeeee
    8   8  8  88 8   8 8    8   "
    8eee8e 8   8 8e  8 8eee 8eeee
    88   8 8   8 88  8 88      88
    88eee8 8eee8 88  8 88ee 8ee88

Bones is a logic programming library for Common Lisp.

**Bones is still in development, don't actually try to use this for anything
yet.  It should be usable by mid-2016.**

* **License:** MIT/X11
* **Documentation:** <http://sjl.bitbucket.org/bones/>
* **Code:** <http://bitbucket.org/sjl/bones/>
* **Issues:** <http://bitbucket.org/sjl/bones/issues/>

![I don't know what that means](https://i.imgur.com/EWPGAHa.gif)

License
-------

Copyright 2016 Steve Losh and contributors.  Licensed as **MIT/X11**.