Alphyr

Results 23 comments of Alphyr

> I'm not so confident that generically that's always true. `#[repr(transparent)]` totally guaranties that if it is. For `#[repr(C)]` structs it would be much harder to do I think, this...

Here is something that should work for all `Pod` types: ```rust fn read_unaligned(bytes: &[u8]) -> T { let mut val = T::zeroed(); bytes_of_mut(&mut val).copy_from_slice(bytes); val } ```

It could be something nice for a lot of functions actually (eg `bytes_of` returning an array reference instead of a slice). Unfortunately it currently requires `#![feature(generic_const_exprs)]`

I had quite the same issue with `assets_manager`: I wanted users to keep references to assets while having hot-reloading running in the background. I came up with a solution involving...

Maybe you could use a `Set` as a component (given that you use type `T` to represent user-generated markers) and check whether the value corresponding a given marker is in...

Maybe we could add other categories such as `irc_channel`, `discord_url`, or whatever people use. When adding a library you would only specify the relevant one(s). I think it would be...

The current implementation stores the `Box` as an `AtomicPtr`, so an unsized type is not possible (a pointer to an unsized value being two `usize` long). As a workaround, you...

The panic only happens with `minimp3`, not `symphonia`. Sorry for forgetting the backtrace, here it is: Backtrace ``` thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Eof', /home/alphyr/.cargo/registry/src/github.com-1ecc6299db9ec823/rodio-0.15.0/src/decoder/mp3.rs:26:50...

Actually [this commit](https://github.com/RustAudio/rodio/commit/0988e8c886fbbe57b4b0771259c65dc26f83eb2c#diff-e4bd91e256a3eb5d5fc178cd8187db20444258c2b8002bbc0cda3ac2e0822d22R26) added the failing `unwrap`. A quick test shows that the panic didn't happen before

Yes, it does (reading it returns all `0`).