3 ms·
I'vr been 'stalking' Rust for quite some time, but never got around to diving in. I'm essentially a web programer who's been building fairly large web based sys
by saurabhnanda 13y ago
I'vr been 'stalking' Rust for quite some time, but never got around to diving in. I'm essentially a web programer who's been building fairly large web based systems. I'm sick of dealing with programming languages that consume shitloads of resources (CPU, memory, whatever) for doing essentially trivial stuff (compared to the amount of resources they use).
Will Rust be able to help me write super-efficient web programs, than run blazingly fast and dont gobble-up RAM?
Besides, how painful/easy is string manipulation in Rust?
- kibwen 13y agoYes, Rust will super-efficient, blazingly-fast, and memory-lean. But it's not nearly as good at rapid prototyping as, say, Ruby, so you'll have to temper your expectations. String manipulation in Rust is currently lacking while we work on the API. We also strictly enforce that all strings are UTF-8, so while this gives us great confidence that we're future-proof it adds a whole lot of difficulty in implementing a fast and correct means to work with strings.
- saurabhnanda 13y agoCan you elaborate why UTF-8 makes things harder? Is it because 1-byte no longer means one character? So, something like calculating a string's length is also tricky. Is that it? Also, where can I read about the general direction the string manipulation API is going to take?
- kibwen 13y agoThe bigger problem is that Unicode is immense and complex, and trying to implement the full specification is rather daunting. There's no real documents concerning the future of the string API, right now people are just implementing things as they need them.