Description #
Oxygene is a modern Object Pascal language designed for building robust applications on .NET, Java, and Cocoa platforms. It combines the readability of Pascal with modern programming features and seamless platform integration.
History #
Oxygene was introduced in the early 2000s by RemObjects Software as the evolution of Delphi for the .NET platform. Initially branded as “Chrome,” it was rebranded to Oxygene and became part of the Elements compiler suite. It retains Pascal-like syntax while embracing object-oriented and cross-platform paradigms, allowing developers to write high-performance apps that target multiple backends with a single language.
Hello World Code #
namespace HelloWorld;
interface
uses System;
type
Program = class
public
class method Main;
end;
implementation
class method Program.Main;
begin
Console.WriteLine('Hello, World!');
end;
end.
How to Run #
Option 1: Online
https://elementscompiler.com/elements/try
Option 2: Local
- Download and install Elements IDE
- Create a console app targeting .NET or Java
- Compile and run via IDE or command line
Key Concepts #
- Syntax style: Pascal-inspired
- Typing discipline: Strong, static typing
- Execution model: Compiled to IL (for .NET), JVM bytecode, or native code
- Common use cases: Cross-platform apps, desktop tools, mobile apps (iOS/macOS)
- Toolchain or ecosystem: Elements IDE, Visual Studio integration
- Paradigms supported: Object-oriented, multi-paradigm
- Compilation details: Targets .NET CLR, JVM, or native Cocoa frameworks
- Strengths or quirks: Interoperability with C#, Java, and Swift code
- Libraries/frameworks: Full access to .NET, Java, Cocoa APIs
- Community/adoption: Niche, used primarily by developers modernizing Pascal
Try It Online #
https://elementscompiler.com/elements/try
Fun Facts #
Oxygene supports writing platform-native apps across macOS, iOS, Android, and Windows — all from a single Pascal-like language. It can seamlessly interface with other Elements languages like C#, Swift, and Java.