News for hackers. Stuff that matters.
Re:How Unix erases things when you type a backspace while en... by Animats on Sunday February 05, 2017 @01:18AM (#13571214)
For historical reasons, there is way too much kernel level character input character processing in UNIX/Linux serial port code. That stuff belongs in user space today.
Re:How Unix erases things when you type a backspace while en... by eru on Sunday February 05, 2017 @09:48AM (#13572592)
Yes. Though I guess it'll be with us forever more, just like the old complicated x86 instructions that nobody ever uses any more, but that no one is in a hurry to remove, because they only take up a very small fraction of the chip.
Re:How Unix erases things when you type a backspace while en... by madgar on Sunday February 05, 2017 @02:12PM (#13573966)
Seems like a huge difference between "instructions we don't use at all" and "ring 0 input processing we use constantly and can't stop using"

The only similarity seems to be "modern computers with legacy logic" which isn't terribly insightful.

Re:How Unix erases things when you type a backspace while en... by eru on Sunday February 05, 2017 @03:44PM (#13574533)
You can also choose to ignore the reason-by-analogue I gave, and just take my prediction as a bet. I offer even odds at a 100 bucks that this ttl stuff will still be in the Linux kernel in 20 years.
Re:How Unix erases things when you type a backspace while en... by madgar on Sunday February 05, 2017 @06:23PM (#13575351)
I didn't ignore your reasoning, I acknowledged it and said it was not insightful.

Unused CPU instructions are difficult (but not impossible!) to deprecate for completely different reasons than the critical functionality of line discipline that is used all day every day and for which nobody has proposed a viable alternative.

Re:How Unix erases things when you type a backspace while en... by eru on Monday February 06, 2017 @05:18PM (#13584791)
Oh, the line discipline is fine. But why does this have to be kernel code?