Emmanuel Thompson

Results 134 comments of Emmanuel Thompson

Actually, serde does something similar which is nice: ```rust use serde::Serialize; struct Test2 {} #[derive(Serialize)] struct Test { field_a: u8, field_b: Test2, } fn main() { } ``` ```rust error[E0277]:...

Example use case here: https://github.com/sharksforarms/deku/pull/196#issuecomment-815920527

Yes, there needs to be a better way to debug parsers. I don't mind the idea, I think a mix of logging throughout the crate and a debug attribute like...

https://github.com/rust-lang/log#in-libraries

Also possibly related: - https://crates.io/crates/modular-bitfield Could be native to deku as-well to reduce dependencies. These could be implemented for foreign types like these though!

Interesting! I did not think of this. Currently Deku assumes and works with Most Significant Bit (MSB) where this format seems to be LSB. You could do some bit arithmetic...

Thanks @myrrlyn! I may be able to experiment a bit with this tomorrow, If I understand correctly, you mean passing a Msb0 or Lsb0 to the codegen? This is exactly...

@myrrlyn I went down the generic route, I put an example `ieee` to reflect the desired outcome: https://github.com/sharksforarms/deku/tree/bit_order `cargo run --example ieee`

> > @myrrlyn I went down the generic route, I put an example `ieee` to reflect the desired outcome: https://github.com/sharksforarms/deku/tree/bit_order > > `cargo run --example ieee` > > is this...

Great idea, I'd like to see a better suite of benchmarks before this is tackled so we can measure the difference https://github.com/sharksforarms/deku/issues/25