Re: [Factor-talk] Digits of Pi

2009-05-30 Thread Peter Salvi
Slava Pestov sl...@... writes:

 Take a look at the implementation in extra/benchmark/pidigits/, it's a
 bit cleaner.

Thanks, didn't realize that it was already done.

Peter



--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Digits of Pi

2009-05-29 Thread Peter Salvi
Hi,

after spending a few nights reading Factor code, I've decided to try
my hand at writing some code myself. I selected the `pidigits' problem
from the `Computer Language Benchmarks Game' for practice, and here's
the result:

  http://paste.factorcode.org/paste?id=703

I would be grateful if someone could comment on my use of the language
(the algorithm is a direct translation of the paper cited on the
benchmark page, and thus not very efficient, but that was not the
point for me now).

Thank you,

Peter



--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk