towards enlightenment
‘It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.’
| ;; -*- mode: lisp -*- | |
| ;; | |
| ;; A quick and dirty tree shaker for SBCL. Basically, it destroys the | |
| ;; package system and does a gc before saving the lisp image. Gives | |
| ;; about a 40% reduction in image size on a basic hello world test. | |
| ;; Would like to hear how it works on larger projects. | |
| ;; | |
| ;; Original idea from: https://groups.google.com/d/msg/comp.lang.lisp/6zpZsWFFW18/WMy4PyA9B4kJ | |
| ;; | |
| ;; Burton Samograd |
| // REPL example bot for mineflayer | |
| // | |
| // Connects to server but doesn't have any built in logic. The terminal where | |
| // it was started is now a REPL (Read-Eval-Print-Loop). Anything typed will be | |
| // interpreted as javascript printed using util.inspect. Don't forget to try | |
| // tab completion. These variables are exposed as local: | |
| // | |
| // var mineflayer = require('mineflayer'); | |
| // var bot = mineflayer.createBot({ username: 'REPL' }); | |
| // |