News for hackers. Stuff that matters.
Re:Delphi's 25th Birthday by vintagedave on Friday February 14, 2020 @05:49AM (#22325530)
> I sincerely hope that someone will get it back on the right track (or has already done so ...

2020 Delphi supports five platforms, has 64-bit compilers everywhere, has modern language features, interoperates with C++ through C++Builder, and more. In the past few years especially, we've* seen both a lot of work on it, and increasing interest in using it.

It's modern, and used more widely than one might realise.

* "We've": This is a personal HN account but I work on Delphi and C++Builder.

Re:Delphi's 25th Birthday by gyulai on Friday February 14, 2020 @06:14AM (#22325637)
Thanks for chiming in! I'll give it another spin, if I get some time.
Re:Delphi's 25th Birthday by gyulai on Friday February 14, 2020 @06:35AM (#22325742)
...although language features, 64bit, and integration with C++ were never really where my quarrels were.

If we take "rapid application development" out of its trademarked context, applying just its common-sense meaning, and applying it to the year 2020, then the modern tech ecosystem that one would want to integrate with is clearly not C++, but rather maybe JavaScript & the browser ecosystem, Python, and low-overhead JVM langauges like Scala or Groovy.

The next thing that immediately jumps out at me is that the form designer is still using pixel-based positioning, instead of layout managers and units of length that we know from html, like em (fontsize-based), or vh/vw (percent of view-height/view-width), etc.

I was trying to research these things more extensively just now, but giving you my name, street address, company, phone number, and then "Error: Field required: Yes, I would like to receive marketing communications" for downloading the COMMUNITY edition? Come on! Enterprise bloat: Check.

Re:Delphi's 25th Birthday by gyulai on Friday February 14, 2020 @07:11AM (#22325919)
Haha. 10 minutes further into my Delphi-in-2020-exploration (60% of which was the time that the installer actually took), this was the sequence of events:

* Hit the installer and switched windows, to let the installer work in the background.

* Installer mysteriously gone.

* Tried to run the programme, and it took some digging to understand that the product seems to be in a half-installed state.

* Re-run the installer. This time, keeping the installer in the foreground. Now it works.

* Started Delphi.

* Dropped a button in the form designer to start playing around.

* Oh gosh. Form designer still using pixel-based layouts.

* Deleted the button.

* Doing some Googling to figure out how to do layout managers, and found an interesting youtube tutorial on something called TGridLayout.

* Dropped a TGridLayout on my form.

* Form Designer now caught in an infinite loop bringing up an Error modal that says "Control TButton($17EE2200) has no parent window. Path: ~TButton($17EE2200)".

Thanks Delphi! See you again, another 10 years from now.

Re:Delphi's 25th Birthday by gyulai on Friday February 14, 2020 @07:21AM (#22325961)
...feels like a relationship with an old friend who you've lost touch with when he became an alcoholic, but every now and again you feel bad for him and think you owe him a meeting.
Re:Delphi's 25th Birthday by vintagedave on Tuesday February 18, 2020 @12:24PM (#22357815)
Sorry to hear it crashed. And no idea re the installer. Just out of interest, did you file a bug report? Because I've been using the grid layout recently and have not seen an error.

> Oh gosh. Form designer still using pixel-based layouts.

If you build a desktop app, you'll get pixel-based layouts, because that's how Windows works. It is fully high DPI enabled and scalable, so it's not accurate really to call the units pixels. Call them design units or similar.

As you noted there are various layout tools, from containers with various flow behaviours, through to anchors and padding.

Re:Delphi's 25th Birthday by bstamour on Friday February 14, 2020 @03:31PM (#22330098)
We use Delphi for some of our older applications (everything new is migrating to either C++17 or Go). I remember upgrading the IDE (forget which version, but it was about 3 years ago) and after loading my project, I hit F1 to bring up the help menu. The whole IDE crashed... Between little surprises like that and the insane licensing price, I'm glad we're moving off of it. I don't have any objections to the language itself, but the tooling just isn't where it needs to be.
Re:Delphi's 25th Birthday by zubairq on Friday February 14, 2020 @12:20PM (#22328254)
I’m working on yazz Pilot which is supposed to be a modern take on Delphi or Visual Basic. I will take your comment to heart and make sure we implement proper layouts and positioning for the web
Re:Delphi's 25th Birthday by chrisseaton on Friday February 14, 2020 @07:24AM (#22325970)
> has modern language features

What kind of modern language features has it gained?

Re:Delphi's 25th Birthday by pjmlp on Friday February 14, 2020 @09:01AM (#22326550)
One of them would be generics, some languages are still having issues implementing them.
Re:Delphi's 25th Birthday by zerr on Friday February 14, 2020 @02:56PM (#22329757)
It's just the one particular language, and the reasons were political :)
Re:Delphi's 25th Birthday by zerr on Friday February 14, 2020 @02:49PM (#22329681)
Do you plan to open source it and adopt e.g. Qt-like business model? e.g. charge for service, not tools (except probably some enterprise chart or reporting components).
Re:Delphi's 25th Birthday by tsss on Friday February 14, 2020 @07:16AM (#22325937)
I really wouldn't call it modern, unless you consider C++ modern.
Re:Delphi's 25th Birthday by johannes1234321 on Friday February 14, 2020 @10:47AM (#22327495)
C++ is modern.
Re:Delphi's 25th Birthday by MrMorden on Friday February 14, 2020 @02:59PM (#22329810)
C++14 and later are modern. What people commonly refer to as “C++” also includes C++03, which needs to be put out of its misery.
Re:Delphi's 25th Birthday by johannes1234321 on Friday February 14, 2020 @03:44PM (#22330215)
Well, historic stuff obviously is historic.