|
Re: Lambda (was: Refactoring in Tunes): msg#00054os.tunes
Laurent Martelli wrote: > > >>>>> "Massimo" == Massimo Dentico <m.dentico@xxxxxxxx> writes: > > Massimo> Surely OIL is not so big compared to other interpreters but > Massimo> you need a C++ compiler to bootstrap it and an host OS to > Massimo> run it (as the vast majority of the existing interpreters > Massimo> and compilers). > > The need of C++ compiler is just an implementation issue. i could very > have written in assemblor, and it would be as portable. At that point, > it would be fairly easy to compile OIL into a "kernel" that can > bootstrap on bare hardware. But I don't see any need for this. At > least now. I just felt that to start with, C++ was a good compromise > between portability and efficiency. > > -- > Laurent Martelli > martelli@xxxxxxxxxxx This type of portability is a *myth*. As soon as you use a non standard library you immediatly obtain a non portable program. The effort of porting your application from an environment to another is as big as more you use non standard libraries. To obtain true portability you need a good virtual machine or a complete metaprogramming environment. Forth has a tiny, quite fast virtual machine that you can easily port *manually* without much effort just in virtue of his size OR you can metacompile it to another target machine (evidence of these facts: the proliferation of Forth implementations). So you can obtain a better compromise between portability and efficiency. An essay on "Forth Meta Compilation": - http://www.ultratechnology.com/meta.html Of course, to run OIL on the bare hardware you need to port your interpreter (your virtual machine) to other machines OR to write a compiler for OIL. It's not sufficient to rewrite OIL in OIL. Take it as a friendly warning, *not* as a provocation. Best regards, -- Massimo Dentico |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | A call to semplicity (was: Lambda (was: Refactoring in Tunes)): 00054, Massimo Dentico |
|---|---|
| Next by Date: | Re: A mathematical foundation of reflexion?: 00054, Massimo Dentico |
| Previous by Thread: | Re: Lambda (was: Refactoring in Tunes)i: 00054, Laurent Martelli |
| Next by Thread: | Re: Lambda (was: Refactoring in Tunes): 00054, Laurent Martelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |