Nikolai Vazquez

Results 101 comments of Nikolai Vazquez

- To be clear, it would be unsound because: - `A` should have `size == 3`, `stride == 4` - `B` should have `size == 4`, `stride == 4` However...

I just discovered that `#[repr(C, packed)]` actually makes alignment be 1. I guess that makes sense. Not sure how you'd represent it in Swift and I don't know if Swift...

For wrapping and indexing into `Swift.Array` from Rust, I came up with a wrapper type that will handle Rust zero-sized types while keeping the original type zero-sized ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=489ec6834e9a0704c0e0126f377c397e)): ```rust //...

Back in Aug 2020 I created [`embed_plist`](https://github.com/nvzqz/embed-plist-rs) which places `Info.plist` into the appropriate section at compile time.

Can I see how your `Package.swift` looks like?

Is this a file that is automatically created by Xcode? I have not updated to 9.3 yet, so I haven't seen these files on my machine.

> * For an binary that's _not_ a `.app` bundle, you could likely make use of the API by embedding the `Info.plist`. You'd need to pass something like `-sectcreate __TEXT...

@memoryruins it looks like you're not the only one this week suggesting this: https://github.com/rust-lang/rust/pull/61347#issuecomment-520943044.

`Xoroshiro` is a `struct` so it gets copied around when passed by value. You can just save a copy of `r` somewhere. This would essentially be the same as saving...

You could access the internal values via reflection. Also, I believe `print`-ing the generator should show the internal seed since they type doesn't implement a custom mirror. I don't see...