Timestamp: 2025-12-22T03:36:00Z Thread: T-019b4405-2a14-7207-af89-748a784371d5 Gist: https://gist.github.com/bmorphism/331f78891d4e439616a19705d5467579
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Why Plastic Constant is 2D Optimal</title> | |
| <style> | |
| body { | |
| font-family: monospace; | |
| background: #0a0a0a; | |
| color: #e0e0e0; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Hamming Swarm Error-Correcting Codec</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%); | |
| color: #e0e0e0; | |
| font-family: 'SF Mono', 'Consolas', monospace; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>3×3×3 Alphabet Tensor with Hamming Swarm</title> | |
| <script src="https://enkimute.github.io/ganja.js/ganja.js"></script> | |
| <style> | |
| body { margin: 0; background: #0a0a0a; color: #e0e0e0; font-family: 'SF Mono', monospace; } | |
| .controls { | |
| position: fixed; top: 10px; left: 10px; z-index: 100; | |
| background: rgba(0,0,0,0.8); padding: 15px; border-radius: 8px; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Gay-TOFU Demo - Bijective Color Sequences</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; |
| /** | |
| * Tests for Gay-TOFU TypeScript implementation | |
| * Run with: deno test gay-tofu.test.ts | |
| * or with Node: npx tsx gay-tofu.test.ts | |
| */ | |
| import { | |
| goldenAngleColor, | |
| plasticColor, | |
| haltonColor, |
| /** | |
| * Gay-TOFU: Low-Discrepancy Color Sequences for Visual Authentication | |
| * | |
| * TypeScript port of the Julia implementation for browser/Node.js use. | |
| * Bijective color generation - you can recover the index from the color. | |
| * | |
| * @module gay-tofu | |
| * @license MIT | |
| */ |
This prototype demonstrates how to generate deterministic color palettes from seed strings in Julia and reproduce the same palettes in JavaScript. The Julia implementation uses Gay.jl, a lightweight wrapper around the Colors.jl ecosystem, to seed a random number generator from a string and then produce an array of RGB colors. By seeding the PRNG with a stable integer derived from the seed text, you can obtain consistent palettes across runs and across languages. The JavaScript snippet replicates the same algorithm, ensuring that identical seeds produce identical palettes in the browser.
Julia’s Colors.jl library provides rich tools for creating colour maps. For example, sequential_palette in Colors.jl can build a sequential palette given a hue and several parameters (Colormaps and Colorscales · Colors - julia), and
| (_) | (_) (_) | | |
| _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | |
| | | | | | | |/ _` | | | |
| | | |_| | | | (_| | | Version 1.10.10 (2025-06-27) | |
| _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release | |
| |__/ | | |
| julia> using Gay | |
| ERROR: ArgumentError: Package Gay not found in current path. | |
| - Run `import Pkg; Pkg.add("Gay")` to install the Gay package. |
On an Apple Silicon device do-be:
flox activate -- uvx --from mlx-lm mlx_lm.generate \
--model Plurigrid/DR-Tulu-8B-MLX-6bit \
--prompt "Write only one flowing paragraph, no preface, no notes, no <think>, no plan. Answer as
a philosopher-poet of stochastic processes: what would it mean to become the Fokker-Planck equation—
identity as probability flow?" \
--max-tokens 4444 --temp 0.9