TIL `MemoryLayout<Float>.stride` in Swift as equivalent of `sizeof(float)` in C; `CFBitVector` for bit arrays; no `UInt128` in Swift
Learned sizeof(float)
in C equals to MemoryLayout<Float>.stride
in Swift.
Trying decode data coming from python server come to this Don’t Pickle Your Data:
For most common tasks, just use JSON for serializing your data. It’s fast enough, human readable, doesn’t cause security issues, and can be parsed in all programming languages that are worth knowing.
TIL Swift doesn’t have UInt128
. What the fuck!?
TIL bit arrays are available in Objective-C CFBitVector
. May be I should use them.