[HN Gopher] Clojure: Managing throughput with virtual threads
___________________________________________________________________
Clojure: Managing throughput with virtual threads
Author : refset
Score : 80 points
Date : 2024-05-06 15:48 UTC (7 hours ago)
(HTM) web link (andersmurphy.com)
(TXT) w3m dump (andersmurphy.com)
| harperlee wrote:
| One related article that I found interesting:
| https://ericnormand.me/guide/clojure-virtual-threads
| koito17 wrote:
| Pretty cool use case for virtual threads. Recently I implemented
| something with core.async in order to batch messages and dispatch
| them to some UI code at a fixed rate. It was definitely a lot
| more complicated than using a single sempahore like shown in this
| article.
|
| On a related note, it would be nice to have an implementation of
| CSP using proper virtual threads rather than the thread pool
| currently used by core.async. The promesa library currently has a
| proof-of-concept[1], but it doesn't seem interoperable with
| existing core.async code.
|
| [1]
| https://funcool.github.io/promesa/latest/promesa.exec.csp.ht...
___________________________________________________________________
(page generated 2024-05-06 23:00 UTC)