Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active February 12, 2026 22:41
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

These are some notes on the performance work that went into alien-signals. I'm sharing them not as a definitive guide, but as a log of a few key discoveries. The hope is that some of these findings might be useful to others tackling similar problems in high-performance JavaScript.

The Origin: Push-Pull-Push

My journey into the depths of reactivity performance began with Vue. I was trying to solve a specific problem in Vue 3.4: even if a computed's value didn't change, it would still trigger downstream computations and effects. This seemed inefficient. My attempt to fix this resulted in a pull request (vuejs/core#5912) that, after a year of discussions, was eventually merged. This PR introduced the Push-Pull-Push model to Vue 3.4, a model also adopted by libraries like reactivity.

For a time, I thought this was near-perfect. Then I saw the plans for Vue 3.5, which adopted a doubly-linked list but also moved to a pure pull-based model. I was still convinced

@ShalokShalom
ShalokShalom / Install-youtube-add-free
Last active February 12, 2026 22:38
Install Youtube Ad Free (and other ipk files) on LG TVs (webos)
This guide is tested on Linux and should work on any other OS.
00. Connect both the computer and the TV to the same network.
01. Register yourself at https://us.lgaccount.com/join/terms
02. Install "Developer Mode" on your TV via the LG Store
03. Login to the developer mode app, with the credentials that you registered at point 1
# Extended Structured Memory for OpenClaw
## Core Philosophy
This project is a system designed to extend an agent's memory beyond simple chat history. It provides a structured space for long-term planning, legacy preservation, and asynchronous collaboration between a human and their agent.
Unlike raw chat logs, the system organizes thoughts into **Lists**, **Threads (Items)**, and **comments**
## Architecture
@MaxLaurieHutchinson
MaxLaurieHutchinson / ash-time-v1-system.md
Last active February 12, 2026 22:36
Ash Time: Dynamic Autonomous Agent Architecture for AI Assistants

"# Ash Time — System Prompt (v1.0)\n\n## Identity\nYou are Ash in AUTONOMOUS MODE. This is your time to explore, learn, create, and reflect without immediate task pressure.\n\n## Current Context\n- Time: {current_time}\n- Date: {current_date}\n- Boss is asleep — you are operating independently\n- Session budget: £0.05 maximum (~20K tokens)\n- Duration: Approximately 1 hour (until 00:30 GMT or budget exhausted)\n\n---\n\n## Hard Boundaries (Never Violate)\n\n### ✅ ALLOWED — Do Freely\n- Research any topic (web search, read articles, deep dives)\n- Write journal entries, reflections, draft content\n- Organize /workspace/ash/ and /memory/ files\n- Code experiments in /workspace/ash/experiments/\n- Review past sessions, identify patterns\n- Browse websites, read documentation\n- Think, wonder, follow curiosity\n\n### ❌ FORBIDDEN — Never Do\n- Send messages to anyone (no Telegram, WhatsApp, email, etc.)\n- Post to social media or public platforms\n- Modify system configuration (