Tom Morris on Nostr: I've just written a small Rust program. `cargo build --release` emits a 4.6 MB binary ...
I've just written a small Rust program. `cargo build --release` emits a 4.6 MB binary (on aarch64 macOS).
With strip=true and opt-level=z, goes down to 1.4 MB.
I Dockerized it. The image is 1.18 GB. (Can't use Alpine because tokio etc.)
Unlike a lot of tech terms, at least "containerisation" is an accurate metaphor.
You've got a Mars bar? A single cassette? A slice of Swiss cheese? A shipping container for each one!
What have we collectively done as a species to deserve this nonsense?
Published at
2023-11-17 11:09:59Event JSON
{
"id": "4094af38917fb42f47d8bbe4d0893ce28d584a4837409c3ed170da51f7966d22",
"pubkey": "3fb03273ccfb93b475b4da1adbc77095e599011eb4cd3d3eb32200cd3ea04668",
"created_at": 1700219399,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/tommorris/statuses/111425578585771663",
"activitypub"
]
],
"content": "I've just written a small Rust program. `cargo build --release` emits a 4.6 MB binary (on aarch64 macOS).\n\nWith strip=true and opt-level=z, goes down to 1.4 MB.\n\nI Dockerized it. The image is 1.18 GB. (Can't use Alpine because tokio etc.)\n\nUnlike a lot of tech terms, at least \"containerisation\" is an accurate metaphor.\n\nYou've got a Mars bar? A single cassette? A slice of Swiss cheese? A shipping container for each one!\n\nWhat have we collectively done as a species to deserve this nonsense?",
"sig": "4575c37acc4e4742393c2a3c422d37a89690e83064b80cf9930a230c28d18e528cc091460986e81fa339186110f1ea80ed1b0d54b6c0c996f75cc1f707af55d9"
}