On 12/27/2013 01:35 PM, Patrick Walton wrote:
On 12/27/13 1:34 PM, Daniel Micay wrote:
Rust tasks and channels don't work in a freestanding environment.
Unbounded allocation is *definitely* not suitable for a kernel
though... even a large bounded channel would be unsuitable. The world
of small stacks and interrupts is quite different than what the
standard library is written for.
I think the standard library should get there over time though.
Possibly the best measure of a language's power is how well it enables
writing generally useful libraries. How much of the standard library
older languages would have had to build in is an objective measure of
success. While important parts of the runtime will be re-implemented
for a kernel setting, kernel coders will need many of the powerful
standard-library features.
This argues for including those standard-library features that mean
the same everywhere in the "freestanding" language definition. In
kernel code, tasks and channels might be created differently, but
used identically.
Nathan Myers
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev