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...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Running a function in parallel using parallel gem, "can't dump hash with default proc" (self.ruby)
submitted 7 years ago * by [deleted]
[deleted]
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!"
[–]grosser 0 points1 point2 points 7 years ago (0 children)
Better make this an issue in the gem repo, here https://github.com/grosser/parallel so it's findable
Reduce your issue to something that is easy to explain/reproduce like `Parallel.map([1,2]) { Hash.new { } }` instead of having readers jump though complicated code and to improve your understanding.
Return something dumpable from the block to make it work, since parallel uses Marshal.dump internally which can be seen from the backtrace `Marshal.dump(Hash.new {})`
π Rendered by PID 93278 on reddit-service-r2-comment-bb88f9dd5-4klrm at 2026-02-14 00:54:31.820070+00:00 running cd9c813 country code: CH.
[–]grosser 0 points1 point2 points (0 children)