Oxygene for Delphi Developers
If you're a Delphi user looking to get into Oxygene, either to expand your tool belt or to move to the more modern cross-platform Pascal dialect altogether, then you have come to the right place!
This page collects all the information you need to get started, will let you explore the differences (and similarities) between Delphi and Oxygene, and provides you with a unique look at what makes Oxygene great, from a Delphi user's perspective.
It is probably safe to assume that one of the reasons you are here is that you love the Object Pascal language.
The good news is that Oxygene is pretty much the same language that you already know and have used for years with Delphi — it is just vastly extended with additional features (such as Future Types or Class Contracts) and small things that make life easier, like the or ).
It also cleans up a few minor idiosyncrasies and inconsistencies in Delphi's Pascal dialect to make the language (in our opinion) a bit cleaner and more consistent. Some of these idiosyncrasies can be restored by enabling the Delphi Compatibility Settings.
Minor Language Differences compared to Delphi – explores the minor "cleanup" changes to the language. Things you want to be aware of as you start coding, or as you port existing Delphi code over into the future.
New Language Features compared to Delphi – gives you an overview of the major features Oxygene offers over Delphi's Pascal dialect. This covers all the big new things Oxygene introduced over the years – features you dont need to worry about for now if you are just getting started, but that will come in handy once you become more familiar with them.
Oxygene also includes a great tool called Oxidizer that lets you import legacy Delphi code into your Oxygene project, and have it adjusted to the above-mentioned idiosyncrasies automatically. Oxidizer can convert code as you paste it from the clipboard, or import entire units into your project.
We strongly encourage you to try and not enable Delphi Language Compatibility for your Oxygene projects, but get used to the (few, small and very sensible) differences. Over time, you will come to appreciate them for making the language cleaner. The Delphi Language Compatibility option is provided mainly for developers who want to share code between Delphi and Oxygene.
When Delphi was first released in 1994 — over twenty (20!) years ago now — it introduced the VCL, a much-needed feature that made Delphi what it was. Back then, programming to the Windows API was painful, as the API was procedural and based on C functions, and using a powerful abstraction layer such as the VCL was much preferable to manually dealing with object handles and writing long case statements to handle window messages.
But in the past 20+ years, the computing landscape has changed, and all of today's platforms come with vast, powerful and mostly easy to use, consume and extend frameworks that don't need further abstraction and are in fact hindered by unnecessary abstraction attempts.
On Windows, despite what some naysayers like to make you believe, the .NET Framework has become the de-facto standard for creating applications, services and any other kind of application imaginable. With over 10,000 classes and types, the .NET Framework Class Library provides well-designed APIs for just about any need you may have, and third party libraries, commercial and open source, are there to fill any remaining gaps. And not to forget that with its siblings Silverlight and WinRT, the same frameworks also take you to Windows Phone and to ARM-based Windows RT devices, and enable you to build "modern" apps for Windows 8 and Windows 10.
Java, too, comes with a vast set of libraries for all imaginable purposes, and on Android, the Java-based APIs provided by the OS are the default "native" way to develop for the platform (Google in fact discourages the use of the C++-based "NDK" for all but corner cases like the device driver).
And then there are of course Mac and iOS, where the extensive, object-oriented Cocoa libraries actually are part of the operating system and its default API. Like the other two platforms above, the Cocoa (and Cocoa Touch, as the iOS version is formally referred to) frameworks provide an unprecedented wealth of well-designed classes and APIs that let you accomplish anything you want on iOS and the Mac.
For sharing non-UI business logic code between platforms, our own open source Sugar library provides access to commonly used classes and APIs in a cross-platform way with toll-free casting.
The biggest step in adjusting to Oxygene when coming from a Delphi background is the realization that there is no need for a wrapper framework like the VCL to make the OS APIs accessible, because the platforms already come with amazing libraries that, once you get used to them, you will love.
The Platforms section of this site is dedicated to these libraries, and while most of the actual documentation for them can be found on the platform vendors' sites (the great thing about not having a wrapper framework is that you can use the platform straight from the horses mouth), it will give you an introduction and tips on how and where to get started.
These articles cover general Oxygene language, IDE and conceptual topics from a Delphi developers' point of view.
The following are a few articles to help get Delphi developers acquainted with the GUI frameworks used by Oxygene: