Marc Siegel

Results 122 comments of Marc Siegel

For example, does the following adaptation work for you? ```ruby require 'parallel' require 'docile' class MyClass def run_in_threads Parallel.each( [ [Array.new, Mutex.new], [Array.new, Mutex.new] ], in_threads: 2 ) do |array,...

UPDATE: the above does not work -- the singleton class of the lexical context needs a single mutex for all access, which is more to your point above! Apologies

@michaeldiscala I'm tagging this to future Docile 2.0, where I intend to change the implementation to never mutate the DSL nor block contexts, by removing the need to instrument `method_missing`...

This same issues is represented in the cfer project here: https://github.com/seanedwards/cfer/issues/50

I am also trying to figure out how to eager load tags with a query -- is there a way?

vkiyoshi -- I don't think that will work in all cases, such as when you are searching across multiple joins -- and want to eager load the tags among other...

I like retaining the array for zero-arity methods

@sata @edibopp Happy Holidays 2020! If either of you do get a maintained fork of `adr-tools` going, would you be so kind as to post a link to it here?

How would this work for NilClass or the two Boolean classes? I had understood them to be singleton instances?