News for hackers. Stuff that matters.
Re:Topcoat is pushing the boundary of server applications wi... by aslkalska on Friday September 25, 2026 @10:34AM (#49845247)
Honestly Rust is an ugly looking language, I mean it's probably okay if you're coming from C or C++ but if you're coming from say Java, it's horrendous. but then again that probably does not matter at all.
Re:Topcoat is pushing the boundary of server applications wi... by cogman10 on Friday September 25, 2026 @12:12PM (#49846504)
I come from Java, I disagree.

The majority of rust's ugliness is the fact that it's handling a different problem than Java does. Java relies heavily on a GC to simplify. Rust does not.

I think the only thing that I find ugly in rust is that memory leaks are considered memory safe. [1]

That, unfortunately, means that you can't 100% rely on the language to not leak memory. Though, it's possible to leak memory in Java as well (Use `Deflate` incorrectly and you'll quickly find a hard to catch memory leak).

[1] https://brson.github.io/rust-anthology/1/memory-leaks-are-me...

Re:Topcoat is pushing the boundary of server applications wi... by yencabulator on Friday September 25, 2026 @05:33PM (#49850268)
> you can't 100% rely on the language to not leak memory

Start a thread with an infinite loop, you've just leaked some memory.

The language just can't prevent you.

Re:Topcoat is pushing the boundary of server applications wi... by throwawayqqq11 on Friday September 25, 2026 @10:59AM (#49845611)
Just like any other language, you can get used to it. There are ways to hide the uglyness and i am not sure if this is a good thing. (i will always hate macros!)
Re:Topcoat is pushing the boundary of server applications wi... by Mabusto on Friday September 25, 2026 @01:37PM (#49847630)
I thought the same thing. I started working full time in Rust back in March and the first few weeks I thought “this is ridiculous, it’s so ugly and hard to read”. My background is in C++ for game development (10y) followed by CTO of a web startup (JS/Python/TypeScript), so I know ugly code!

You absolutely do get used to it and I really like the built in formatters. I would write everything in Rust going forward if I could, it really is a different way of thinking about how to write code. I don’t agree it’s the right tool for every job though.

Re:Topcoat is pushing the boundary of server applications wi... by skrtskrt on Friday September 25, 2026 @01:47PM (#49847749)
The built-in formatter drives me insane it's always choosing or not choosing to line break in places that make zero semantic sense.