Re: Sum of digits

2009-09-19 Thread TC
On Sat, 19 Sep 2009, Alexander Burger wrote: Hi Jon, to my surprise my Pico Lisp version was much slower than my Scala version. You've hit upon an old problem. Conversion from internal to decimal representation in PicoLisp takes too long. We had a similar discussion here some time ago, ini

Re: Sum of digits

2009-09-19 Thread TC
On Sat, 19 Sep 2009, Jon Kleiser wrote: Hi, I wanted to compare how to do "sum of digits" in Scala and Pico Lisp, and to my surprise my Pico Lisp version was much slower than my Scala version. Well, Scala is a compiled language, but I hadn't anticipated that big a difference

Re: Sum of digits

2009-09-19 Thread Alexander Burger
Hi Jon, > to my surprise my Pico Lisp version was much slower than my Scala version. You've hit upon an old problem. Conversion from internal to decimal representation in PicoLisp takes too long. We had a similar discussion here some time ago, initiated by Tomas Hlavaty. You can see this easily

Sum of digits

2009-09-19 Thread Jon Kleiser
Hi, I wanted to compare how to do "sum of digits" in Scala and Pico Lisp, and to my surprise my Pico Lisp version was much slower than my Scala version. Well, Scala is a compiled language, but I hadn't anticipated that big a difference. My test input number was a rather big one: