1267
Peak security (lemmy.world)
submitted 4 days ago* (last edited 3 days ago) by qaz@lemmy.world to c/programmer_humor@programming.dev

^This^ ^is^ ^a^ ^joke,^ ^I^ ^didn't^ ^really^ ^lock^ ^myself^ ^out^

you are viewing a single comment's thread
view the rest of the comments
[-] balsoft@lemmy.ml 8 points 4 days ago

This is precisely the problem that deploy-rs solves!

why is everything in rust now

[-] balsoft@lemmy.ml 13 points 3 days ago

It's easy to write, easy to build, produces lightweight and fast executables, and the type system is great. Why not rust?

[-] UpperBroccoli@lemmy.blahaj.zone 4 points 3 days ago

Rust does not have an ABI. Everything is linked into the executables. I would not call them lightweight.

[-] qaz@lemmy.world 3 points 3 days ago* (last edited 3 days ago)

A standard Docker container with a NodeJS/PHP/Python app is usually around 200-300 MB (yes really), the OpenJDK JVM is around a hundred MB, but a fully statically compiled rust binary that doesn't even depend on libc is just a couple MB and can be deployed as a tiny distroless Docker container.

It's a lot heavier than your 8kb C++ executable but it's nothing compared to what is required to deploy anything else.

[-] grue@lemmy.world 2 points 3 days ago

Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better.

[-] UpperBroccoli@lemmy.blahaj.zone 1 points 3 days ago

To me, it is mostly a real blocker for using it in some embedded Linux devices due to size constraints, otherwise I personally would be using it extensively.

[-] grue@lemmy.world 3 points 3 days ago* (last edited 3 days ago)

I'm having a hard time imagining this Goldilocks embedded device that is simultaneously big enough to run Linux (so not an actual microcontroller), yet too small for a few megabytes worth of statically-linked libraries. Got an example?

this post was submitted on 05 Aug 2025
1267 points (99.1% liked)

Programmer Humor

25548 readers
288 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS