Skip to content

Instantly share code, notes, and snippets.

@alexgian
alexgian / structures.rkt
Last active June 12, 2018 19:28
Implements the up/down tuple structured objects used by scmutils/SICM, for Racket
#lang racket
(require
srfi/1
math
racket/struct
;; syntax stuff
(for-syntax
syntax/parse
syntax/parse/lib/function-header))
@alexgian
alexgian / simply_redef.scm
Last active October 22, 2025 19:36
Allows the code in the book "Simply Scheme" to run on Racket.
#lang scheme/base
;;; ============================================================================
;;; Port of the "Simply Scheme" book code to allow use under Racket
;;; ============================================================================
;;; It allows re-defining of module functions, which was the main obstacle
;;; to its operation previously.
;;; The first part is an adaptation of the necessary changes to run on Racket
;;; by importing aliased existing module functions using "require" and "only-in"
;;; The second part is the (slightly adapted) code from