313 points · by fenesiistvan · 9y ago · 300 comments
It is a project that I've built 8 years ago. Delphi was already a "strange think" on that time, it was declining fast. I think Java killed Delphi - "One codebase for all platforms, even your freezer will have Java!" - this was the cool sentence on that time.
Since I started with Delphi when I was 14 (I am now 33), a lot of thinks changed to me. Now I mainly work in back-end field, building APIs, Bots, Crawlers and Queues to do massive things (like receive million SMS per hour in a voting system for a TV Reality Show program)
When I am programming, 70% of my time is Nodejs, 10% Python and 20% Vuejs.
But I still miss the old days of drag-N-drop GUI of Delphi, really easy.
Almost the exact same experience: started at 14 and now close to 30.
Back in the day, we used to exchange game CDs in my small town, and by a mistake I got one with Delphi 5. I knew nothing about programming, just installed it, clicked around, somehow managed to run the default app, and got an empty window. We didn't have internet, so I had to ask around what this thing was about, someone said all other programs were done with it. There were no books about Delphi in local bookshops, the closest I found was an introductory book about Visual Basic. Armed with a book on VB and Delphi 3, by trial and error I had managed to produce my first ever working apps.
Few months later I was a well-known "programmer" in my town and wrote my first production ready app: a management system for a taxi company that managed exactly 20 cars. Why twenty? Because I haven't figured out loops and all my loops over those 20 cars were "unrolled" - 20 consecutive lines of if/else statements! But it worked! I don't know for how long, but it was still in use when I moved from the town few years later.
LOL!!!!
> 20 consecutive lines
Haha that's nice think about trial and error.
Cool history!
I would like more people to experience what was the way of creating software with Delphi, seamless and easy, really closing the loop between creating and the resulting application and then look back at what unnecessary complexity we are dealing with every day when working with software. (nb I think there was a blog somewhere by one of Delphi's creators where they explicitly mentioned that the language and IDE were designed to be simple to use).
If I will be teaching programming to my children I will dig up old installation of Delphi 7 and just let them play.
Might be nostalgia speaking, but even if it doesn't lag behind, I'm pretty sure it hasn't gotten better. I guess QT Creator actually comes close.
(Plus: Compile times were never ever an issue...)
Now for the web, nevermind.
I often think nostalgically back to my NT4 system. A full office suite, photoshop, and delphi IDE running side by side in 128 MB of RAM, with room to spare, and very zippy. I see some functional improvements in modern day software, but nothing that warrants the incredible bloat.
I notice that the software industry as a whole still lives in the assumption that hardware can fix slow software. However, that doesn't seem to be the case. If you look at single-threaded performance the improvements are much less than they used to be. We may reach a point where CPUs stop getting faster at all. At what point should we go back to micro-optimizing our code?
I also start with Pascal (Turbo 3, 4, 5, 5.5 (greatest!), 6 and little bit 7). Then jump to Delphi (all 1-7) and then abandon it.
Much kudos must go to Anders Hejlsberg, who wrote the compiler in assembly language, starting on it at age 20[1]. Hejlsberg went on to create Delphi, J++, C#, and TypeScript.
I still regard TP 1.0 as one of the best software products I've used, and feel it is a testament to brilliant, performant, compact software development - and to its developer.
How many years later and the web still does not catch up.
1) JS isn't discoverable from the perspective of the IDE. There's no static typing and no way for the IDE to hook up code to UI elements, and vice-versa. You need a statically-typed language that can transpile to JS without too much "impedance mismatch".
2) HTML layout functionality isn't really geared for the type of layouts that are present in desktop applications. Document-oriented layouts have a completely different set of requirements.
3) You have to solve the design-time/run-time issue, and this is not an easy issue to solve due to 1). You can't just use a browser engine at design-time for the WYSIWYG portion, so you need to create a whole "browser emulation" layer in the IDE, along with an execution environment for your statically-typed language.
Our product, Elevate Web Builder, solves these issues and implements a Delphi-like IDE for developing single-page web applications:
https://www.elevatesoft.com/products?category=ewb&type=web
We've got a new version coming out soon that will also offer server-side coding in Object Pascal, giving developers a single-source-language approach to developing complex web applications.
UWP isn't a failed experiment by most measures, and you may not directly notice the API transition in many major Windows components from Win32 to UWP, but it's happening.
For what it is worth, the RAD experience for UWP is pretty good and if you want to make a not-very-well-architected "VB6-ish code behind" app with Visual Studio RAD tools, you can knock it out in about the time it would have taken you in VB6.
The pricing is just out of this wolrd. You get the impression that they try to squeeze every last penny out of their existing user base.
People always say one of the main advantages of Delphi is programming of database centric (CRUD) applications but compared to the SAP system it's still inferior. I think the principle of RAD itself may be flawed/dangerous. Sure, for small CRUD Apps with a single window operating directly with the db components (Grid, and those "mapped" Fields) you will quickly have results and it will work. But for larger Applications that all falls apart.
The trouble I see for Delphi is that the whole eco system is rotten. In my perception there are only a hand full suppliers of components and libraries left. Some of those components are barely maintained and even worse documented. There is lots more knowledge and up-to-date examples available for C#.
I used to think that about Delphi, various commercial Lisp implementations, etc. But after some time I've changed my view a little.
My change is because I realized that Delphi had its chance, and kept on trying as the chance slipped away. No amount of competitive pricing today is going to make a resurgence of Delphi happen. That door is closed, for all practical purposes.
The alternative is to offer products and support in a sustainable way and given the small number of people using Delphi professionally today, that means charging somewhat hefty amounts. IOW, their target market is business that has Delphi products that are worthwhile to maintain. In order to stay in business and provide service they have shed casual users.
I disagree. Delphi is still great, and with a less tone-deaf it could get very well.
Note that Delphi still have a healthy position today:
https://www.tiobe.com/tiobe-index/
(Position 9, above Ruby! and others!)
(As much as we can debate about Tiobe and other indexs, is important to note that is still way higher that many will expect, and the flow of information we see in the community is very good, much more than many other hispers options)
The thing is that price is in fact the main problem. This kill the open source ecosystem options around it.
I will totally, like many others (I know, I'm moderator in on of the most important forum in Latin-America) work more for it but without a way to reach a large audience it kill many ideas we have.
Delphi was the most sucesfully opensource but commercial (as, you have the source) with many thirdy-party options. Think like the current React-Components market but maybe larger and years ago.
If you're right and companies just can't see that or make it work, can the community do more with Lazarus? I have not played with that so I don't know how good it is.
The only options available were a few 4GLs that cost more than even Delphi licenses are worth nowadays.
One of the many things I loved about Delphi compared to other RAD tools of the time was that it was the only one that supported and encouraged modular separation of logic and UI. In most others (VB!), the IDE did nothing to help you, and most people ended up with all their logic mixed into the UI code, simply because the UI code was the focus of the whole IDE.
The Windows platform was awful so I ran away to Unix, and trying to find something even close to Delphi was just impossible. The best thing we had was Tcl/Tk, which I used a fair bit.
I tried Java at the time and remember saying to myself: You got to be kidding me.
Eventually I gave up on GUI development for Unix and embraced the web browser is the UI philosophy and develop the back-end in Python (then a fairly new language). Best career move I ever made.
I'm still fond of Delphi, it was a great product.
I'm 100% with you. That's why I switched from Delphi IDE to Visual Studio Code with OmniPascal (www.omnipascal.com). It's much nicer to work in a state-of-the-art editor.
IIRC the average SAP deployment is in the region of $10 million.
Sure, for enterprise-level things that's justifiable, but most businesses don't have that sort of money to throw around.
The provider plays nicely with the client dataset and let's you interact with UI elements, sending automatic updates to the database through the soap service.
So when I switched to the Linux build, I noticed that data provider component in the components toolbar was disabled. That means it isn't supported on Linux.
Tricking the IDE with a Windows project, placing the provider in a data module and switching it to Linux target, I tried to get it to work on Apache. No response from soap.
After a couple of hours of eyeballing and recompiling the provided Delphi sources, I realized that the support is actually there, but there were some programming errors such as not implementing the entire interface, and somehow the memory manager behaved weirdly on Linux, causing another interface to go nil while refcount still didn't reach zero.
All in all, Delphi makes it easy to build Windows applications, complete with data layers and Model-view style. I just wish they would hurry up with the Linux server support.
If you haven't tried Lazarus/FreePascal, you're missing out. It's really amazing, and it's truly free.
That aside, one thing that I like about FP is their text-mode IDE. They basically copied Borland's original Turbo Pascal (circa 7.0) IDE for DOS. Except this one runs on Linux etc. And, of course, has a lot more features. There's something about that TUI goodness that is hard to capture in modern GUI IDEs - and then it's also blazing fast (you think Sublime is fast? ha).
Builds to Linux, ARM/x86/x64, macOS, iOS, android, Windows, freeBSD and I'm sure I'm missing a few.
It actualy surpassed Delphi in some ways. You can develop native programs on non x86 platforms. The IDE and compiler installs and runs fine on the Raspberry/Nano/Orange PI boards, and others, so if you want to write a GUI to view sensors and actuators status, or maybe a display for a homemade KSP controller, the tools are there already. Free both as in beer and speech.
Still I feel that going with Qt is more future proof.
In all frankness I don't get why Embarcadero doesn't copy Qt's licensing. If they make a free GPL version, Delphi-based open source could thrive while just about everybody who buys a license now would still be required to buy a license.
It's the same with commercial CommonLisps, I'd love to use one, but the pricing is ridiculous for small companies / hobby programmers. That doesn't add up, you'd have to be 100% sure that you'll earn more than X dollars with your application and you can never be sure of that.
Plus I want it to have a tiny memory/CPU footprint and while .NET/WPF is better than the average Electron app I still notice a difference.
EDIT: Just saw your second addition... not so sure I'd agree though, the performance on startup of .NET applications these days is quite excellent and I haven't been able to tell for years, but I've been on SSDs with lots of RAM on recent chips I suppose.
TP and Delphi, obviously, require no apologies.
But the truth is in the years since I have moved away and tend to use JavaScript or Haxe for a lot of my projects. I'm learning rust for Non Garbage collected projects.
Until a couple of weeks ago anyway. I'm working on an emulator for an 8 bit Fantasy computer that uses an avr compatable instruction set. I recalled that there was a avr target available for freepascal and gave it a go.
I had to build a trunk version of Freepascal with my own modifications to support my Emulator. It has almost no run-time library. It's just the language, and I really enjoyed using it.
Coming back to Pascal after using so many other languagese in between provides an interesting perspective. You become more aware of the strengths and weaknesses. There are now a few things I would change If I were to make my ideal Pascal dialect.
Sure, I would love to rewrite the whole thing in Lisp (which is the language that lets me keep my soul), but we are all in all still very happy with the current code base.
A complete recompile is less than 20 minutes, and then about half that time is spent in guile for macro expansion (we have a macro DSL). We have considered porting it to chez scheme, but we rarely do full recompiles.
Pascal lends itself well to big codebase, but will probably never again be a new cool thing. I do however believe that being able to test a big change on a Dev machine in less than 10s gives us a pretty big advantage over similar solutions in other languages.
A kind salute to you, fellow Lisper!!
However i've used Delphi in the past and found it a remarkably good language, i wouldn't think to port something from Delphi to Lisp.
OTOH: We are now at a position where I am pretty sure we are a perfect fit for Greenspun's tenth rule.
The amount of time we spent to make a large part of our code stateless is mind-boggling. We now have the luxury of being able to copy the state of almost 100% of the user-facing stuff and send it back home for us to test. That would have been so much easier with something like Allegro CL.
I have actually implemented a pretty neat macro system in guile scheme that I am in the process of cleaning up for an open source release. We write parethesised, prefix pascal for our macros that gets expanded to regular pascal (easy for most algol-like languages). Having a proper macro system made it possible to remove _a lot_ of boilerplate, even though we primarily use it to generate code that the compiler can optimize easier.
So yeah, everyone moved on from Delphi, it's currently on palliative care, probably won't die any time soon, but it's becoming irrelevant as time goes by. If it wasn't for this post I wouldn't even remember it. We have much better technologies and IDE today. Good riddance Delphi.
The project might have started in 1999 (actually the codebase is slightly older according to their history page) but it took a decade for it to be usable.
Of course today things are much better. It is the most stable environment i've worked with (as long as you stick with the official stable releases anyway - note that releases from getlazarus.org are not official and often contain immature code) and even though it isn't as fast as Delphi in terms of compilation speed (and sadly the FPC devs do not care about compilation speed... what is with compiler devs these days giving zero care about compilation speed? Sometimes it feels like only Borland cared about it) it still is faster than most environments (except Borland's) i have used.
Now open source and vendor tools have completely won that space, and its only possible to profit from developer tools indirectly. So not just Delphi, but the entire associated business model has become irrelevant.
We use
- Delphi 7 - Delphi 10.2 - CrossKylix (http://crosskylix.untergrund.net) - CrossFPC (http://www.crossfpc.com)
And are able to compile native code to a gigantic amount of platforms, all from within a single IDE. Web stuff we also do, with ExtJS as a front-end.
If anyone is looking for a hardcore Object Pascal job in Germany, let me know :)
How do you build for iOS, for example? I thought you had to use Xcode.
How do you convince clients that ObjectPascal is the right solution? That is, are client concerned that you're not using Java/ C#/ C++? I've always thought Germany was fairly conservative in this respect.
"My colleague told me to abandon Delphi, it’s obsolete, Silverlight is the future.”
delphi outlasted silverlight
honestly myself i was surprised by how easily and relatively fast microsoft abandoned silverlight, i really liked their rad tool, lightswitch , but it seems it was strongly coupled to silverlight, and got abandoned soon after it was announced that silverlight will not be further developed
makes you think, you cant bet on a product, because it is supported by a large company
Although that is a proper conclusion, the majority of successful programming languages always had a corporate sponsor driving their adoption and development, even the ANSI/ISO ones.
It has been that way since well before I started using Object Pascal.
People talk about the technology as if it can be objectively good or bad instead of a medium that you find a connection with. He likes it, that's the only reason for choosing it that really matters.
If you want to borrow the book, I have a copy in my office in SoMa (2nd and Bryant).
Except for the lack of IDE/RAD, a worthy present successor is Nim. There really is no end to the potential of this clear, cool, concise, modern, fast, and elegant language.
I do ponder sometimes why we don't have something quite like that these days. Oh, people do try, but it's never that simple, and there are always a lot of moving bits with plenty of friction between them. The ease with which I could collect a bunch of data from a form and shove it into a record in a table somewhere in FoxPro is still unmatched (remember SCATTER/GATHER MEMVAR?).
Yes, true. I did a good amount of XBASE (which is the generic term for dBASE, Foxpro, Clipper, etc., and I worked on all 3 of those) in my early programming days (along with Turbo Pascal and Turbo C) - including a very interesting line-of-business app for a switchgear manufacturer's factory - that one was in Visual Foxpro and using a Novell Netware LAN and Windows. Was on site there for around 10 months for the project. Turned out to be ~180 KLOC in size and had a lot of features, from CRUD to parameterized SQL reports of all sorts to somewhat advanced (for the time at least) decision-support sort of stuff, plus production planning.
>I do ponder sometimes why we don't have something quite like that these days.
There actually are a few options (maybe you are aware of them). Harbour project, Flagship (both names are probably plays on Clipper), and a few others. There are also both paid and free libraries that can read and write XBASE formats. My own xtopdf toolkit includes DBFReader, a class that can read dBASE files, both the metadata and data.
I think it's less about the DBF file format and xBase syntax, and more about the high-level conceptual approach, with the language built around concepts like database cursors and mapping data (rather than relegating it all to a library). If this stuff is to be redesigned from scratch in a modern environment, it would have to deal with contemporary data sources - meaning SQL RDBMS - and the syntax could definitely be more consistent and less crufty.
What made Turbo Pascal great was the help system. For every single standard library function, it had a snippet of code that you could cut, paste, run, and tweak.
I wanna get a relational / kdb+ / ml hybrid.
----
One of the gems of FoxPro was the always-on terminal. It have his own terminal/repl. In the IDE. Always ON. You can do
CREATE FORM name
and open the form as a table
then do
BROWSE
and see how was made. And you could activa the terminal on a shipped app, so you can fix things on the fly.
And the debugger (specially the var windows) was good. To date, no single debugger/var window have bees as good as was with Visual FoxPro.
I'm pondering about build a Fox-in-spirit. I still mantain that NO programming tool today is good for database-development, and we need a modern take on the dbase.
My idea is build a relational language with a lot of the ideas of fox but with a modern syntax.
If somebody wanna to talk about this, and maybe help, I'm open!
You'd be surprised. Technology might have moved beyond Clipper, but Delphi is even more modern than things in fashion today...
And what's uncivil about them?
The bigger problem is that you are stuck with whatever features Embarcadero thinks are important.
For example, Delphi didn't have a 64-bit version for an excruciatingly long time. How many companies using Delphi got run over by a competitor during that window?
At this point, if a language isn't open source, I simply won't use it. I have been burned too many times on the proprietary front to ever give in on that anymore.
How many customers did Altium lose because a design was bigger than they could handle?
Meanwhile freepascal/Lazarus already has a 64 bit compiler and their LCL (like VCL) does have a cocoa (not mature) and carbon (mature) port. I'm sure it has its own issues, but at least it uses native controls, can compile to Linux desktop right now and doesn't cost an arm and a leg if you want a fix.
So yes, pascal is still awesome, not too sure on the commercial version where you don't get fixes unless you pay regularly (anecdote: I bought XE8, couldn't debug on latest macOS about 4 weeks later, that was never fixed in XE8, ended up debugging via an earlier OS X)
That may or may not be close enough to commercial Delphi, depending on who you ask.
My main concern would be whether you can continue to activate it if Embarcadero drops support or goes out of business.
The VCL is Delphi's component model, and it just isn't available anywhere else, if you've never used it, download the free starter edition and have a look. You can make applications in minutes, you can make your own components in Delphi as well and include them in the IDE, they look just the same as the ones that come with Delphi. You can also buy commercial components. You can make component editors that are included in the IDE to make things easier for developers, it is really unique.
Indeed, WinForms is so similar to VCL, even when it comes to the overall hierarchy (Object <- Component <- Control sound familiar?), you might look at it and wonder if Microsoft hired someone from Borland to work on .NET back in the day. Of course, it was only their chief architect. ~
But very inferior. And is slow in contrast.
Delphi is #1 for GUI. Period. Nothing alike, No QT, No Wx, No Winforms or XALM or anything else.
Just what is available in the lowest tier is far more complete that any other tool in the market, and you have sourcecode for the VCL and related components.
Javascript people have both and they suffer from "javascript fatigue".
Community strength is important and useful but it's by no means the reason people write software. Modernity is only useful if it solves problems. Otherwise it's just superfluous.
> If you don't have both you are wasting you time.
Perhaps you mean that you won't be able to boast your skills in interviews and apply at hip jobs? Perhaps that's true. However, enjoying yourself and making something useful isn't a waste of time.
I don't see the modernity point, either. Object Pascal has modern features.
For example, this tutorial (from 2017) recommends doing "try .. finally: f.Release" block. https://www.thoughtco.com/communicating-between-forms-409254...
This tutorial, which is also from 2017, says that that you need to either explicitly add each member to an owned list, or to explicitly free every class member in destructor: http://newpascal.org/assets/modern_pascal_introduction.html#...
Is this a recommended best practice? I hope not -- most (all?) of the modern languages either have GC, or offer automatic refcounted pointers, and Object Pascal claims to be modern.
The good thing about managing your memory is you don't have memory bloat and you don't have jitters when the GC decides to fire.
Object Pascal may have modern features, but that doesn't mean it is a modern language - nobody is going to start learning it now. Only people that have known it for years already will use it.
Re: modern languages: a language having modern features isn't a modern language, rather how popular it is at this moment is the most important aspect ? How did that work out for Python ? And where does PHP land using this criteria ? Is PHP better than Object Pascal because more people write PHP code ?
Wow. That's pretty condescending and patronizing.
>It's like talking to a island cast away.
And, that almost sounds like frustrated anger.
>It's about community strength and modernity.
Development is about this? Since when? According to whom?
Why are devs often so opinionated about what other devs do or "should" do?
"Modernity" is not a value in and of itself. This developer seems to be delivering real value with Object Pascal, and demonstrates Object Pascal tools are still being actively developed.
If you have concrete criticisms of Object Pascal, that could lead to some interesting discussion. But your comment, as it stands, adds very little value.
(Note: I do use node.js.)
While one can argue about the pricing structure, the problem for me was that how they act and communicate never felt in any way professional, at least up until I left Delphi completely, it might have changed.
Even today, more than a decade later, their website retains the same feeling of being built by the lowest bidder, seemingly without even hiring a translator/copy writer that has command of English.
All of which feels super strange when you peddle a product for thousands of dollars.
I have never seen anything better than Delphi and the VCL for building simple and easily deployed Windows apps, most everything fails on that second part. While it's a pity events took the turns they did, it's quite astonishing that MS and all their competitors never managed to find a way to easily and robustly deploy simple applications without the need for running an installer or using complicated runtimes.
I started at that age too. It was around 2002. I was told that a good way to start on computers was to attend in local IOI competitions, and that's what I did.
During the competitions, our team chose Pascal for its clarity. The official IDE they gave us was Turbo Pascal, which was really a decent environment (though I hardly realized this until I tried out other dev tools later). The friendliness in Pascal/Delphi towards developers can really date back to those days, and is laying deep in the language's genes.
Unfortunately, the previous "graphical" programs I wrote, before I got a hold on Pascal, was some simple Logo drawing dots and lines. And I had a terribly wrong impression that building GUIs are boring. So I skipped the chance of digging into the Delphi world, until I was in college. But then the Pascal/Delphi ecosystem was already decaying. I still feel bad for missing the golden era.
...is there any nice cross platform desktop UI system for golang? (with an actual user base... because these things have bugs that can only be find through extensive real world usage unfortunately...).
Chuck Jazdzewski, one of the original developers that helped create Delphi, did a series of blog posts that details some of the thought processes behind Delphi:
We sell a Delphi-like IDE for web applications (Elevate Web Builder) that uses Object Pascal, and the only other language we would even attempt to implement with the IDE/compiler is C#. It's the closest in terms of features/behaviors to Object Pascal, with the main difference being multi-cast event handlers (delegates) in C#, which is really just a compiler-syntactic-sugar detail.
Just kind of, because sadly Go still has a lot to catch up with Object Pascal features and compiler toolchain.
It's also worth noting that while the linked article mentions Windows 7 and up, the current version of Delphi 10.2 produces apps that also work under Windows XP and Vista as well.
I'm happy to answer any questions you may have about it.
Which are exactly the feelings I search for today when I'm researching frameworks and languages.
That period was the happiest time of my life as a programmer even though relatively speaking I didn't know much.
More than anything else, Delphi was just plain fun to use.
https://en.wikipedia.org/wiki/Lazarus_(IDE)
It has Object Pascal and a RAD setup.
With that said, I'd really like to check out Lazarus the next time I need to create such a GUI utility or the like. ...and if the price wasn't crazy, I'd be very tempted to try Delphi for some projects again.
I have also settled on Java/.NET as my TP/Delphi replacements.
Delphi 2005 was my introduction to computers and programming, first in a course given by the local technical university, later in regular school. Wasn't embarcadero back then, but Borland I think. Neckhold either way. I liked how the development worked, and think it wasn't a bad environment to first learn programming.
Anyway, that were years of fun, but I, as most, moved on..
As time went by I moved on to PHP and other things. Is there anything that actually requires deep, low level OS hooks or anything like that, that would justify a desktop client app, as opposed to a browser based app, running locally (with web sockets and such?)
Mh.. A great user experience? In line with other made-with-love apps, which fit in nicely into the OS?
Actually I think it's great, AFAIK, Pascal is meant to be a teaching tool for students.
Why aren't all compiled languages compiled to native code?
Native code only runs on a single processor architecture: The one it was compiled for.
Often you want your programs to run on multiple processor architectures without compiling binaries for all of them in advance.
That part certainly has improved since Delphi 7.
Pascal itself is a nice elegant language, although a bit verbose.