3 ms·
I'm surprised that no one here seems to have noticed that this is a Tubro Pascal compatible compiler written in JS that writes binaries compatible with 1978 UCS
by oso2k 10y ago
I'm surprised that no one here seems to have noticed that this is a Tubro Pascal compatible compiler written in JS that writes binaries compatible with 1978 UCSD p-System p-code, and, a p-code VM also written in JS that will run in a web page displaying x86 PC/DOS graphics. No less than 4 architectures to juggle (PC/CGA/EGA/VGA, JS, Web/DOM, p-code).
Early 8 & 16-bit architecture BASICs and Pascals worked on by several people all strived for p-code compatibility [0][1] and this guy wrote this by himself. I thought that was most remarkable when I found this a couple years ago.
[0] https://en.wikipedia.org/wiki/P-code_machine https://en.wikipedia.org/wiki/P-code_machine
[1] https://en.wikipedia.org/wiki/UCSD_Pascal https://en.wikipedia.org/wiki/UCSD_Pascal
- mark-r 10y agoYes, I noticed. Consider my mind boggled. Turbo Pascal (the original) was amazing, I used it for many years - both Z80 and PC.
- cyberferret 10y agoI admit it did take me a couple of minutes to get to the web site and realise that this was all done in Javascript, but when I found out - I was supremely impressed at the effort and skill it took.
- GregBuchholz 10y agoAnyone know what the source language for Turbo Pascal was? Assembly? Bootstrapped Pascal? Turbo C?
- cyberferret 10y agoI remember reading an interview with Anders Hejlsberg (the main guy who wrote Turbo Pascal) many years ago where he said it was mostly Assembly, with some C (not sure which flavour of C though). Apparently Anders was one of the few people at the time who could write large blocks of 8088 assembler off the top of his head.
- deleted 10y ago[deleted]
- the_d00d 10y agoHe is such a badass. Anders also gave us Delphi, C#, and Typescript.
- oso2k 10y agoI believe the original Turbo Pascal was written in ASM by Anders Hejlsberg as that was the state of the art at the time [0][1]. Also it had been ported to various CP/M and non-x86 machines prior to becoming an x86 port. Later versions (4-7) were rewritten, most likely in Turbo/Borland Pascal or Borland/Turbo C/C++ as they relied heavily on Turbo Vision. [0] https://en.wikipedia.org/wiki/Turbo_Pascal#CP.2FM_and_DOS_versions https://en.wikipedia.org/wiki/Turbo_Pascal#CP.2FM_and_DOS_ve... [1] http://wiki.c2.com/?TurboPascal http://wiki.c2.com/?TurboPascal