Arc Forumnew | comments | leaders | submitlogin
ShootOut - Fastest languages: PLT scheme at 13.61 (median) - Ouch (debian.org)
3 points by thaddeus 5441 days ago | 6 comments


1 point by waterhouse 5441 days ago | link

It does depend on the problem. For the pidigits one:

  1.1	Scheme PLT #4
For "chamenos-redux" (whatever the hell that is) (ok, apparently it's to do with running concurrent threads):

  63	Scheme PLT

-----

1 point by thaddeus 5441 days ago | link

I'd imagine arc must be slower...

-----

4 points by akkartik 5441 days ago | link

Yep, way slower. Arc works only because of its escape valves. When I want to parse html I escape to python's beautiful soup and emit JSON. When I wanted a faster JSON parser I escaped to scheme. When I needed something to be still faster I escaped to C through scheme's FFI.

I haven't needed to call system yet :) (http://arclanguage.org/item?id=3522 via* http://arcfn.com/2009/08/arc-arduino-arm-temperature-monitor...)

-----

1 point by kens 5436 days ago | link

I assume you're using Anarki, because standard Arc doesn't have any of those escape valves other than system, which I find quite annoying.

-----

4 points by aw 5436 days ago | link

If you prefer not to have all the changes that Anarki makes to Arc, the http://awwx.ws/ac patch adds just the ability to drop into Scheme from Arc.

-----

2 points by akkartik 5434 days ago | link

And once you have $/ac-scheme, you can load libraries through scheme's FFI, or load scheme libraries say for parsing json.

I'm not using anarki, just pieces that I like.

(sorry, addressing grandparent)

-----