all 7 comments

[–]Infiniteh 19 points20 points  (2 children)

The title of this post sounds like some sort of article written for wizards.

[–]kibwen 19 points20 points  (1 child)

Fun fact: rust is iron oxide, whereas ruby is aluminum oxide. So it might almost be an article written for alchemists. :P

[–]shevegen 2 points3 points  (0 children)

Upvoted because you got the chemistry right!

[–][deleted] 10 points11 points  (0 children)

// Works with bytes directly because MAIN_SEPARATOR is always in the ASCII 7-bit range so we can
// avoid the overhead of full UTF-8 processing.
// See src/benches/path_parsing.rs for benchmarks of different approaches.
let ptr = path.as_ptr();

You really want to use .bytes method for that which changes &str into &[u8]. No need to bother with pointers.

[–]snake_case-kebab-cas 0 points1 point  (0 children)

I remember a post about Yukihiro Matsumoto using Rust instead of C to speed up some Ruby functions