From b5402d89595bf01facc451205b80239bd7dc4304 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 8 Sep 2023 22:27:32 +0200 Subject: [PATCH] add initial plans. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a8a15c --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +Desiderata + +- Simple: Simple operation in terms of counting spaces and \n. +- Avoid "off by one" errors; make sure an empty file is reported as such. + - Words as space or enter, followed by nonspace, followed by space? Make sure two spaces aren't two words? +- Keep Linux only. +- No flags. Only count words, not lines. +- Allow piping, as well as reading files. + - Wonder how normal utilities handle this. +- Could use zig? => Not for now + +Steps: + +- [ ] Look into how C utilities both read from stdin and from files. +- [ ] ... +- [ ] Compare with other implementations, see how they do it, after I've read my own version + - Compare with gnu utils, + - Compare with musl/busybox implementations, + - Maybe make some pull requests, if I'm doing something better?