Geoffry Song

Results 16 issues of Geoffry Song

e.g. `unsafe { CompactString::with_capacity(1234).as_mut_bytes() }` returns a slice of length 1234. This is questionable (even if it hasn't been declared officially UB yet) and IMO should return a `&mut [MaybeUninit]`,...

I had an idea to avoid transmuting `Repr`s around by directly making use of the enum niche optimization. Basically, store `([u8; 23], LastUtf8Char)` in `Inline`, restrict `LastUtf8Char` to only actual...

https://github.com/madsmtm/objc2/blob/dd6c804d1e189fd8c9b313d8c1901ee9e7286551/crates/block2/src/concrete_block.rs#L189 Some newer Apple APIs appear to fail in unexpected ways when called with blocks that don't have signatures. It would be useful to at least have some way of...

enhancement
A-block2

This is unnecessary as PyMODINIT_FUNC already implies Py_EXPORTED_SYMBOL.

Fixes #305. I picked fastrand because it seems popular. It doesn't _explicitly_ guarantee that the algorithm will always be consistent across platforms, but it has [a policy](https://github.com/smol-rs/fastrand/releases/tag/v2.1.0) that changes to...

`PyObject_HEAD` already expands to a field with a semicolon; the extra semicolon is unnecessary, and makes some compilers unhappy.

python