Hello, I'm not sure if I've misunderstood the bigdecimal class but in the following example, I only get 12 significant digits using bigdecimal while using Float, I get a correct value with 17 significant digits. ~~~ ruby # using f...lionel_perrin (Lionel PERRIN)
The following code raises "Test can't be coerced into Fixnum (TypeError)" ~~~ ruby class Test attr_accessor :value def initialize(value) @value = value end def |(other) case(other) when Test @value |...lionel_perrin (Lionel PERRIN)
In my mind, there is no perfect behavior when it comes to serializing closures with bind variables. This being said, it should not prevent us from serializing pure functions. Since the behavior of a serialized proc with closure can ea...lionel_perrin (Lionel PERRIN)
The python API around lambda and function objects makes possible to implement serialization of lambda, for instance with https://github.com/apache/spark/blob/master/python/pyspark/cloudpickle.py. I'm looking for a ruby equivalent feature...lionel_perrin (Lionel PERRIN)
It would create a reliable alternative to gems like https://github.com/ngty/sourcify and thus makes much easier to implement the ruby-spark gem (https://github.com/ondra-m/ruby-spark). I assume that it implies the Proc API to include ...lionel_perrin (Lionel PERRIN)
Thanks for the answer. Two last questions: * Is there a technical reason why it is not supported ? I've looked at the ruby source code. From my understanding, the CreateProcess call is made with inheritHandles set to true, which...lionel_perrin (Lionel PERRIN)
I faced an issue while trying to inherit a file or pipe handle from a master process to its child on windows 7. I tried this implementation: * master.rb: ~~~ rd, wr = IO.pipe puts "Pipe opened: #{rd.fileno} <= #{wr.fileno}" c...lionel_perrin (Lionel PERRIN)