I'm aware, and that's what I intended to do. There's the excellent
pmap package which uses futures, but I wanted threads for concurrency on
one CPU. It works very well for launching processes and getting the
returns all at once.
Dex
On 2019-04-24 6:09 p.m., Robby Findler wrote:
Thanks for working on this, but Racket's `thread` construct is not
parallel (in the sense that you will not see more than one CPU active
on your machine at a time with code that uses `thread`).
Check out places and futures for alternatives that do support parallelism.
Robby
On Wed, Apr 24, 2019 at 10:52 AM Dexter Santucci <dexterla...@gmail.com> wrote:
Hi folks,
I made concurrent (multi-threaded) versions of map, andmap and
for-each for Racket:
https://github.com/DexterLagan/pmap
Because I'm a little slow and lazy, I haven't checked packages for a
proper version.
If this isn't too much asking, can somebody give me some feedback?
The andmap implementation is naive but I haven't found a way to break a
map of threads apart from using exceptions. If anybody can suggest a
more elegant and format version, I'm all ears.
Dex
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.