We live in a world where the OS built around text-based interfaces as the primar...

@kimapr@ublog.kimapr.net

We live in a world where the OS built around text-based interfaces as the primary way to do things that everyone uses is so stupidly designed that you can’t even efficiently read a line of text in a program

$ echo 'Hello world!' | strace bash -c 'IFS= read -r line'
...
read(0, "H", 1)                         = 1
read(0, "e", 1)                         = 1
read(0, "l", 1)                         = 1
read(0, "l", 1)                         = 1
read(0, "o", 1)                         = 1
read(0, " ", 1)                         = 1
read(0, "w", 1)                         = 1
read(0, "o", 1)                         = 1
read(0, "r", 1)                         = 1
read(0, "l", 1)                         = 1
read(0, "d", 1)                         = 1
read(0, "!", 1)                         = 1
read(0, "\n", 1)                        = 1