[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15
[#85364] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults — Eric Wong <normalperson@...> 2018/02/03

v.ondruch@tiscali.cz wrote:

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:84976] [Ruby trunk Feature#4831] Integer#prime_factors

From: yugui@...
Date: 2018-01-23 08:09:53 UTC
List: ruby-core #84976
Issue #4831 has been updated by yugui (Yuki Sonoda).


I am not against adding such an alias but I'd like to think with more inputs. At this moment, I don't have strong reason to justify the name.

From a certain perspective, the alias is simply wrong because the method returns not only prime factors of the receiver but also their multiplicities -- i.e. the prime division of the receiver.
For me, `200.prime_factors` sometimes looks to return (or yield) `[2, 2, 2, 5, 5]` as MATLAB does.

Mame, do you have any concrete examples which support your expectation to the return value?  Or any suggestions from native English speakers or mathematicians?

----------------------------------------
Feature #4831: Integer#prime_factors
https://bugs.ruby-lang.org/issues/4831#change-69684

* Author: mame (Yusuke Endoh)
* Status: Assigned
* Priority: Normal
* Assignee: yugui (Yuki Sonoda)
* Target version: 
----------------------------------------
Hello,

lib/prime provides Integer#prime_division, but I always forget the name.
I think that #prime_factors is more suitable.  I'd like to hear opinions
of English natives.  What do you think?

-- 
Yusuke Endoh <mame@tsg.ne.jp>



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next