Re: [Factor-talk] math.primes reorganization

2008-12-28 Thread Samuel Tardieu
Bruce == Bruce Breeanna Rennie bren...@dcsi.net.au writes: Bruce Just a quick question are you using the real Sieve or the Bruce pretend Sieve see http://lambda-the-ultimate.org/node/3127 for Bruce details of this. It was interesting reading. It is the real sieve. Thanks for the article

[Factor-talk] An alternative for foldable?

2008-12-28 Thread Samuel Tardieu
I find it frustrating that foldable cannot be used when the word you want to apply it to returns a mutable sequence, even if I understand why. What could we do to allow compile-time evaluation of words returning sequences for example? It would be nice to have words such as :

Re: [Factor-talk] An alternative for foldable?

2008-12-28 Thread Samuel Tardieu
Slava == Slava Pestov sl...@factorcode.org writes: Slava why not just define a word : sum-of-primes ( m n -- x ) Slava primes-between sum ; foldable Sure, but that was just an example. It would be great to be able to indicate that the list of primes between two numbers can be known at compile