4 ms·
I liked Delphi when I used it a bunch in the mid-to late 1990s (mainly Delphi 2.0). Three years ago, I ported a Delphi application called StoryHarp from back t
by pdfernhout 6y ago
I liked Delphi when I used it a bunch in the mid-to late 1990s (mainly Delphi 2.0).
Three years ago, I ported a Delphi application called StoryHarp from back then in my spare time to TypeScript/Mithril+Tachyons.
https://github.com/pdfernhout/storyharp-js https://github.com/pdfernhout/storyharp-js
Years earlier, I had made a parsing tool I wrote years ago to help with some of that -- which I have not made publicly available because I am not sure about the copyright status of the grammar files I started from. Some random notes on the conversion process which involved a lot of hand conversions:
https://github.com/pdfernhout/storyharp-js/blob/master/conversion-notes.txt https://github.com/pdfernhout/storyharp-js/blob/master/conve...
Before and after the automated conversion:
https://github.com/pdfernhout/storyharp-js/tree/master/converted_source/used https://github.com/pdfernhout/storyharp-js/tree/master/conve...
But given the way Delphi type declarations are similar to TypeScript type declarations (designed by the same person), and you need to make some major changes to redo the UI in Mithril, doing the entire thing by hand (and with the help of some regexes to replace stuff) might not have been that much harder?
Still have a couple of other applications from those years I want to covert to TypeScript someday (a garden simulator called Garden With Insight and a 3D botanical plant design tool called PlantStudio).
That said, Delphi is still a great language -- even if I perhaps regret using it overall instead of just sticking with Smalltalk, which was harder then to deliver an application with. We had also been using C++ at one point before that too, and Delphi was a lot easier to work with than C++ in the 1990s -- even if I'd guess dealing with C++ code nowadays might be easier overall with improved standard libraries, memory leak tools, and faster computers? My wife who was working on the projects with me then also knew Pascal well from academic projects, so Delphi was also easier for her than C++. However, same as me, she liked Smalltalk better. If we had know then that something like Squeak would come along eventually, we might have stuck with Smalltalk over Delphi.
I also have a music-related Java Android app I'd like to port to TypeScript, so it is not just Delphi. I just would like having some past major projects in a widely-supported language I'm using now for other things and which runs easily in the browser.