Will Glynn

Results 98 comments of Will Glynn

I'm working on a PR and hit this: ``` error: borrow of packed field is unsafe and requires unsafe function or block (error E0133) --> tests/api.rs:263:27 | 263 | bytes.cwrite_with(&self.foo,...

Hypothesis: `#[repr(packed)]` is only useful with `Copy` types. `#[derive]` imposes such a requirement on the struct itself: ```rust #[derive(Debug,PartialEq,Hash)] #[repr(packed)] struct Bar { foo: i32, bar: u32, } ``` ```...

My initial impressions: * A SysTick-based central timer is _so_ not worth it for multi-core devices. It would need to be gated for single-core devices. This shouldn't really be a...

> * Make systick overflow at a fixed rate. This means if you want 1kHz precision you need the irq to fire at 1kHz which is not great. The attraction...

@LucioFranco This is a pretty mechanical refactor: https://github.com/willglynn/tower/commit/44de76ec3bc8602fc43fd9980ff23b4ebae2dc75 All this boils away entirely if `Token` is a ZST, so it's strictly a safety improvement with no runtime penalty – and...

I got this working with a crude encoding scheme. Each `isa::Instruction` is identified with a single `u8`, followed by any operands (usually `u32`). As of now, I'm seeing a 10-15%...

Well… then I started thinking about how WebAssembly is already a compact bytecode format with variable-length encoding of operands. `FunctionReader::read_instruction()` swizzles around flow control, but many more instructions are [validated...

This issue proposes decoding instructions for validation, re-encoding them to a new bytecode, and decoding that bytecode in the interpreter. I'm now thinking about decoding instructions for validation, building `&[u8]`s...

Hmm… I tried filling out the form, and it says it's already in use: Querying `0.talos.pool.ntp.org IN A` returns NXDOMAIN, so it's already in use but it doesn't exist. I'll...