General

Profile

royaltm (Rafał Michalski)

  • Login: royaltm
  • Registered on: 12/25/2010
  • Last sign in: 03/23/2014

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 2 3

Activity

03/24/2014

07:08 PM Ruby Bug #9664: cannot resume transferred Fiber even if it should resume
More straightforward example and a convenient way to detect the bug:
~~~
begin
Fiber.new { Fiber.yield Fiber.current }.transfer.resume
puts "Cool I'm in ruby 1.9.x. I've got fibers!"
rescue FiberError
puts "Too bad, I'm in ...
royaltm (Rafał Michalski)

03/23/2014

06:06 AM Ruby Bug #9664 (Rejected): cannot resume transferred Fiber even if it should resume
The simplified case:
~~~
root = Fiber.current
f = Fiber.new {
puts 'transfer'
root.transfer
puts 'yield'
Fiber.yield
puts 'ok'
}
f.resume
f.transfer
f.resume
~~~
First we resume into a new fiber, then the fibe...
royaltm (Rafał Michalski)

08/14/2012

02:58 AM Ruby Feature #6857: bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
Having fast exp() allows us to speed up BigMath.log(). Especially for calculations with large precision.
The area hyperbolic tangent power series performs better when the domain (x) of the function is closer to 1.
Additionally for x ...
royaltm (Rafał Michalski)

08/11/2012

11:48 PM Ruby Feature #6857: bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
* algorithms ;) royaltm (Rafał Michalski)
11:46 PM Ruby Feature #6857 (Assigned): bigdecimal/math BigMath.E/BigMath.exp R. P. Feynman inspired optimization
The algorythms to calculate E and exp programmed in BigMath module are the very straightforward interpretation of the series 1 + x + x^2/2! +
x^3/3! + ....
Therefore they are slow.
Try it yourself:
require 'bigdecimal/math...
royaltm (Rafał Michalski)

12/25/2010

09:45 PM Ruby Bug #4203 (Closed): broken RegCreateKeyExA definition in registry.rb
=begin
in ext/dl/win32/lib/win32/registry.rb:

definition of advapi32.dll function: RegCreateKeyExA is broken (missing one argument). See: http://msdn.microsoft.com/en-us/library/ms724844%28v=vs.85%29.aspx
This bug was introduced ...
royaltm (Rafał Michalski)

Also available in: Atom