←back to thread

305 points todsacerdoti | 2 comments | | HN request time: 0s | source
Show context
mmastrac ◴[] No.44061671[source]
The associated issue for comparing two u16s is interesting.

https://github.com/rust-lang/rust/issues/140167

replies(3): >>44061906 #>>44065911 #>>44066028 #
rhdjsjebshjffn ◴[] No.44065911[source]
This just seems to illustrate the complexity of compiler authorship. I am very sure c compilers are wble to address this issue any better in the general case.
replies(2): >>44066162 #>>44066204 #
1. runevault ◴[] No.44066162[source]
Keep in mind Rust is using the same backend as one of the main C compilers, LLVM. So if it is handling it any better that means the Clang developers handle it before it even reaches the shared LLVM backend. Well, or there is something about the way Clang structures the code that catches a pattern in the backend the Rust developers do not know about.
replies(1): >>44068937 #
2. rhdjsjebshjffn ◴[] No.44068937[source]
I mean yea, i just view rust as the quality-oriented spear of western development.

Rust is absolutely an improvement over C in every way.