Skip to content

Instantly share code, notes, and snippets.

View kenrestivo's full-sized avatar

ken restivo kenrestivo

View GitHub Profile
@burtonsamograd
burtonsamograd / save-lisp-tree-shake-and-die.lisp
Last active February 11, 2024 20:33
A quick and dirty tree shaker for SBCL, giving about a 40% reduction in dump size.
;; -*- 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
@jjl
jjl / fuck-you-lein.sh
Created October 23, 2013 20:49
Deploy a random jar to your local repository. Because lein refuses to allow you a 'lib' dir out of convenience. Perhaps the only area sbt is better.
lein deploy file://$HOME/.m2/repository ARTIFACT VERSION PATH-TO-JAR
(ns interface.boot
"This namespace is only used while developing
to start and stop an internal webserver."
(:use [ring.adapter.jetty :only [run-jetty]]
[ring.middleware.stacktrace :only [wrap-stacktrace]])
(:require [interface.routes :as routes])
(:gen-class))
(def ^:dynamic *port* 8081)