From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110292,1d6673b85a87920a X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,3567d4ae1ce1d0a3 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,3567d4ae1ce1d0a3 X-Google-Attributes: gid102b75,public From: ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) Subject: Re: Network Computer (was Re: P6 vs Alpha vs Pro vs. Mips vs etc...) Date: 1996/08/21 Message-ID: <4veg2q$g9k@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 175463351 distribution: inet references: <4u3jpr$97i@glacial.tmr.com> <4ud423$lkp@seva.mdx.ac.uk> <4uqqg8$1s00@usenetw1.news.prodigy.com> <7wivalnaee.fsf@omega.ee.lsu.edu> organization: Comp Sci, RMIT, Melbourne, Australia newsgroups: comp.sys.intel,comp.sys.dec,comp.arch nntp-posting-user: ok koppel@omega.ee.lsu.edu (David M. Koppelman) writes: >This implies that all programs are written exclusively in a portable >form of C and use only standard libraries. Even if this were so, the C >code would have to be re-compiled for a new target, since few >distribute source, that would have to be done by the vendor. But that is exactly what Java does, so why would it be bad for C to do it? A very similar, but rather cleaner idea, was described in a PhD thesis from ETH Zurich. Oberon (a Pascal derivative with OOP, supporting dynamic loading and even replacement of modules, so it's actually very very close to Java in many ways) is processed by a compiler that does the full static checking and spits out "Semantic Dictionary Encoding", which is (a) extremely compact -- more so than JVM codes -- and (b) machine-independent. The SDE compiler is complemented by a run-time loader that generates native code. (This isn't _quite_ the same as Sun's suggestion of Just-In-Time compiling, because an *entire* module is compiled when you load it, not just the procedure you are calling.) The results are impressive: the overall time from source code to executable code is < 20% more than the normal OP2 compilation time; the code generated at run time is _better_ than what they had before (because the OP2 compiler generates code for a module that is independent of its uses; but the run-time loader can take advantage of the context in which the module is used). >Although there are windowing libraries >implemented on many platforms, one would have to be universally >adopted for applications to be as portable as Java. Not true. All you need is *one* windowing library (such as wxWindows) which is available on all the platforms you care about (UNIX/X, Windows, Mac). It doesn't have to be the same library for every application. >Because of its portability and graphics support, Java is useful >for downloadable applets. It's catching on because it was in the >right place at the right time. I have pointed out in other newsgroups that portable abstract machines (with or without load-time native code generation) for languages supporting run-time downloading are nothing new. Quintus and other Prologs, quite a few Lisps, Oberon SDE, ... The combination of this well-established technology with supposedly portable cross-platform GUI and the Net and a company with a big advertising budget and some very smart people; *that* is the new thing. -- Australian citizen since 14 August 1996. *Now* I can vote the xxxs out! Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.