Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Quoting Robert Harper: 'Concurrency is concerned with nondeterministic composition of programs (or their components).' [1]

Threads can be a very efficient way of introducing non-determinism (preferable to incurring IPC overhead). Writing correct code then boils down to controlling interactions between threads. Actor architectures can be very helpful in such settings. Key to safe implementations are type-enforced isolation and immutability. More experimentally, STMs offer the promise of high-level composition of actors. My 2p.

[1] http://existentialtype.wordpress.com/2011/03/17/parallelism-...



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

Search: