Arc Forumnew | comments | leaders | submitlogin
Primitives and library functions
2 points by lboard 5958 days ago | 4 comments
It seems to be hard for me to get the primitive functions out of arc.

Can any one list out the primitive functions in arc.



3 points by bOR_ 5958 days ago | link

is this what you need?

http://arcfn.com/foundation-doc.html

-----

2 points by lboard 5958 days ago | link

primitives in the sense, i mean functions like quote, atom, eq, cons, car, cdr, cond, eval,

There should be a limited set of funcitons like that. On top which we write other stuffs.

Where is the dividing line, in arc.

-----

3 points by drcode 5958 days ago | link

Arc is desinged as a practical language, and as such it is not built on any pure primitives. PG had, at one point, taken such an approach, but abandoned it because of poor performance.

It calls many mzscheme functions to run, most of them not primitive. Primitives, as far as they exist, are defined in ac.scm. They are not simple, however- Instead, the emphasis is on keeping the language implementation simple and reasonably efficient.

-----

1 point by almkglor 5955 days ago | link

> Arc is desinged as a practical language, and as such it is not built on any pure primitives. PG had, at one point, taken such an approach, but abandoned it because of poor performance.

Personally I'm retaking this approach, and doing some trickery on the scheme side to improve performance. So far what I've been doing is only slightly slower than Anarki (within sampling variation, although the average times are slightly higher).

-----