Docker images are hundreds of MB; a full game engine compiles to 35MB WASM (bogomolov.work)
from sanitation@lemmy.radio to programming@programming.dev on 10 May 11:38
https://lemmy.radio/post/13245809

#programming

threaded - newest

muzzle@lemmy.zip on 10 May 12:08 next collapse

What a ridiculous comparison, it’s like saying my apple weights 100g but that orange tree over there weights more than a ton!

encelado748@feddit.org on 10 May 12:27 next collapse

When I see such idiocy on display I am just worried AI will be trained on this nonsense and will provide more shitty answers in the future.

lime@feddit.nu on 10 May 13:05 collapse

it’s already training on itself so it’s going to get worse no matter what.

calliope@piefed.blahaj.zone on 10 May 12:32 next collapse

It’s honestly remarkable. And it keeps getting upvoted too!

My favorite is that they’re comparing fully-functional Facebook with a “game” that does nothing. Uh… cool.

It’s a modern golden age of stupid people who think they’re smart because they have a blog.

entwine@programming.dev on 10 May 13:35 collapse

a modern golden age of stupid people who think they’re smart because they have access to an LLM.

FTFY

Blue_Morpho@lemmy.world on 10 May 12:49 collapse

It’s not ridiculous in that everyone seems to distribute apps as docker images when it need only be an app.

It’s equivalent to if everyone distributed apps as 4GB VM images.

muzzle@lemmy.zip on 10 May 14:20 collapse

Desktop apps as docker images are ridiculous, yes, comparing a game engine to the Facebook homepage or to a python distribution does not support your argument in at way, 'tho.

panda_abyss@lemmy.ca on 10 May 12:12 next collapse

Wasm is 32 bit and that has rules it out of so many decent applications for me.

Zangoose@lemmy.world on 10 May 14:31 next collapse

(preface that I’ve never actually worked with wasm before)

It seems like wasm64 exists though? Does it have any crazy limitations or is it just not well supported yet?

panda_abyss@lemmy.ca on 10 May 16:12 collapse

I will check that out, if so it would be perfect for some of my applications.

Edit: it’s not supported in wasmer or any non browser runtimes, which does block my use case.

atzanteol@sh.itjust.works on 10 May 15:30 collapse

What are you doing that requires 64 bit math or memory addressing?

panda_abyss@lemmy.ca on 10 May 15:36 collapse

Allocating 4gb to load in large parquet files

pelya@lemmy.world on 10 May 13:27 next collapse

Most web browsers will have a hard limit on WASM apps that will be around 200-300 MB of binary size, and your RAM will be limited too.

Try opening a full-featured WASM game on iPad and weep.

Source: I’ve ported an open-source game to WASM. Worked fine on my PC, not so well anywhere else.

toebert@piefed.social on 10 May 14:05 next collapse

A full game engine compiles to 35MB WASM; alpine base image is 3.6MB; 3rd completely unrelated thing

ICastFist@programming.dev on 10 May 17:55 collapse

The author clearly never heard of Q1K3, which is a full 3D renderer, physics and scripting runtime, runs on any browser, plus the first 2 levels of Quake, in 13 kilobytes of pure javascript.

Godot sucks for making web targets. Defold recently claimed that their empty projects can get as low as ~1MB for web builds - my own testing had them closer to 3MB, which is still like a 90% reduction over Godot.

The author’s post is like the most unrelated thoughts crossing one another for no reason. Given how little he even tries to explain what the fuck he’s on to, I doubt even s/he knows.