News for hackers. Stuff that matters.
Re:Setris – Tetris with Sand Physics by throwme_123 on Tuesday May 30, 2023 @09:45AM (#36124823)
Sorry but sand physics is probably doable in a few kb (yes, that's kilobytes) of JS.

This is different and simpler but just 140 bytes (not k): https://codepen.io/KilledByAPixel/pen/WNGQWZG

Nothing in that game justifies being more than 1mb (being very generous...) minified as a browser app.

Re:Setris – Tetris with Sand Physics by junon on Tuesday May 30, 2023 @09:58AM (#36124970)
Of javascript. Which has a stupidly large runtime that is certainly not just a few kilobytes.
Re:Setris – Tetris with Sand Physics by shultays on Tuesday May 30, 2023 @10:22AM (#36125207)
Sorry, I have to make one last snarky comment. You can probably include entire firefox along with that a few kb of js and still make it under whatever that 60mb expands to :)
Re:Setris – Tetris with Sand Physics by krzyk on Tuesday May 30, 2023 @03:20PM (#36129278)
Sure, let's maybe make an electron app.
Re:Setris – Tetris with Sand Physics by throwme_123 on Thursday June 01, 2023 @12:33AM (#36147600)
Ok, was mentioning without the browser runtime obviously.

Opionated take, but I believe that the web common runtime should be part of the OS nowadays.

Even without this, Tauri is 8Mb.