64
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 11 Jul 2023
64 points (88.1% liked)
Programmer Humor
32562 readers
433 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
Rust turns a lot of safety things 'on' by default.
Turning all of that off for a tiny program that doesn't need it such as hello world results in a comparable size.
This is a good talk on rust
https://youtu.be/VlSkZYBeK8Q
And this one goes over size reduction
https://youtu.be/b2qe3L4BX-Y
Thanks for the resources. I'm old school, and so far haven't really looked into Rust; I look forward to watching the talk you linked to.
this is not due to safety but rather std. Set opt level to 3 and enable fat lto