A 386 Demoscene Vortex: Navier-Stokes in Under 1KB

Show HN: Navier-Stokes Visualized as 1kB i386 demos

Inspired by OpenAI's Navier-Stokes announcement, a developer created two sub-1KB MS-DOS demos for the 386: a palette-cycling Burgers vortex and a real-time particle simulation. The programs, written in 386 assembly, run in DOSBox and achieve 946 and 1,072 bytes respectively, with JavaScript versions for experimentation.

The result is 946 bytes: 896 of code, and 50 of data for the random seed, two counters, and the ramp, gain and hue values the colours are built from.
  1. Kotlopou

    This is pretty, but none of those visualisations look very... singular to me? Can anyone tell me where to look in those simulations to see the blowup? Does speed go infinite in some region (which one? the blue or orange part?), or just non-smooth?

  2. westurner

    Neat! Geisswerks has Navier-Stokes visualizations that run on Win98/2k IIRC.

    Milkdrop3/projectM can vary visualization parameters according to audio attributes samples in real time.

    Could be in an open source bowling alley: https://news.ycombinator.com/item?id=48971134

    I've my own particle visualizations, after editing the ThreeJS particle attractor example I've started building a collection of these with R3F ReactThreeFiber and Drei in westurner/particlewavefluid: https://github.com/westurner/particlewavefluid

    ThreeJS can use WebGPU if available or fallback to WebGL.

    I haven't yet implemented NS; I should prioritize building Fedi's SQG and DDF Dilatant Dark Fluid models of black holes with only just one vortex moisture with GOE Gross-Pitaevskii equation.

    I did do (ai) review and try to find extensions from the new NS for Incompressible fluids solution. There are connections from Navier-Stokes to Lagrangian mechanics through the Madelung transformation; https://news.ycombinator.com/item?id=49637058

    But SQS and DDF say that the Superfluid of space-time is a dilatant fluid that is both compressible and incompressible, and there's a 4th term. So far, I've used 4x4 normed tensor Gaussian splatters to quantize the fluid simulations and it seems advantageous because FWIU the normed tensors already naturally do conservation of energy in the sim.

    Also working with sim optimizations on limited architectures;

    Re: the first version of MU-AV (in C++) on an ESP32-S3 with a 1Hz ePaper pri […]

More from this day

2026-09-18