What does HackerNews think of hello-world.rs?

🚀Memory safe, blazing fast, configurable, minimal hello world written in rust(🚀) in a few lines of code with few(1092🚀) dependencies🚀

Language: Rust

#3 in Express
#93 in Rust
#5 in Rust
It's a joke, as some Rust projects used to repetitively claim to be "memory safe & blazing fast", thus becoming a tongue-in-cheek phrase. I also anticipated language to be Rust, but it would be way too comical.

https://github.com/mTvare6/hello-world.rs

> Somehow Rust forces you to have colorful terminal output? Rust is high overhead? You can't strive for simplicity and write in Rust?

This was more of a sarcastic reference to https://github.com/mTvare6/hello-world.rs But I don't think Rust fits in here: https://suckless.org/philosophy/

> How is Rust incompatible with aligning with the philosophy that encourages building simple yet functional things?

I would say it attracts different kind of developers that in turn make respective design choices, and I believe Rust, its syntax, package management ecosystem and community reflect that. Can you write simple system tools in JavaScript or brainfuck (not trying to compare here)? Sure, but the thinking process, design decisions, approaches would be drastically different compared to what I'd consider good and elegant code.

ANSI C is probably the best balance you can get between product complexity, coding complexity and usability of the output (which again, has to be simple: writing something like Kubernetes in C is probably not the best idea, hence it was implemented in a more suitable language). Though there are some very good and complex products, like the Linux kernel, Redis or Varnish. All of them are very modular, as complex products should be.

Just by having a musl library and tcc [0] you can get a lot done. I'd prefer that over complexity that Rust toolchain involves and crates ecosystem mess.

[0] https://bellard.org/tcc/

Why would they do that when they could Rewrite it in Rust®? Given that it’s ~50× as complex as hello world¹, it should only take about 54,800 dependencies (including 30,000 C binding crates), 1.65 terabytes of disk space for the target folder or even just 190 GB after a clean build, and maybe raise a quad-core CPU to 1567.6°C or a 200 core one to 95.

¹ Written in Rust here: https://github.com/mTvare6/hello-world.rs

That sounds dangerous. Rewrite it in Rust to make it memory safe, blazing fast, configurable, and minimal with only 1092 dependencies.

https://github.com/mTvare6/hello-world.rs