Chris Oliver reciently posted (updated here) a Takeuchi benchmark comparing JavaFX to ActionScript. He compared JavaFX running in the Hotspot server vm and client vm against ActionScript running in the Tamarin JavaScript VM. I would love to see us run Curl on this benchmark just for fun.
I have a couple of problems, however. First I can't figure out for the life of me what his benchmark numbers mean (e.g. real 0m58.587s?). Second, my tak program isn't working - it keeps telling me that my recursive procedure, 'tak', "may fall off the end without executing a 'return' "
Here is the code that I wrote:
It would be great if folks in the community could help out with this.
I have a couple of problems, however. First I can't figure out for the life of me what his benchmark numbers mean (e.g. real 0m58.587s?). Second, my tak program isn't working - it keeps telling me that my recursive procedure, 'tak', "may fall off the end without executing a 'return' "
Here is the code that I wrote:
{curl 6.0 applet}
{define-proc {tak x:int, y:int, z:int}:int
{if y >= x then
{return z}
else
{tak
{tak {value x - 1}, y, z},
{tak {value y - 1}, z, x},
{tak {value z - 1}, x, y}
}
}
}
{count-cycles
{for i=1 to 1000 do
{tak 24, 26, 8}
}
}
It would be great if folks in the community could help out with this.
- First how do you interpret the benchmarks Chris Oliver presents?
- Second what can be done to my code my code to make it work?
- Third, once the code is working, what can be done to make it as fast as possible?