Skip to content

Instantly share code, notes, and snippets.

View chemoelectric's full-sized avatar

Barry Schwartz chemoelectric

View GitHub Profile
@chemoelectric
chemoelectric / n-queens
Created March 22, 2026 01:47
n-queens solution in R⁷RS Scheme using circular lists extensively, so it cannot be translated to R⁶RS. Thus showing R⁶RS is the more retrograde standard.
#!/usr/bin/env scheme-r7rs
(import (scheme base)
(scheme list)
(scheme write)
(scheme process-context))
;;; Generate solutions to the n-queens problem.
;;;
;;; This implementation is based *very* closely on a Fortran solution
;;; by Barry Schwartz, and in turn *extremely* loosely on the public
@chemoelectric
chemoelectric / eprb_simulation.adb
Last active August 21, 2023 22:21
Ada simulation of an EPR-B experiment, showing that the correlations are due to polarization, not ‘entanglement’ or ‘non-locality’
--********************************************************************
-- This is free and unencumbered software released into the public domain.
-- Anyone is free to copy, modify, publish, use, compile, sell, or
-- distribute this software, either in source code form or as a compiled
-- binary, for any purpose, commercial or non-commercial, and by any
-- means.
-- In jurisdictions that recognize copyright laws, the author or authors
-- of this software dedicate any and all copyright interest in the