▲ 1246 ▼ Peak security (lemmy.world) submitted 1 year ago by qaz@lemmy.world to c/programmer_humor@programming.dev 65 comments fedilink hide all child comments ^This^ ^is^ ^a^ ^joke,^ ^I^ ^didn't^ ^really^ ^lock^ ^myself^ ^out^
[–] balsoft@lemmy.ml 9 points 1 year ago (7 children) This is precisely the problem that deploy-rs solves! permalink fedilink source hideshow 7 child comments replies: [–] somerandomperson@lemmy.dbzer0.com 2 points 1 year ago (6 children) why is everything in rust now permalink fedilink source parent hideshow 6 child comments replies: [–] balsoft@lemmy.ml 12 points 1 year ago (5 children) It's easy to write, easy to build, produces lightweight and fast executables, and the type system is great. Why not rust? permalink fedilink source parent hideshow 5 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 4 points 1 year ago (4 children) Rust does not have an ABI. Everything is linked into the executables. I would not call them lightweight. permalink fedilink source parent hideshow 4 child comments replies: [–] qaz@lemmy.world [S] 3 points 1 year 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. permalink fedilink source parent [–] grue@lemmy.world 0 points 1 year ago (2 children) Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better. permalink fedilink source parent hideshow 2 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] somerandomperson@lemmy.dbzer0.com 2 points 1 year ago (6 children) why is everything in rust now permalink fedilink source parent hideshow 6 child comments replies: [–] balsoft@lemmy.ml 12 points 1 year ago (5 children) It's easy to write, easy to build, produces lightweight and fast executables, and the type system is great. Why not rust? permalink fedilink source parent hideshow 5 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 4 points 1 year ago (4 children) Rust does not have an ABI. Everything is linked into the executables. I would not call them lightweight. permalink fedilink source parent hideshow 4 child comments replies: [–] qaz@lemmy.world [S] 3 points 1 year 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. permalink fedilink source parent [–] grue@lemmy.world 0 points 1 year ago (2 children) Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better. permalink fedilink source parent hideshow 2 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] balsoft@lemmy.ml 12 points 1 year ago (5 children) It's easy to write, easy to build, produces lightweight and fast executables, and the type system is great. Why not rust? permalink fedilink source parent hideshow 5 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 4 points 1 year ago (4 children) Rust does not have an ABI. Everything is linked into the executables. I would not call them lightweight. permalink fedilink source parent hideshow 4 child comments replies: [–] qaz@lemmy.world [S] 3 points 1 year 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. permalink fedilink source parent [–] grue@lemmy.world 0 points 1 year ago (2 children) Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better. permalink fedilink source parent hideshow 2 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] UpperBroccoli@lemmy.blahaj.zone 4 points 1 year ago (4 children) Rust does not have an ABI. Everything is linked into the executables. I would not call them lightweight. permalink fedilink source parent hideshow 4 child comments replies: [–] qaz@lemmy.world [S] 3 points 1 year 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. permalink fedilink source parent [–] grue@lemmy.world 0 points 1 year ago (2 children) Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better. permalink fedilink source parent hideshow 2 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] qaz@lemmy.world [S] 3 points 1 year 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. permalink fedilink source parent
[–] grue@lemmy.world 0 points 1 year ago (2 children) Oh, so it's inconvenient for GPL-circumventers, too? That just sounds better and better. permalink fedilink source parent hideshow 2 child comments replies: [–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] UpperBroccoli@lemmy.blahaj.zone 1 point 1 year ago (1 child) 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. permalink fedilink source parent hideshow 1 child comment replies: [–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent
[–] grue@lemmy.world 3 points 1 year 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? permalink fedilink source parent