Hacker News new | ask | show | jobs
by jaxytee 4417 days ago
>Let me put this clearly: asynchronous APIs are always more complicated than blocking APIs..

IMO I would rather use a single threaded server and manage synchronicity explicitly with callbacks, composable promises, comprehensions, monads, and "other functional shenanigans" vs having to sync shared state across threads and manage thread pools.

2 comments

If you keep your data immutable you can have the best of both worlds.
Have you used a STM?