3 ms·
I don't have enough first hand experience to back this up, but I think I read someone claim that the early JVM was very close to the p-machine. I think a lot of
by Gibbon1 8y ago
I don't have enough first hand experience to back this up, but I think I read someone claim that the early JVM was very close to the p-machine. I think a lot of mid era (late 70's early 80's) programmers learned the p-machine in school. Wouldn't be a stretch that it was the informal template.
Reason p-code didn't take off was because it was too slow on personal computers.
- int_19h 8y ago> I think I read someone claim that the early JVM was very close to the p-machine Looking at P-code descriptions, I can't say it resembles JVM bytecode all that much. It seems to be somewhat more low-level. https://homepages.cwi.nl/~steven/pascal/book/10pcode.html https://homepages.cwi.nl/~steven/pascal/book/10pcode.html
- charlysl 8y agoWell, this is very much the case according to the article, where James Gosling is quoted as saying: “Then fast-forward a bunch of years, when I was trying to do the project that Java came out of. I had to do this architecture-neutral distribution format, and then I just went ka-ching! You know, this p-code translator thing would actually just drop in there.” The article explained before how Gosling learned about the p-machine: Gosling could have done this by making the requisite fussy changes in every application program and recompiling. But he found an easier way: He wrote code that turned the VAX into a p-machine. Standing on the shoulders of giants.