Brent,
Thank you for resurrecting the Shootout!
Others will no doubt provide a better answer, but just to get you unstuck, I note that this no-op kludge
run_list([Arg|Args]) :- name(Arg,ArgStr), name(ArgN,ArgStr), % Kludge fibo(ArgN,Val), write(Val), nl, halt.
works around the problem on my Ciao-Prolog 1.9 #344.
Fyi. Thanks again for your work. Mitchell Charity
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
--- mcharity(a)vendian.org wrote:
Others will no doubt provide a better answer, but just to get you unstuck, I note that this no-op kludge
run_list([Arg|Args]) :- name(Arg,ArgStr), name(ArgN,ArgStr), % Kludge fibo(ArgN,Val), write(Val), nl, halt.
works around the problem on my Ciao-Prolog 1.9 #344.
This worked for me as well!
I applied the change last night, but neglected to re-run the "hello, world" test (so it shows as a failure).
At any rate, even though we are asking Ciao to perform a task it is not designed for (i.e., a heavily-recursive function written in such a way that last-call elimination is not feasible), it still manages to perform better than PHP, Perl, Python, Slang, and Icon.[1] Not bad!
-Brent
[1] see http://shootout.alioth.debian.org/bench/ackermann
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
In case any Debian users are out there, I've updated the (very old) packages at http://www.debian.org/~bfulgham/packages.
Enjoy!
-Brent
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
On Sun, Jul 04, 2004 at 09:15:01AM +0200, Brent A. Fulgham wrote:
In case any Debian users are out there, I've updated the (very old) packages at http://www.debian.org/~bfulgham/packages.
Thanks, I've been using these for a while.
-- wli
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------