This is somewhat related to my previous post about CL-Arc (http://arclanguage.org/item?id=5396). I had an idea, inspired by kens (http://arclanguage.org/item?id=5481), and I'd like to know whether it is possible, difficult, or if I am out of my mind. My idea basically sets the foundation for a metacircular Arc compiler in two steps: Step 1: Port a Scheme compiler to Arc Step 2: Modify the compiler to compile Arc instead Arc can actually be mostly metacircular after only the first step. If we can successfully port a Scheme compiler to Arc, then we can run it under the current MzScheme Arc, and use it to compile ac.scm (or a version edited to be compatible with our new compiler). This Arc executable can then be used to load the compiler and recompile ad infinitum. However, this kind of metacircularity via Scheme is not entire what we want, so to get a true Arc in Arc compiler we would want to modify the Scheme compiler to compile Arc directly instead of through Scheme. This may be easy or extremely difficult depending on how similar Arc is to Scheme. On the surface it doesn't look too dificult but maybe I am overlooking something. So what follows is a three part poll: * Do you think doing this would be easy, moderate, difficult, or impossible? * Should this be how we implement Arc in Arc (assuming it is at least possible)? * If it is possible and the right thing, which Scheme implementation should be used as the base? (I won't start the third section until I get suggestions.) Feedback would be appreciated. |