Skip to content

Instantly share code, notes, and snippets.

View phoe's full-sized avatar
🤔
:thonk:

Michał "phoe" Herda phoe

🤔
:thonk:
View GitHub Profile
@phoe
phoe / lzma.lisp
Last active July 17, 2017 19:22
LZMA wrapper for Common Lisp
#|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CFFI LZMA Wrapper
;; © Michał "phoe" Herda 2017
;; public domain
;; Use the attached lzma.so file, which is a x64 Linux shared
;; object. To compile the shared library file yourself:
;; 1. Install the official LZMA SDK from Igor Pavlov.
@shakdwipeea
shakdwipeea / godot_ecl.c
Created December 9, 2018 09:05
godot with cl
#include <gdnative_api_struct.gen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ecl/ecl.h>
/*************/
/* Setup ecl */
/*************/
@vseloved
vseloved / rutils-tutorial.md
Last active August 29, 2024 09:07
RUTILS Tutorial

RUTILS Tutorial

Overview

RUTILS is split into two parts: core (package rutils) and contrib (package rutilsx). These are aggregate packages that just re-export the symbols that are provided by the specific packages like rutils.anaphora or rutils.list. Overall, there are 17 parts of the core, which are described, in more detail, in this tutorial. They include (with some changes and additions) 3 facilities, which are also available from separate libraries: SPLIT-SEQUENCE, ITERATE, and ANAPHORA. Besides, it defines 2 lightweight wrapper data structures: pair and hash-set.

There's also the package rtl that includes the core plus short names for a lot of basic Lisp operations.

Contrib holds "experimental" stuff (in the sense that it's not totally conventional even for me) that, gradually, migrates to core. I won't talk more about it in the tutorial: those who are interested can check on their own or ask questions.

@death
death / inheritance-graph.lisp
Created July 3, 2020 19:35
inheritance graph
(defpackage #:snippets/inheritance-graph
(:use #:cl)
(:import-from #:sb-mop
#:class-direct-subclasses))
(in-package #:snippets/inheritance-graph)
(defstruct digraph
(strict-p t)
(name "unnamed")
@no-defun-allowed
no-defun-allowed / selling-lisp-by-the-pound.org
Last active December 25, 2025 23:57
Selling Lisp by the pound

Selling Lisp by the Pound

“Paper late!” cried a voice in the crowd,

“Old man dies!” The note he left was signed,

‘Old Kiczales’ - it seems he’s drowned!