David Renshaw

Results 173 comments of David Renshaw

```toml # Cargo.toml [package] name = "lazy_static_asan" version = "0.0.0" [dependencies] lazy_static = "0.2.4" libfuzzer-sys = {git = "https://github.com/rust-fuzz/libfuzzer-sys.git"} [[bin]] name = "read_lazy_static" path = "read_lazy_static.rs" ``` ```rust // read_lazy_static.rs...

Yeah, I see this error when I try to fuzz [miri](https://github.com/solson/miri). I assume it has something to do with `#![feature(rustc_private)]`.

> Add a Drop impl to Future that would schedule the future on the default, thread-local event loop. This drastically simplifies understanding of the common case. Currently, dropping a future...

Cool! Thanks for bringing this to my attention. It does sound like it would be a good idea to try to use the stdlib `Allocator` once it exists. Your contribution...

@burdges: As far as I understand, I don't think so. I imagine the stdlib allocator trait would be a replacement for [`capnp::message::Allocator`](https://github.com/dwrensha/capnproto-rust/blob/v0.6.2/src/message.rs#L157), which handles allocation of entire segments. Within individual...

@realcr sounds good to me!

My preferred way to do this would be to add an annotation in [rust.capnp](https://github.com/capnproto/capnproto-rust/blob/d390ede04717b5961da8b5e9ab90dbeace32197f/capnpc/rust.capnp) to allow individual fields to opt in to getting wrapped in `std::Option` in the generated code.

> How do I get a PrimitiveList.Boolean.Reader out of the Builder? Ah, looks like we need to add asReader() methods to ListBuilders. > Also, you appear to be able to...

`asReader()` methods were added in https://github.com/capnproto/capnproto-java/commit/f4411ba2c73d5250f69a469d52589155926b4bcc

Some things that I noticed on a quick look: 1. You may be doing more allocations than you need to. For message construction, try experimenting with different values for `first_segment_words`:...