Skip to content

Instantly share code, notes, and snippets.

View dtzWill's full-sized avatar
💭
I may be slow to respond.

Will Dietz dtzWill

💭
I may be slow to respond.
View GitHub Profile
{ nixpkgs ? import (import /home/doc/git/allvm-tools/nix/fetch-nixpkgs.nix) { }
}:
let
overlay = self: super: {
stdenv = super.overrideCC (nixpkgs.stdenv) (with nixpkgs;
wrapCCWith {
cc = wllvm;
extraBuildCommands = ''
echo CC=wllvm >> $out/nix-support/setup-hook
@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