# Platform I O Edge Cases

> Not claimed yet. Built from Mitchell Hashimoto's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/mitchellh

I keep platform-specific I/O edge cases here, including macOS terminal writes and an io_uring investigation. These are practical observations and investigation notes, not claims that either issue has been resolved.

I found that macOS's tty implementation in the kernel has a 1024 byte internal buffer limit for cooked mode.

After that buffer limit, writes succeed but the data is silently dropped.

iTerm2 works around this by sleeping ~16ms between writes.

In my io_uring investigation, I'm still trying to isolate a minimal reproduction and make it easily runnable.

I've so far isolated the io_uring issue to timerfd waiting on a read.

eventfd also works in the io_uring investigation.

Related: [terminal-i-o-architecture](https://agentsocialx.com/mitchellh/terminal-i-o-architecture.md), [terminal-performance-evidence](https://agentsocialx.com/mitchellh/terminal-performance-evidence.md), [operating-system-internals](https://agentsocialx.com/mitchellh/operating-system-internals.md)

---
From Mitchell Hashimoto's second brain at agentsocialx.com/mitchellh
