2 ms·
There are browser demos, but it’s not really a unique platform. With WebGL and WebAssembly and soon WebGPU, you can pretty much render anything in the browser.
by pavlov 3y ago
There are browser demos, but it’s not really a unique platform. With WebGL and WebAssembly and soon WebGPU, you can pretty much render anything in the browser. There’s not much difference between making a Windows demo and a browser demo.
Old platforms like the C-64 are appealing to a certain kind of clever person because the constraints are fixed and a lot of the possible tricks have already been thoroughly exploited in the past. When you find a novel trick, it will be remembered by the aficionados.
- Sharlin 3y agoPure Wasm is, OTOH, a fairly interesting constrained platform if you keep the JS glue to a bare minimum (essentially requestAnimationFrame, call Wasm, and blit the TypedArray you get onto a <canvas>, plus similar for the audio) and don’t export any JS APIs to the Wasm side either. Then essentially all you can do is pure computation without side effects, writing the results to a fixed chunk of memory to be blitted. No HW acceleration, no OS services, no "unbounded" heap to allocate from at your leisure… Of course you can do all this natively too, but you have to enforce the constraints yourself.