3 ms·
UCSD Pascal was the first "Java" in that Pascal was compiled to machine-independent P-Code that was then interpreted. (I used it in the 1980s.) The main problem
by WalterBright 8y ago
UCSD Pascal was the first "Java" in that Pascal was compiled to machine-independent P-Code that was then interpreted. (I used it in the 1980s.) The main problem it had was it was slow. In the 90's, even with the CPU advances, interpreted Java was still too slow. It took Symantec's Java JIT compiler to really make Java work.
I.e. what UCSD-Pascal lacked was a JIT compiler. Even a simple one would have made a huge difference.
UCSD-Pascal was the right idea, it was just before its time. I think Java owes a lot to Ken Bowles.
- everybodyknows 8y agoBy '80 or so it was possible to link to assembler, and the recipe was to code inner loops in assembler. With a Digital Equipment LSI-11 CPU and its simple, highly regular machine code, this was workable for a time.
- protomyth 8y agoLSI-11 http://www.cpushack.com/2017/11/22/cpu-of-the-day-dec-lsi-11-chipset/ http://www.cpushack.com/2017/11/22/cpu-of-the-day-dec-lsi-11...
- tomjakubowski 8y agoTIL Symantec made the first Java JIT! Did HotSpot use any code from their implementation or was it more of an inspiration?
- WalterBright 8y agoMy colleague Steve Russell was the implementer of the JIT. Steve was a true wizard with x86 assembler code. You can see his work here: https://github.com/DigitalMars/optlink https://github.com/DigitalMars/optlink I don't think HotSpot used any code from it, but I can't be positive about that. But Symantec's JIT was so obviously a huge improvement, every vendor had to have it or be left in the dust.
- mwcampbell 8y ago> My colleague Steve Russell Is that the same Steve Russell that hacked Spacewar and implemented the first Lisp?
- WalterBright 8y agoHe's way too young for that :-)
- mark-r 8y agoP-code was an absolute innovation. Its time in the limelight was short lived, as Turbo Pascal soon came along and compiled directly to Z80 and later x86 - it killed UCSD Pascal in performance. I borrowed the idea around 1980 to develop a language for doing data entry and verification. The trick was to make the instructions really high level, so the overhead of interpretation was a small part of the total.
- flyinghamster 8y agoDigital's BASIC-PLUS on RSTS/E also compiled to an intermediate code that was interpreted. However, unlike P-code (or Infocom Z-code for that matter), it wasn't portable to other systems.
- WalterBright 8y agoThe JIT does for interpreters what the Merlin engine did for the P-51. Originally, it had the Allison engine, and was sluggish and performed poorly. The airframe lit up when fitted with the Merlin engine.
- pjmlp 8y agoIt was possible to AOT compile to native code with UCSD Pascal, Western Digital and Corvus Systems supported some form of it. I thought it was Strongtalk/SELF JIT compiler that made Java work.