Hacker News new | past | comments | ask | show | jobs | submit login

OOP has no built-in facilities to deal with multi-threading. It's orthogonal to it and that's a problem.

Thread safety can't be expressed or enforced and you can't grab a bunch of classes from somewhere and assume anything about their fitness for multi-threaded code.

Typically one has to carefully design a class for multi-threaded use. Reasoning about state inside objects then quickly becomes infeasible.




Which _paradigm_ has those facilities? Not a language, but a paradigm?


Pure functional programming has this property by its nature. Anything immutable cannot be changed during another threads execution.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: