Pascal still an advantage for some iOS, Android developers

Pascal still an advantage for some iOS, Android developers

Summary: Many developers wouldn't dream of developing in Delphi with iOS or Android in mind, but with cross-platform compilers, companies sitting on years of solid code may suddenly find themselves with a second wind.

SHARE:

Many developers have come across Pascal early on in their careers, usually introduced as an old language to learn on. It's not surprising then that many consider Delphi, which can be considered a descendent of an object-oriented version of Pascal, to be similarly as old and possibly outdated.

However, Embarcadero Technologies, the company that purchased Delphi from Borland in 2008, argues that the language still has more than enough kick in it to rival more "modern" languages of today.

An example of this can be found in the medical profession, in which years of software development has meant that healthcare professionals rely of software written in Delphi. Normally, it might be easy to dismiss software away as "legacy systems" and aim towards re-writing everything, but Embarcadero argues Delphi still has enough flexibility to turn years of code into an advantage, rather than a ball and chain.

Medical-Objects is one such company that has developed software in Delphi, which is currently being used by over 20,000 healthcare providers in Australia alone.

"It's not your dad'sPpascal," Embarcadero senior sirector for Asia Pacific and Japan, Malcolm Groves told ZDNet.

"[Delphi] has kept more up to date than a lot of other languages. It's got generics, it's got closures, it's been kept up to date with language development. Has Java even got closures yet?"

Support for closures is currently slated for inclusion in Java 8.

With the advent of the consumerisation of IT and employees bringing their own devices to work, Medical-Objects wanted to deploy its software on Apple and Android tablets. But with iOS apps typically written in Objective C and Android apps written in Java, many had incorrectly thought that an extensive Delphi-written code base would be a nightmare to port to each platform and require a re-write of years of code.

"They've got a large set of IP that's been implemented in Delphi code ... it would be crazy to re-write it. It would be a bad investment on a bunch of levels to re-write that simply for the sake of it."

Nevertheless, Groves said that he still hears stories of companies that choose to move away from Delphi, recalling a recent conversation he had with a company that attempted to re-write its Delphi code for .NET.

"Like most of these total re-writes that you hear about, it's been a disaster and they're now reviving that Delphi code base."

To solve the issue of getting applications written in Delphi on to iOS and Android mobile operating systems, many would choose to develop a HTML5 web app, but Groves argued that developing this way creates it own set of problems.

"There are issues around performance, and especially latency in the user experience," he said.

The company's latest development suite, RAD Studio XE4, hopes to solve these issues by eliminating any scripting or interpretive layers, and allowing developers to create native apps for multiple platforms at once, but it also means that businesses that have stuck by Delphi now have the advantage of easily porting their trusted code to Android or iOS without issue.

"That's code that's debugged; it's solid, it's working. They can take that to new platforms. They don't have to throw it away."

It also means that even companies that don't have a history with Delphi, or are able to develop first for iOS, they can simply recompile their code for Android.

"If someone had concerns about ... or wasn't so fussed on Pascal, then that's exactly why we have a C++ version."

While this may raise concerns that, for example, Android ports of iOS applications might fail to take advantage of Android's features, such as modular intents, Groves said that its suite did not prevent platform-specific customisations.

"In the one time out of 10 where you really do want to roll your sleeves up and craft something custom, you can because it's a native tool."

Groves said he almost expected developers to do so, given what happens currently when developing for Windows and OS X, and that giving developers flexibility was key.

"Even what we see today with people building Windows and Mac applications from the one source base, they end up making decisions through their apps. Some forms are just recompiled unchanged, some have got 'ifdefs' inside saying, 'If I'm on Mac, do this different thing'. And sometimes they may choose to build an entirely different section for one specific platform."

"That's a decision they get to make. It's not one forced upon them by the platform."

Topics: Software Development, Android, Enterprise Software, iOS, Bring Your Own Device, Web development

Michael Lee

About Michael Lee

A Sydney, Australia-based journalist, Michael Lee covers a gamut of news in the technology space including information security, state Government initiatives, and local startups.

Kick off your day with ZDNet's daily email newsletter. It's the freshest tech news and opinion, served hot. Get it.

Talkback

9 comments
Log in or register to join the discussion
  • No reason to change

    Thanks for this article. So many times my company was at a crossroad regarding moving to a new language, each time we decided to stay with Delphi because "everyone else is doing it" is not reason alone. Decades of resources, multiple platforms, speed, efficiency, ease of use and now android and ios.
    Heinduplessis
    • Lots of reasons for change

      Everyone else is doing it is a perfectly good reason. If everyone else is doing it you can find developers, books, courses, libraries, etc. for the tool and other products will probably be compatible with it. Sticking with Delphi you're cut off from everyone else.
      jgm@...
      • It usually comes to this:

        Either you follow the pack, or you lead the pack yourself!

        I don't tend to choose my tools for who is using it, but for how good they are for the job at hand! And a programming language is nothing but a tool.
        nunopicado
  • Sticker shock!

    Delphi sounds good until you look at the price of their compilers. They want $200 for what sounds like the same functionality Microsoft gives away for free (Starter vs Express).
    Charles Doty
  • Conflicted Over This

    After using Pascal through much of the 1980s, I gave it up for Modula-2, which was Niklaus Wirth's own anointed successor. Sadly, the rest of the world failed to appreciate his minimalist approach to programming language design, and various mutations, not to say perversions, of the original Pascal concept remained stubbornly popular.

    Today, if I wanted to use a statically-typed language with no garbage collection but with allowance for low-level memory manipulations, I might as well stick with C.
    ldo17
  • Re: Has Java Got Closures?

    You can do them with class definitions inside methods.
    ldo17
  • Priced Out of Market

    I first bought Borland Turbo Pascal when it was released at $US25 and it took the world by storm back in the 1980s and followed it through my career up until Borland sold it off.

    Whilst the language is now dated, there are many old and new programmers that would take advantage of its rich feature set if it wasnt priced out of reach of individual and recreational programmers. The current pricing seems to be aimed at the corporate market and most of those programmers are nearing retirement and many have long since stopped coding.

    Im sure the article is an attempt to reinvigorate the product but the fact that Pascal was taught in universities had a lot top do with its uptake back then. Competition with free modern languages is going to be difficult. However I would love to develop some modern apps in my primary language again.

    Bring back under $US50 for a feature complete version that will allow development of useful applications cross platform and watch your market share explode.
    clarky
    • You are correct!

      Unfortunately, EMB doesn't doesn't see it this way.
      DixieGeek
  • Delphi is dead

    EMB hasn't done anything to save Delphi, unfortunately it is absolutely dead and regardless of how good it was, now most companies just want to convert their apps to mostly .Net languages. Even if it is the best programming language in the globe, show me 5 Delphi jobs here:
    seek.com.au
    Delphi developers cannot be excited by new features in Delphi XE4, 5, ..., 500. They need to find a company to use this language!
    DelphiSeniorDeveloper