News for hackers. Stuff that matters.
Re:Rust means never having to close a socket by pcwalton on Tuesday October 07, 2014 @07:51PM (#8424629)
In general, idiomatic Rust puts most objects that would be in a semispace nursery on the stack instead, which has all the advantages of a semispace collector, plus improved locality and the lack of a mark phase. The lifetime system means that the traditional limitations of escape analysis (higher order functions, separately compiled functions, virtual functions, returning objects on the stack) largely don't apply.
Re:Rust means never having to close a socket by spullara on Tuesday October 07, 2014 @10:21PM (#8425005)
If you can get all the objects for a full request on the stack, that would be pretty great. Is that true for the current HTTP servers / frameworks written in Rust?
Re:Rust means never having to close a socket by pcwalton on Tuesday October 07, 2014 @10:33PM (#8425048)
I don't do a lot of server Web development in Rust, but I see no reason why it wouldn't be possible, at least for common cases with small vector optimization.