News for hackers. Stuff that matters.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by xvilka on Sunday May 12, 2019 @10:09PM (#19895944)
Why would anyone use Delphi these days? Except the case of maintaining legacy code.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by nurettin on Monday May 13, 2019 @12:55AM (#19896517)
It is a cross-platform product which readily comes with server components, logger components, IPC, many DB connectors and UI components if you are on windows, android or iOS.

Language-wise, UI design-time lets you execute code such as db queries while designing your screens. It is almost completely orthogonal. It has no GC which makes for a faster runtime and writing free in finally is not something that is easy to forget (remember orthogonal) and immediately jumps out as an error when skimming code. Data modules enforce a separation of concerns, visually seeing component properties enables another form of remembering setup parameters.

Tooling-wise, you have runtime stack traces thanks to jedi library. It can show memory leaks on shutdown by enabling a flag. You have package manager baked into the UI, compiler is blazingly fast and generates fast executables.

With all this, for example, you could concoct a db editor easily in a few hours.

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by mixmastamyk on Monday May 13, 2019 @01:28AM (#19896612)
Is it still maintained? Believe FreePascal and Lazarus IDE are.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by nurettin on Monday May 13, 2019 @04:01AM (#19897093)
Delphi is very much alive. I exited the scene after Delphi 2009, re-entered in 2014 during Delphi XE7 to do some web service and android work. I don't use delphi anymore, but latest version is Delphi 10.3 released a few months ago.

http://docwiki.embarcadero.com/RADStudio/Rio/en/Compiler_Ver...

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by bitcoinofficial on Monday May 13, 2019 @02:05AM (#19896712)
Yes, it is. But the prices are violently high for Embarcadero products.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by Crinus on Monday May 13, 2019 @05:09AM (#19897349)
They are maintained but last time i heard after it was sold to Idera they fired some of their most of their programming team, including some (or all? I don't remember details) of the programmers who where there since the earlier days and went for outsourcing development. There was several posts/discussions about it in a few Delphi-related blogs, but i didn't follow beyond that.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by edwinyzh on Monday May 13, 2019 @02:16AM (#19896749)
I'm close to the end of initial development of a product which basically turns Microsoft Word into a desktop CMS like WordPress (it utilize Bootstrap 4 so the result is not what you might think ;))

There no reason not to use Delphi for this project - it compiles really fast and natively, it allows me to make nice UI fast without limits, I've got a lot of reusable code.

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by haolez on Sunday May 12, 2019 @10:14PM (#19895959)
I wouldn’t use it for my projects, but Delphi still has some strengths that are not so common these days:

- very fast compile times

- great backwards compatibility

- non programmers can create simple programs

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by revanx_ on Monday May 13, 2019 @02:10AM (#19896726)
"non programmers can create simple programs"

What does that mean? You can be a non programmer and make simple programs in most general purpose programming languages.

Are you talking about the VCL library? In that case, there are many other languages that include the same like C# for example.

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by detaro on Monday May 13, 2019 @05:06AM (#19897337)
Delphi is hard to beat in ease-of-use of the GUI editing. It's not just that it ships with the component library, it's that the editor integrates it so well.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by Crinus on Monday May 13, 2019 @05:11AM (#19897355)
...and before someone tries to counterpoint that Visual C# has WinForms which is similar to Delphi, yes it is similar, but the functionality available in terms of design in Visual Studio 2019 isn't up to par with Delphi 2.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by barrystaes on Monday May 13, 2019 @06:28AM (#19897797)
The libraries with source like other languages also do today, but also that the language is verbose like Visual Basic did.
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by msla on Monday May 13, 2019 @12:00AM (#19896337)
> great backwards compatibility

How good was Delphi at hiding MS-DOS quirks? I know C from that platform tended to be nonstandard with near and far pointers to accommodate memory segmentation, but was Delphi any better?

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by bitwize on Monday May 13, 2019 @12:06AM (#19896358)
Delphi was a Windows-only product. Delphi 1 and its predecessor, Turbo Pascal, only supported far pointers to data, and could support far or near procedure calls with an annotation (essentially, a compiler pragma).
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by acqq on Monday May 13, 2019 @03:52AM (#19897056)
> only supported far pointers to data

Which meant that as long as you didn't have to call C functions you just had to know and write that "it's a pointer" and nothing more.

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by anta40 on Monday May 13, 2019 @12:58AM (#19896523)
Probably to write Windows apps without being dependant to JVM/.NET ?
Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by tracker1 on Monday May 13, 2019 @08:37AM (#19898633)
That's somewhat fair... GUI in JVM generally sucks all around, and while I appreciate XAML in .Net space, it comes with a lot bigger cost than the output of Delphi.

Though, iirc, Delphi is really expensive as a product.

Re:Awesome Pascal – A curated list of Delphi, FreePascal, an... by pjmlp on Tuesday May 14, 2019 @06:18PM (#19914376)
Mostly because those devs haven't bothered reading books like "Filthy Rich Clients", and also only care for programmer art.