Skip to content

Instantly share code, notes, and snippets.

View joemaddalone's full-sized avatar

Joe Maddalone joemaddalone

View GitHub Profile
@joemaddalone
joemaddalone / Splash-Qwen3.6-35B.log
Created October 4, 2026 01:17
benchamrks for omlx vs splash
server=http://127.0.0.1:8000 model=incoai/Qwen3.6-35B-A3B-Splash sizes=[64, 512, 2048, 4096, 8192, 16384, 32768] runs=5 max_tokens=256
[size=64] warm-up ... in=77 out=256 (2.5s)
run 1/5 ... TTFT 188ms prefill 409 decode 115.3 in=77 out=256 total 2.4s
run 2/5 ... TTFT 190ms prefill 406 decode 116.1 in=77 out=256 total 2.4s
run 3/5 ... TTFT 194ms prefill 396 decode 116.1 in=77 out=256 total 2.4s
run 4/5 ... TTFT 187ms prefill 412 decode 115.1 in=77 out=256 total 2.4s
run 5/5 ... TTFT 189ms prefill 408 decode 115.4 in=77 out=256 total 2.4s
[size=512] warm-up ... in=437 out=256 (3.2s)
run 1/5 ... TTFT 222ms prefill 1966 decode 104.4 in=437 out=256 total 2.7s
run 2/5 ... TTFT 219ms prefill 1999 decode 103.5 in=437 out=256 total 2.7s

Constitution

  • Features should be independently testable.
  • Business logic should be represented explicitly and tested.
  • Prefer simple, maintainable solutions over unnecessary abstractions. - Use TypeScript with strict type checking.
  • The UI should remain responsive and keyboard accessible.
  • Keep the application local-first with no required backend.

Spec

import struct
import main
with open(main.pathToModel, 'rb') as f:
magic = f.read(4).decode('utf-8')
version = struct.unpack('<I', f.read(4))[0]
tensor_count = struct.unpack('<Q', f.read(8))[0]
kv_count = struct.unpack('<Q', f.read(8))[0]
print(f'Magic: {magic}')
print(f'Version: {version}')

Agent's Memory Bank

I am Agent, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@joemaddalone
joemaddalone / bounce-array
Last active December 26, 2020 16:11
bounce in a two-dimensional array
export function* bounce(arr) {
let x = 0;
let y = 0;
let mx = 1;
let my = 1;
const w = arr.length - 1;
const h = arr[0].length - 1;
while (true) {
if (mx + x > w || mx + x < 0) {
mx = mx * -1;
@joemaddalone
joemaddalone / gist:4e824df3a15d8ecd1d7066d486cab833
Last active July 11, 2020 22:27
filltext example w/o pretty & callback
{
"rows" : "100",
"id" : "{index}",
"active" : "{bool}",
"fname" : "{firstName}",
"lname" : "{lastName}",
"category" : "[13,16,19,21]",
"tel" : "{phone}",
"address" : "{addressObject}",
"cc" : "{ccObject}",
const Map = ({list, key, children}) => {
const child = React.Children.only(children);
const Item = child.type;
return list.map((item, index) => {
const keyed = Object.assign({key: item[key] || index}, item)
return React.createElement(Item, keyed);
})
};
{
"editor.snippetSuggestions": "top",
"editor.insertSpaces": false,
"editor.minimap.enabled": false,
"editor.hideCursorInOverviewRuler": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"workbench.colorTheme": "Afterglow",
"window.zoomLevel": 2,
"workbench.iconTheme": "vs-seti",
{
"htmli": {
"prefix": "htmli",
"body": "<link rel=\"import\" href=\"$0\" />",
"description": ""
},
"wat": {
"prefix": "wat",
"body": "attachedCallback(){\n\t$0\n}",
"description": ""

index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Setup</title>
</head>
<body>
  <div id="app"></div>