The purpose of this repository is to store and track small pieces of code and algorithms in different programming languages, usually to practice and make tests for larger projects or just for curiosity when trying languages.
- Every experiment is a folder named
YYMMDD-STATUS-topic, so a directory listing shows both the order and the state of everything.YYMMDDis the date it was created, planned or started. It never changes, so folders stay in chronological order.STATUSis one ofPLANNED,ONGOING,DONEorABANDONED. Rename status withgit mvto keep track of them.topicwhat the code is. For books and papers, the topic should start with a short name of the source, for exampleraft-consensusorcrafting-interpreters-scanner.
PLANNEDmeans not started yet, whether it's my own idea or something from a book or paper. A planned experiment is a folder with only aREADME.md: a title, the languages and a Goal. Taking notes while reading a paper already counts asONGOING, even before there's code.- Every experiment has a
README.mdwith Goal, Run and Findings. Books and papers also get a Source line. - When one experiment is tried in several languages, each version goes in its own subfolder (
python/,clojure/, …). - Toolchain-specific ignores (
node_modules,dist, …) go in the experiment's own.gitignore.
- Indefinite collections, such as hello-world, Project Euler or a whole book of exercises, are numbered
000000,000001,000002, … instead of dated, so they always list first. - Inside a collection, each entry gets its own folder with language subfolders, and the collection's README has a table of the entries.
- A single algorithm from a book chapter or paper is a normal dated experiment, not a collection.
000000 — Hello, World!
Ada, C, Clojure, D, Forth, Go, Haskell, Julia, OCaml, R, Scheme, Swift
ONGOING Minimal program and run command per language.
000001 — Project Euler
PLANNED Project Euler problems.
261111 — SCPI over raw TCP sockets
Python, Clojure
DONE SCPI to a Siglent scope over TCP 5025; read replies until LF.
261111 — Simplest HTML templating
TypeScript (Deno)
DONE Layout + nestable components via regex and placeholder replacement; self-nesting needs a real parser.
261111 — Random-wait execution in Tcl
Tcl
DONE "after" only queues work; nothing runs until "vwait" starts the event loop.
261111 — Client-side navigation without frameworks
TypeScript
PLANNED Swap page content with fetch and the History API.
261111 — SCPI binary waveform
Python, Clojure
PLANNED Download and plot a full waveform; parse the IEEE 488.2 binary block.
261112 — Chez Scheme TUI menu
Scheme (Chez)
ONGOING Pick a string with the arrow keys using only stty and ANSI escapes.