Strongtalk-2020 is the name I have given to of one of my recreational computing projects. It’s the continuation of the work done in the late 1990s by an all-star cast of programmers who went on to create many other amazing things including, but by no means limited to:
- the Hotspot JIT compiler for the Java VM
- the V8 Javascript VM
- the Dart programming language
- the Newspeak programming platform
- the Java programming language specification
- warehouse-scale computing at Google
This is quite an array of achievements — and was more than enough to pique my interest in the Strongtalk platform and investigate what work would be required to bring it up to date to run on a modern-day computer system.
Performing such a task is (at least) an interesting thought experiment, and there have been a number of attempts by people far more capable than me to resuscitate it.
Here are some of the challenges facts in the project visible from the outset:
- 32-bit computing model
- C++ 98 dialect of C++, and little use of the C++ standard library.
- diabolical use of the preprocessor
- Windows as the primary platform
- Project appears to have been abandoned several times
Undeterred by the above, I started to see if I could get it compiled on a modern Linux installation. I consider Debian 10 to be the best option for what I need in 2020. Your experiences and requirements may be different. 🙂
I consider myself fortunate to have been involved in an ambitious porting job of an ANSI C99 project to many different UNIX platforms, as well as Win32 and MacOS X. (I was mainly involved in the UNIX part of things.) Although I made a few decisions then I would not make now, the experience has stuck with me to ensure that whatever one creates on a computer is usable by others. Emboldened by this experience I felt sure that I could manage it, and even if the project never made it to a worthwhile checkpoint, the task would be educational.
It’s always good to start these sort of things at the end and work backwards to the current status to see what’s required. These were the rough targets I had in mind.
- Use the latest revision of the C++ standard, C++20, it having just been agreed by the C++ working group in February 2020.
- Convert the code to be 64-bit only and drop support for 32-bit architectures.
- Run on both Linux and Windows.
- Conservatively make use of modern-and-popular C++ libraries, for important-but-peripheral aspects of the system such as logging and unit tests.
- Slightly less conservatively, make use of modern and well-tested libraries, for important-and-central aspects of the system which required updating. The only component to which this applies is the x86-64 runtime macro assembler for the JIT compiler.
- Even less conservatively, refresh the GUI toolkit.
Some of the less precisely defined goals are:
- Keep the source tree the same shape where possible.
- Improve the naming of classes and variables (usually this means making them longer and more descriptive)