Simple clear advice in plain English

Hands on: The latest Delphi software

New Delphi releases have been spoilt by hasty shipping

Codegear has released two new versions of Delphi – Delphi 2007 for Windows, and Delphi for PHP, which aims to bring Delphi Rad to PHP web programming.

Delphi 2007 compiles to native Win32 code only, omitting the .Net compilation found in Delphi 2005 and 2007, though the IDE itself still requires the .Net runtime.

Codegear says it is not giving up on .Net, and will release a new .Net edition at a future date, but the move reflects the tendency of Delphi developers to prefer native code.

It is difficult for Codegear to compete with C# and Visual Basic in the .Net world.

Why Delphi?
With .Net now well established, why do developers still like native code? There are three main reasons. The first is performance. Here’s a quick example: a basic Delphi form application with a listbox and a couple of buttons shows the following memory usage in Task Manager on Vista:

Working set: 6,752K

Private bytes: 1,136K

An application with the same features measures as follows in Visual Basic .Net:

Working set: 16,952K

Private bytes: 4,312K

Memory usage is a slippery thing to measure. The working set is the actual memory in use, but may include memory shared by other processes, while memory in Private Bytes cannot be shared. On today’s machines with huge reserves of Ram this hunger for memory may not be critical. Even so, there are implications for how well the application will run on older machines, how fast it will load, and how many simultaneous applications will run.

The second reason is deployment.

If you stick to basic controls, a Delphi application has few if any dependencies, whereas .Net applications require a large runtime to be present.

The third reason is flexibility. The .Net Framework does not wrap the entire Windows API. Although almost anything can be achieved via Pinvoke (Platform invocation), this is an extra and error-prone step for when you need those unwrapped APIs. By contrast, Delphi can handle the Windows API easily.

Delphi is not the only option for native-code Windows development. Microsoft’s offering is Visual C++. The beauty of Delphi is that it is close to Visual Basic for productivity and close to C or C++ for performance.

Reader Comments

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

Symantec pcAnywhere

Symantec urges pcAnywhere users to ditch software after code theft

A source-code theft dating back to 2006 has caused Symantec to advise customers to stop using affected software

Using Wizard to create a form

Create a good Base for your data

Databases may sound very dreary but they are behind almost everything we do. We explain how to go about starting one of your own using Libre Office Base

VLC screenshot

20 free alternatives to Windows built-in utilities

You might think Windows has all the utilities you want, but we've found 20 that are free and do a better job. We tell you what they do and where to download them

Question & Answer

Q.Why are some of the keys on my keyboard doing strange...

> Read the answer

Q.Is my phone’s Bluetooth any use?

> Read the answer

Q.Can I switch boot drives so that I can work on older...

> Read the answer

Best deals on the web

img

Samsung RV520-A07

£359.98- Buy it now

img

Acer Aspire 5750G (LX.RXP02.019)

£399.99- Buy it now

img

Apple MacBook Pro (MD313B/A)

£904.37- Buy it now

Latest issue & subscription deals

Poll

Are you concerned about viruses that target mobile phones?

Jargon Buster

Computing terms explained in plain English

CAD

Computer Aided Design. Software used to create 3D models.

Great shopping deals from Computeractive