Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

Elite JavaScript

Zero-dependency browser experiments. WebAssembly edge. Service Worker mastery.

JavaScript that treats the browser as a systems platform. No bundlers, no frameworks, just vanilla JS + Web APIs pushing WebAssembly, SharedArrayBuffer, and OffscreenCanvas to their limits.

Flagship Experiments

Pithy Neural Kernel

A browser-native neural playground with a systems feel. Weird, kinetic, and very online in the best way.

Pithy VerLite

A zero-dependency cloth physics experiment with marbles, tearing, pressure, and just enough chaos to keep it fun.

More Experiments

ExperimentBundle SizeKey Technique
No-Alloc Parser2.1KBTextDecoder → AST, zero GC pressure
Lock-Free Queue1.8KBSharedArrayBuffer + Atomics
WASM SIMD3.4KBWebAssembly SIMD + postMessage zero-copy
Terminal Renderer4.2KBOffscreenCanvas + 60fps block graphics

Characteristics

  • No bundlers: Single index.html files, <script> tags only
  • No frameworks: Vanilla JS + Web APIs exclusively
  • Bundle ≤ 5KB: Gzip targets for instant loading
  • Service Workers: Offline-first, cache-first architecture
  • Complete demos: Open index.html and it works immediately

Philosophy

JavaScript's strength is WebAssembly integration. These experiments show how to:

  1. Build WASM allocators without Emscripten
  2. Run 60fps terminals via OffscreenCanvas
  3. Build lock-free data structures with Atomics
  4. Create zero-copy pipelines via ReadableStream

Usage

git clone https://github.com/pithycyborg/elite-javascript
cd experiment-name
open index.html

Benchmarks

ExperimentInput SizeJS (Vanilla)Rust (WASM)Python
JSON Parser1MB4.2ms2.1ms187ms
Queue (1M ops)-28μs14μs2.7ms

Newsletter for JS deep-dives + weekly prompts: PithyCyborg.com

X:@mrcomputersci | @pithycyborg

MIT License

About

Zero-dependency browser experiments. WebAssembly edge. Service Worker mastery. No bundlers. No frameworks. Vanilla JS + Web APIs. Custom allocators, lock-free queues, SIMD via WASM, OffscreenCanvas. 60fps terminal emulators. SharedArrayBuffer. ReadableStream zero-copy. index.html → production.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages