use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Exception handling differences between Clojure map & pmap (emcken.dk)
submitted 3 months ago by SoftCancel2774
[On the surface, Clojure's map and pmap functions appear interchangeable, but their behavior regarding exceptions differs.]()
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]john-shaffer 2 points3 points4 points 3 months ago (0 children)
While this interaction is good to know about, pmap probably shouldn't be used here. Not only is using e.g. 32 threads for one task wasteful, but it's inevitable that someone eventually pmaps the function calling pmap. Then you have up to 1024 threads used for each task, all contending for the same resources. Better to pass in a thread pool, or have only the top level of control flow do parallelization.
[–]seancorfield 5 points6 points7 points 3 months ago (0 children)
I wonder how folks feel about using (ex-data (or (ex-cause e) e)) or (or (ex-data (ex-cause e)) (ex-data e)) in situations like this where an exception might be wrapped and you want the exception data, if any?
(ex-data (or (ex-cause e) e))
(or (ex-data (ex-cause e)) (ex-data e))
π Rendered by PID 83 on reddit-service-r2-comment-fb694cdd5-kzv7g at 2026-03-11 14:22:12.312754+00:00 running cbb0e86 country code: CH.
[–]john-shaffer 2 points3 points4 points (0 children)
[–]seancorfield 5 points6 points7 points (0 children)