3 ms·
Well, once the anic compiler is complete, it would perhaps be a good idea to rewrite it in ANI itself and have it be self hosting, but to get to that stage, you
by dkersten 17y ago
Well, once the anic compiler is complete, it would perhaps be a good idea to rewrite it in ANI itself and have it be self hosting, but to get to that stage, you have to write it in another language first. What language? Any at all - whatever you're most familiar in is probably a good choice (and probably why a lot of them are written in C).
- eru 17y agoI agree. Though your grandfather comment still confuses me. If you are implementing a language (for which you also have some say in its design) and your compiler is too slow, then I would start e.g. by investigating caching strategies instead of switching implementation languages.
- dkersten 17y agoSure. I would personally only ever switch once, if at all, and that is to use the language itself so that its self hosted. I wouldn't switch for speed reasons, unless the performance is really really really bad and I can't seem to fix it.
- eru 17y agoOh, it might be worth to switch from e.g. C to Haskell for the compiler. Especially if your language isn't that well-suited for compiler work, you won't get much out of self-hosting. Paul Graham wrote a bit on this when justifying why Arc won't be self-hosting.
- plinkplonk 17y ago"Paul Graham wrote a bit on this when justifying why Arc won't be self-hosting." Interesting! Any links? a quick google search didn't turn anything up.
- eru 17y agoI'll try to find the source.
- dkersten 17y agoGood point. It may not always be desireable or useful to be self-hosting.