Bell System

social.omar.website

Omar Rizwan . @omar,

I've been surprised and annoyed by how many very specific macOS/Linux differences I encounter when doing low-level-ish C or C-adjacent programming -- stuff like, macOS doesn't have `execvpe` so you have to make a shim to launch a subprocess in a thread-safe way, or macOS forces you to always do graphics and stuff on the main thread because it has the Mach connection or whatever, or macOS doesn't have `gettid` so you need a different way to identify a thread…

Open thread
Omar Rizwan . @omar,

the macOS C compiler had some bizarre error with dsymutil so I had to spend like 2 hours tracking it down and then split my compile command (which worked fine with gcc on Linux) into separate compile and link stages to make it work on macOS

Open thread
Omar Rizwan . @omar,

making this stuff work on macOS always feels like a distraction by nature -- because I tend to already have it working on Linux, so at a gut level I feel like I'm going backward instead of doing new things, + the reason to port to macOS is really my own convenience (wanting to be able to test on my laptop instead of being tied to a PC or a VM)

Open thread