From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public From: David Chase Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/17 Message-ID: <3447D6BE.7878@world.std.com>#1/1 X-Deja-AN: 281311371 Sender: news@world.std.com (Mr Usenet Himself) References: <61g30t$o2n@news-rocq.inria.fr> <623ek6$ef5$1@news.iastate.edu> Organization: Natural Bridge LLC Reply-To: chase@world.std.com Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec > simg@netcom.com (SimGraphics) writes: > > All right, I'll try. > > > > Think of implementing run time library for two languages, > > using two choices of languages. > > > > 1) C runtime implemented in C > > 2) C runtime implemented in Fortran > > 3) Fortran runtime implemented in C > > 4) Fortran runtime implemented in Fortran > > > > My ordering, from easiest to hardest: 1,3,4,2. Fortran compilers have been written in Fortran, and the worst operating system stuff is usually written in assembly language anyway. I'd like to plug, again, my current favorite bit of research, which is the SPIN kernel done at U Washington. This is an OS written in a language that has both safe and unsafe variants, and carefully defined rules for how safe and unsafe code interact. What this means is that user code can (using a "trusted compiler", the weak link in this system) be loaded into the kernel. In practice, this is used to enhance existing OS services while avoiding the high cost of an untrusted user-to-kernel transfer of control, and the benchmarks they get are great (with a single exception that is merely equal, uniformly better than commercial OSes running on the same hardware). Note that the language used (Modula-3) suffers from having a merely ok compiler, plus all the overhead associated with checked pointer casts and array bounds checks, as well as garbage collection. These low-level performance handicaps were overcome by a better design made possible by certain language features. Just another reminder not to miss the forest for the trees. No amount of C-hacking expertise can get you the security benefits of a safe language with such good performance. -- David Chase, chase@world.std.com