Arc Forumnew | comments | leaders | submitlogin
Port of Arc to PLT 4 (but it's slow) (
4 points by CatDancer 4534 days ago | 4 comments

1 point by conanite 4534 days ago | link

you say it's slow to load all the libs and get to the repl, but once you're there, how does it compare?


2 points by CatDancer 4533 days ago | link

Do you have any benchmarks you use with rainbow? It'd be interesting to compare plt3 with the rainbow and plt4 ports and see how they all compare...


1 point by conanite 4530 days ago | link

I've been working a bit on rainbow optimisation lately, mostly to get welder up to an approximately usable speed. The bottleneck in welder is tokenising arc source code, so the tokeniser in parser.arc has been the target of my benchmarks.

On my mac, arc3 performs about 3 times faster than rainbow, which itself is now performing 5 times faster that it was a few weeks ago.

I used to use a prime-number generator to compare ... curiously rainbow performs slightly better for small numbers (find all primes under 10000, 413ms vs 465), but worse for large numbers (find all primes under 100000, 8.4s vs 7.4s). This particular generator uses continuations; there are probably other ways of writing it to exploit weaknesses in either java or scheme to get different results.


1 point by CatDancer 4534 days ago | link

Try it for yourself... you really need to be running timing tests against code that you want to run, since different code may end up being faster or slower.