General

Profile

lionel_perrin (Lionel PERRIN)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 5 6

Activity

02/21/2018

10:55 AM Ruby Bug #14505 (Closed): IO.popen / Open3.popen2 / backtick subprocess remains blocked
The following ruby code never returns
~~~ ruby
`ruby -r oci8 -e puts 'hello'`
IO.popen(%w(ruby -r oci8 -e)+["puts 'hello'"]) { |o| puts o.read } # this never returns too
Open3.capture2(*%w(ruby -r oci8 -e)+["puts 'hello'"]) # and t...
lionel_perrin (Lionel PERRIN)

07/19/2017

09:50 AM Ruby Bug #13754 (Third Party's Issue): bigdecimal with lower precision that Float
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)

10/27/2016

02:09 PM Ruby Bug #12875 (Closed): Fixnum bit operator and coerce
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)

01/04/2016

02:05 PM Ruby Bug #11947 (Closed): BigDecimal#coerce: unexpected behavior with Float
I've noticed that:
~~~
BigDecimal('2') + 1 # => BigDecimal(3), OK
1 + BigDecimal('2') # => BigDecimal(3), OK
# whereas
BigDecimal('2') + 1.1 # => BigDecimal(3.1), OK
1.1 + BigDecimal('2') # => Float(3.1), WHY?
~~~
I was e...
lionel_perrin (Lionel PERRIN)

11/23/2015

01:34 PM Ruby Feature #11630: possibility to serialize Proc or Lambda
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)

10/29/2015

11:32 AM Ruby Feature #11630: possibility to serialize Proc or Lambda
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)

10/28/2015

12:34 PM Ruby Feature #11630 (Open): possibility to serialize Proc or Lambda
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)

03/11/2014

11:14 AM Ruby Bug #9617: Windows7 issue with Kernel.spawn close_others => false
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)

03/10/2014

11:02 AM Ruby Bug #9617 (Rejected): Windows7 issue with Kernel.spawn close_others => false
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)

Also available in: Atom