logoalt Hacker News

Aesthetics of single threading

54 pointsby todsacerdotilast Saturday at 8:14 PM12 commentsview on HN

Comments

foxmosstoday at 5:28 AM

This metaphor totally gets muddied once you consider some of the most optimized programs are run on a single thread in an event loop. Communication between threads is expensive, epolling many io streams is less so. Not quite sure what implications this has in life but you could probably ascribe some wisdom to it.

signorovitchtoday at 5:09 AM

Single-threading is also what allows you to stay up all night writing the 8 page essay that's due at 6:00am, what lets you drive for hours on end, what remembers protocol during a crisis. Not detracting from the OP's point at all, just single threading doesn't always have to be pleasant. One of its advantages is powering you through unpleasantries and getting what needs to be done done. Sometimes when we think we are 'multitasking,' we're just looking for ways to avoid the problem.

show 1 reply
codetigertoday at 5:01 AM

I love reading this article start to finish. I really love the way the author has explained. And believe this is a tech-savvy explanation of mindfulness.

01HNNWZ0MV43FFtoday at 12:57 AM

Blocking is laying in bed waiting for my paycheck before I can get up.

Multi-threading is handing off a simple task to someone else who will do it slower and need constant explanation, so that it looks like I'm less busy.

Single-threading is writing and sending an email before returning to my work.

gaigalastoday at 2:32 AM

> The human brain is not a state-of-the-art multi-core processor. It is closer to an old single-core chip from the 90s.

That is plain bullshit. Make your case, but don't mix biology with it.

show 2 replies