Skip to content

Instantly share code, notes, and snippets.

View alexispurslane's full-sized avatar

Alexis Purslane alexispurslane

View GitHub Profile
@alexispurslane
alexispurslane / eearch.md
Last active April 2, 2026 14:34
Embryo Engine Architecture 2.0

Custom Space ImSim Engine Architecture

Core Philosophy: Aggressive scoping. Maximize behavioral emergence via a message bus and array of structs architecture similar to Caves of Qud (ImSim mechanics), game world scale enabled by a 64-bit physics engine, and nested physics grids for complex space architectures and interactions (such as “space legs”, ship boarding, seamless EVA), while cutting corners on graphics (Blinn-Phong, dynamic lights only) and rigid-body rotational physics to maintain high performance and solo-developer feasibility.

Core Technology: Written entirely in Odin, leveraging native manual memory management (Arenas, implicit contexts), native operator overloading for vector math (core:math/linalg), tagged unions for ADTs, and zero-overhead C-bindings for Raylib 5.5 and official Lua 5.4 bindings.

1. Fundamental Data Flow (The RAM and PCB)

The engine relies on a strictly managed memory layout. By using Odin, we completely eliminate Garbage Collection (GC) overhead naturall

@alexispurslane
alexispurslane / ssh-remote.ts
Created March 31, 2026 02:13
SSH Remote Extension for pi - routes file operations and bash to a remote server over SSH using SSHFS
/**
* SSH Remote Extension for pi
*
* Routes file operations (read, write, edit) and bash to a remote server over SSH.
* Uses SSHFS for file operations and direct SSH for bash execution.
*
* Usage:
* pi -e ./ssh-remote.ts --ssh user@host
* pi -e ./ssh-remote.ts --ssh user@host:/remote/path --ssh-key ~/.ssh/key
* pi -e ./ssh-remote.ts --ssh user@host --ssh-port 2222

Workflow: The Enlightened Gas Town Refinery

This workflow represents a high-throughput, agentic development environment where manual boilerplate is traded for architectural oversight. It balances high-context reasoning with cost-effective execution, utilizing a heterogeneous model stack, voice-driven orchestration, and real-time collaborative IDE integration.

1. The Core Stack: Model Arbitrage

The system uses "Model Arbitrage" to optimize for the "Mana" (weekly token limit) vs. Intelligence trade-off.

  • Orchestrator (Kimi K2.5): Acts as the primary "thinker" and project manager. It takes high-level architectural specs (~800 words) and either directly decomposes them into granular, parallelizable execution plans, or creates large collaborative single source of truth feature specification documents that the user iterates with it on first, then decomposes. It has the most amount of total and active parameters and is also specifically reinforcement trained for managing agent swarms with a n
import math
def calculate_inference_footprint(model_params, gpu_params, input_tokens, output_tokens):
"""
Calculates the hardware, energy, and time footprint for an LLM workload.
"""
# Units
GB = 1_000_000_000
GiB = 1024**3 # Fixed to 1024^3
TB = 1_000 * GB
@alexispurslane
alexispurslane / BDD.md
Last active February 4, 2026 21:03
BDD/type-first/spec-driven development workflow idea. Let's see if the most powerful open weight model yet can actually consistently listen to it!

2. Adding Features (Type-First BDD Workflow)

When the user proposes a new feature, follow this workflow where executable tests specify behavior and types + doc comments specify technical design:

Step 1: Agree on Behavior

Write natural language Gherkin scenarios and iterate with the user:

Given a source file with a file link
{
"basics": {
"name": "Alexis Dumas",
"label": "Software Developer",
"email": "alexispurslane@pm.me",
"url": "https://www.linkedin.com/in/alexis-purslane-49874624a/",
"summary": "I'm a passionate software developer; I've been programming since seven, and I excel in systems thinking, software architecture, and versatility.",
"location": {
"city": "Pittsburgh",
"countryCode": "US",
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
make distclean
# Environment Setup
export LDFLAGS="-L$(brew --prefix libmps)/lib -L$(brew --prefix tree-sitter)/lib"
export CPPFLAGS="-I$(brew --prefix libmps)/include -I$(brew --prefix tree-sitter)/include"
export CFLAGS="-O3 -march=native -fno-finite-math-only -fno-trapping-math -fassociative-math -freciprocal-math"
./configure \
--with-ns \
--with-mps \
@alexispurslane
alexispurslane / gptel-perplexica.el
Created November 23, 2025 02:13
Perplexica integration for GPTel. Worked as of whenever I made it last, don't think GPTel has changed anything. supports citations as org-mode footnotes!
;; gptel-perplexica.el --- implements a Perplexica backend for GPTel -*- lexical-binding: t -*-
;;; Perplexica
(require 'gptel)
(require 'gptel-transient)
(require 'gptel-openai)
(cl-defstruct (gptel-perplexica (:constructor gptel--make-perplexica)
(:copier nil)
(:include gptel-openai))