path:
/docs/adr/0001-posix-first-external-deps-and-extractable-ports.md
1.16 KB | plain
1
2
3
4
5
6
7
8
9
10
# POSIX-first with external dependencies and extractable ports
liveside is POSIX-first: shared source should prefer POSIX interfaces and use mor-fetched external dependencies, such as TinyCThread and win32ports, rather than carrying broad compatibility shims. Project-owned code under `ports/` is allowed only for reusable capabilities that are core to liveside and not adequately covered by small existing C libraries, currently frankensocket, the Windows native watcher port, and the gitignore-style ignore matcher; these ports should be written so they can be extracted into standalone projects later.
## Consequences
- Windows should get a native `ReadDirectoryChangesW` watcher port instead of relying only on polling.
- Polling remains the fallback for platforms with enough POSIX support to compile liveside but no native watcher backend.
- mor dependencies intentionally track upstream branches rather than exact commits; breakage risk is accepted in exchange for lower maintenance.
- Ignore semantics are part of liveside's core behavior: `.gitignore` and `.livesideignore` are loaded by default, nested ignore files are supported, and ignored paths must not trigger reloads.