ArticleslgStudy

computer science

Lazarus (software)

Lazarus (software) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lazarus (software) rather than just read about it. In short: Lazarus is a cross-platform, integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal compiler. Its goal is to provide an easy-to-use development environment for developing with the Object Pascal language, which is as close as possible to Delphi.

Lazarus (software) — main illustration
Lazarus (software) — illustration

Key takeaways

  • Lazarus (software) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lazarus (software) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lazarus (software) from memory before moving on to harder problems.

Reference excerpt

Lazarus is a cross-platform, integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal compiler. Its goal is to provide an easy-to-use development environment for developing with the Object Pascal language, which is as close as possible to Delphi. It is free and open-source software with different parts released under different software licenses. Lazarus is often used to create native-code console and graphical user interface (GUI) applications for desktop computers, mobile devices, web applications, web services, visual components, and function libraries for several different operating system platforms, including macOS, Linux, and Windows. A project created by using Lazarus on one platform can be compiled on any other one which Free Pascal compiler supports. For desktop applications, one source code can target macOS, Linux, and Windows, with little or no modification. For example, the Lazarus IDE is created from one code base and available on all major platforms including Raspberry Pi.

History Lazarus was started in February 1999 by three developers, Cliff Baeseman, Shane Miller, and Michael A. Hess, who had previously attempted to contribute to the Megido project, an earlier open source effort to build a Delphi like IDE for Free Pascal that dissolved due to internal disagreements and architectural issues. In frustration, they founded Lazarus as an independent project to accomplish the same goal. The project was hosted on SourceForge and attracted community contributors through mailing lists and version control systems. Marc Weustink joined in August 1999 and made foundational contributions to the debugger and core components. Mattias Gaertner joined in September 2000 and has been one of the principal contributors to the IDE's core since then. The original founders are no longer involved with the project.

Features Lazarus provides a What You See Is What You Get (WYSIWYG) development environment for creating rich user interfaces, application logic, and other supporting code artifacts, similar to Delphi. Along with project management features, the Lazarus IDE also provides:

A visual windows layout designer GUI widgets or visual components such as edit boxes, buttons, dialogs, menus, etc. Non-visual components for common behaviors such as persistence of application settings Data-connectivity components for MySQL, PostgreSQL, FireBird, Oracle, SQLite, Sybase, and others Data-aware widget set that allows the developer to see data in visual components in the designer to assist with development Interactive debugger Code completion Code templates Syntax highlighting Context-sensitive help Text resource manager for internationalization Automatic code formatting Extensibility via custom components

Cross-platform development

Lazarus uses Free Pascal as its back-end compiler. As Free Pascal supports cross-compiling, Lazarus applications can be cross-compiled from Windows, Linux, or macOS to any of the supported Free Pascal compilation targets. Applications for embedded devices (smartphones, PDAs, routers, game consoles) can be cross-compiled from any desktop platform. Lazarus provides a cross-platform application framework called the Lazarus Component Library (LCL), which provides a single, unified interface for programmers, with different platform-specific implementations. Using LCL, it is possible to create applications in a write once, compile anywhere manner, unless system-dependent features are used explicitly. LCL was originally modeled after the Visual Component Library (VCL) in Delphi 6, but is not restricted to Windows. This is done by separating the definition of common widget classes and their widgetset-specific implementation. Each widget set is supported by providing an interface which interacts directly with the set.

Database development Developers can install packages that allow Lazarus to support several database management systems (DBMSes). Programs can interact with a DBMS through code or by components dropped on a form. The following DBMSes are supported out of the box:

dBase and FoxPro, InterBase and Firebird Microsoft SQL Server and Sybase ASE MySQL and MariaDB Open Database Connectivity (ODBC) databases Oracle Database PostgreSQL SQLite

Differences from Delphi Lazarus resembles Delphi in many ways. It supports Component Object Model (COM) since version 2.2.0, and offers most of Delphi's networking functions. However, there are limits to the performance and feature set. Lazarus does not support the following, which Delphi does:

Datasnap (uses Embarcadero proprietary enterprise functions, not a publicly documented system) Dynamically loadable packages .NET libraries (.NET code, however, can invoke Object Pascal code or anything other machine-native library via Platform Invocation Services.) Extensive Microsoft Office connectivity (Lazarus can only open Microsoft Excel with a simple table filled out.) LCL is not fully compatible with VCL. This makes the extensive repository of available VCL widgets inaccessible without conversion. The conversion effort mostly involves some editing, although there are a few fundamental differences. When porting, missing units in the libraries are a considerably bigger problem than incompatibilities between LCL and VCL. Components for Delphi can be converted to work in Lazarus. This can be complex, though less so than for Lazarus versions older than 0.9.30, based on FP 2.4.x. On Windows, the default size of an executable file is larger than the Delphi 6 or 7 equivalent, as Lazarus stores debug information within the executable, rather than as separate files. Starting with version 0.9.30, Lazarus supports external debug symbols via compiler options. Thus, program file sizes can be significantly reduced. Alternatively, debug info can be stripped from EXEs (e.g. using a port of the UNIX strip command).

… excerpt ends here. Continue reading the full article.

Illustrations

Lazarus (software) illustration
Lazarus (software) illustration
Lazarus (software): Architecture of the Lazarus Component Library
Architecture of the Lazarus Component Library
Lazarus (software): Interaction of class libraries and widgetsets in Lazarus and Free Pascal
Interaction of class libraries and widgetsets in Lazarus and Free Pascal

Worked examples

Example 1 — a first encounter with Lazarus (software)

Start with the simplest possible case. Write down what Lazarus (software) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lazarus (software) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lazarus (software) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lazarus (software)

In research
Lazarus (software) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lazarus (software) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lazarus (software) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1999 software, Cross-platform free software, Cross-platform software, so understanding it makes those chapters shorter.
In everyday life
Look for Lazarus (software) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Lazarus (software)” →

How to study Lazarus (software) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lazarus (software) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lazarus (software) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lazarus (software) in simple terms?

Lazarus is a cross-platform, integrated development environment (IDE) for rapid application development (RAD) using the Free Pascal compiler. Its goal is to provide an easy-to-use development environment for developing with the Object Pascal language, which is as close as possible to Delphi.

Why does Lazarus (software) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lazarus (software)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lazarus (software).

Tags

  • 1999 software
  • Cross-platform free software
  • Cross-platform software
  • Free Pascal
  • Free computer libraries
  • Free integrated development environments
  • Free software programmed in Pascal
  • Integrated development environments
  • Linux integrated development environments
  • MacOS programming tools
  • Pascal (programming language)
  • Pascal programming language family

Keep exploring