Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rust isn't finished yet. It's about to get 'regions', which come with custom allocators.


Hey, thanks for pointing that out (and thanks to kibwen for the link).

I've been trying to use (or rather, bend) rust for kernel development lately, and memory allocation was my biggest limitation so far (including stack allocation). Definitely looking forward to future improvement on the language, it looks very promising.


At least one of the developers wants to make Rust's runtime optional, to allow the runtime to itself be written in Rust. That would probably also serve your goals as well, so perhaps you'd be interested in helping out? :)

Quote:

"I'd like to see a 'runtime-less Rust' myself, because it'd be great if we could implement the Rust runtime in Rust. This might be useful for other things too, such as drivers or libraries to be embedded into other software. (The latter is obviously of interest to us at Mozilla.) Rust programs compiled in this mode would disable the task system, would be vulnerable to stack overflow (although we might be able to mitigate that with guard pages), and would require extra work to avoid leaks, but would be able to run without a runtime.

If anyone is interested in this project, I'd be happy to talk more about it -- we have a ton of stuff on our plate at the moment, so we aren't working on it right now, but I'd be thrilled if anyone was interested and could help."

http://news.ycombinator.com/item?id=3724577


Thanks for the pointers, I'll look into that when I have more time :)


Check out the binarytrees benchmark for an example of the placement new syntax:

https://github.com/mozilla/rust/blob/master/src/test/bench/s...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: