On Sat, 2007-09-08 at 00:16 +1000, skaller wrote:
> On Sat, 2007-09-08 at 00:07 +1000, skaller wrote:
> > On Thu, 2007-09-06 at 19:23 +1000, skaller wrote:
> > > I'm thinking of changing procedures so they can return values.
> >
> > It's done, as follows:
>
> Here is ackermann's function in the new format:
> I have no idea if this is faster or slower than the old version :)
I do now: its slower:
Rankings for ack on rosella
felix 13 9.33 [N= 3, SD= 0.05]
gccopt 13 11.10 [N= 1, SD= 0.00]
gnat 13 12.42 [N= 2, SD= 0.07]
ocamlopt 13 13.65 [N= 3, SD= 0.09]
felix 12 1.82 [N= 9, SD= 0.07]
ocamlopt 12 2.49 [N= 6, SD= 0.05]
gccopt 12 2.72 [N= 3, SD= 0.00]
gnat 12 2.88 [N= 7, SD= 0.01]
but Felix still trashes gcc and Ocaml, though not by as
much as the functional version: here are the old numbers:
Rankings for ack on rosella
felix 13 5.51 [N= 3 SD= 2%]
gnat 13 9.59 [N= 1 SD= 0%]
gccopt 13 9.84 [N= 2 SD= 0%]
ocamlopt 13 13.76 [N= 3 SD= 0%]
felix 12 1.23 [N= 10 SD= 0%]
gccopt 12 2.37 [N= 6 SD= 0%]
gnat 12 2.40 [N= 9 SD= 0%]
ocamlopt 12 2.47 [N= 7 SD= 0%]
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language