r/freepascal • • May 06 '25

The Lazarus IDE 4.0 is now available

26 Upvotes

Lazarus 4.0 is released, built with Free-Pascal 3.2.2

Download there: https://www.lazarus-ide.org/


r/freepascal • • Jan 26 '26

[ANN] NDXSQLite - Professional SQLite Library for Free Pascal/Lazarus

18 Upvotes

I'm excited to share NDXSQLite, a modern SQLite wrapper I've been working on for Free Pascal and Lazarus.

Features

  • Native SQLite3 API - Direct bindings, no SQLDB dependency

  • Thread-safe - Connection pooling with statistics

  • SQLCipher support - Transparent AES-256 database encryption

  • Schema migrations - Version-controlled database evolution

  • TDataSet compatible - Works with Lazarus DB-aware controls

  • Cross-platform - Linux, Windows, macOS (including Apple Silicon)

What's included

  • 30+ classes covering all SQLite features

  • 149 console examples + 10 GUI examples

  • Full documentation (API reference, architecture, security guide)

  • Comprehensive test suite

Quick example

uses ndxsqliteconnection, ndxsqliteconnectionoptions;

var

Conn: TNDXSQLiteConnection;

begin

Conn := TNDXSQLiteConnection.Create('myapp.db');

try

Conn.Open;

Conn.ExecuteNonQuery('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)');

Conn.ExecuteNonQuery('INSERT INTO users (name) VALUES (?)', ['Alice']);

WriteLn('Count: ', Conn.ExecuteScalar('SELECT COUNT(*) FROM users'));

finally

Conn.Free;

end;

end.

GitHub: https://github.com/NDXDeveloper/NDXSQLite

License: MIT

Feedback and contributions welcome!


r/freepascal • • Jun 30 '26

Digging Into Free Pascal: My Journey Beyond the IDE

Thumbnail
youtu.be
17 Upvotes

New video... I'm going on a treasure hunt (of sorts) through Free Pascal and exploring what really happens under the hood when you step outside the IDE.

If anyone else is working IDE‑free or doing CLI‑based Pascal development, I’d love to hear your workflow.


r/freepascal • • Jun 12 '26

Lazarus 4.8 with Free Pascal 3.2.2 is released

17 Upvotes

The Lazarus IDE with FPC 3.2.2 works on Windows, Mac, Linux and is a free download at:

https://www.lazarus-ide.org/


r/freepascal • • Jan 08 '26

3nity media - A cross-platform media player built with Lazarus/Free Pascal

Thumbnail
gallery
17 Upvotes

Hi everyone!

I'd like to share a project I've been working on: 3nity media, a lightweight media player built entirely with Lazarus and Free Pascal.

What is it?

A modern media player powered by libmpv, featuring:

  • Audio/video playback with hardware acceleration

  • Playlist management (M3U, M3U8, PLS, XSPF)

  • Internet radio streaming (13,000+ stations via Icecast)

  • 10-band audio equalizer with presets

  • Audio visualizations

  • DVD and Blu-ray folder playback

  • Drag & drop support

  • 100+ languages supported

  • 1,686 automated tests

Technical details:

  • Built with Lazarus 3.6 / FPC 3.2.2

  • Uses libmpv for media playback

  • Qt5 widgetset on Linux, Win32 on Windows

  • Cross-platform: Linux (DEB, AppImage, Snap) and Windows

Links:

Install on Linux:

sudo snap install 3nity-media

I'd love to hear your feedback, suggestions, or questions about the implementation!


r/freepascal • • Jun 29 '25

Shrinking Pascal Code: From 1MB to 39KB with Lazarus Compiler Settings

16 Upvotes

Tuning your compiler can make your apps faster and greener In this one, I take a simple Pascal primes program from 1MB down to 39KB using Lazarus IDE and Free Pascal. Less bloat. Less energy. Smarter code. -- silver pascal coder

🔗 https://youtu.be/Rby8OhU18Fk


r/freepascal • • Feb 05 '24

Free Pascal Resources: Website, Source Control, Official Docs, Introduction, Handbook, Curated list, Development Env

16 Upvotes

r/freepascal • • 24d ago

Freepascal for ESP32-S31, a dual-core rv32imafc SoC

Thumbnail
gallery
15 Upvotes

Just want you know that I have got Freepascal to compile against ESP-S31, a RISC-V SoC that supports single precision float point only. The binutils comes with Espressif IDF v6.1. The target board is ESP Mosaico, a battery-powered hardware platform featuring touch screen, speaker and microphone, powered by the ESP32-S31 chip. Hope this post finds you well because reddit keeps removing my posts.


r/freepascal • • Sep 25 '19

Free Pascal has now a WebAssembly backend!

Thumbnail lists.freepascal.org
15 Upvotes

r/freepascal • • 24d ago

[Lazarus] CX Components: A set of UI components (Explorer views, Monaco Editor, Tabbed Browser, etc.) for Windows

14 Upvotes

Hello everyone.

I made this post to let you know that there are Lazarus fans in Japan as well.

I'm a big fan of Lazarus and Free Pascal, but because information and components are limited in my area, I decided to create my own UI component collection, "CX Components."

This component collection is designed to allow you to easily implement the following functions simply by dragging and dropping them directly into your form:

Explorer-like tree view and list view

Not just display, but you can also copy, move, delete, and rename files, and of course, it supports drag and drop.

You can incorporate the functionality of Windows Explorer directly into your own app. And you don't have to write any code at all.

A tabbed web browser using WebView2

I created this because I wanted to create a tabbed browser for myself.

With this, you can also create your own original browser.

An advanced editor using Monaco Editor and SynEdit (Markdown preview, syntax highlighting, etc.)

I wanted Monaco Editor for Lazarus, so I created it.

It also includes a minimap and preview. Simply paste the code, and it will automatically save, search, and replace. You can also separate and merge tabs by dragging and dropping them.

And best of all, it works without writing a single code!

Sidebar, tab control, Firefox-style bookmark management

I wanted to create a modern app, so I made this.

Currently, it's only available for Windows and is released as open source under the MIT license. For the repository and details, please see here:

GitHub: https://github.com/aotan083/CXComponents

We welcome your opinions and feedback!


r/freepascal • • May 27 '22

Feature announcement: Function References and Anonymous Functions

Thumbnail forum.lazarus.freepascal.org
14 Upvotes

r/freepascal • • Aug 16 '25

Code With Me | Database App in Free Pascal (Tutorial Turns Into Unfiltered Chaos)

13 Upvotes

Next video starts as a tutorial for a "DB App", then turns into live coding session after a couple of IDE hiccups and my own blunders. Sigh! Anyways, come along for the ride and see how it all unfolds:

👉 https://youtu.be/0gyg05GgnNk


r/freepascal • • Oct 02 '22

Lazarus 2.2.4 available

Thumbnail
forum.lazarus.freepascal.org
13 Upvotes

r/freepascal • • Jan 06 '22

Lazarus 2.2.0 released, based on Free Pascal 3.2.2 and featuring multiple improvements of IDE, LCL, widgetsets, and tools.

Thumbnail forum.lazarus.freepascal.org
13 Upvotes

r/freepascal • • Mar 01 '26

Lazarus IDE released in version 4.6

Thumbnail forum.lazarus.freepascal.org
12 Upvotes

r/freepascal • • Feb 16 '26

Yes, Fallout 1… in Object Pascal 😄

Thumbnail
github.com
12 Upvotes

r/freepascal • • Oct 04 '25

Free Pascal RTTI: Convert Objects to JSON (and Back Again!)

Thumbnail
youtu.be
12 Upvotes

Learn how to use RTTI in Free Pascal to easily convert objects to JSON and back again... no manual code needed. Watch here: https://youtu.be/iRg3jJ9z0mo


r/freepascal • • Sep 11 '25

Networking Made Easy in Free Pascal (and Delphi) | Indy TCP Server & Client Introduction

Thumbnail
youtu.be
12 Upvotes

A practical intro to TCP client and server programming using Indy. Shows TIdTCPServer and TIdTCPClient in action with example code in FreePascal. The components, event handlers and most of the code work in Delphi as well.


r/freepascal • • Mar 30 '26

Experimental fork of Lazarus, Open source, with an eye to evolving a new framework

11 Upvotes

https://github.com/wpostma/eleazar-free-pascal

The purpose of this fork is to give ideas and fixes time to work. I will extract useful minimal safe PRs from this and try to PR them upstream when I'm fully confident in them, and I hope to improve Lazarus's automated testing and unit testing, by contributing some tools back to the parent project, when proven useful. Already I have isolated some nasty GTK wrapper bugs in the LCL/GTK2 code.

The experience of using Lazarus, especially the GTK variant on Linux, and the Win32 variant and Mac variants has always been "close but not good", and I think now, with a bit of help from my friendly assistant claude, I can generate and review very comprehensive automated unit tests, and even end to end GUI testing, built into the LCL and plugged into Lazarus itself, to find issues.

The initial "showstopper" bug in upstream lazarus is the horrible state of the GTK2 wrappers and the LCL, out of the box on most modern window managers, including Ubuntu 24.04. Mutter is a hilarious name for one of the most opinionated and broken desktop window managers of all time, but which users expect apps to accept and be tolerant of. Clearly not the kind of battle that Lazarus devs have been interested in battling, but me, I'm weird.

The docked mode (bigide) in Lazarus also feels half finished, and I'm going to finish it my way, and I don't honestly care if the upstream devs like how I think docking IDEs should be or not. I'm building it out my way. I suspect I'll be vendoring the GTK2 wrapper and rewriting it and renaming it ETK2. GTK2 is the worst widget toolkit ever made, except for all the other ones, they say. I want full control over theming, non client painting, and everything I had in the VCL on Windows, but for both Mac and and Linux, and to look 100% native, or 100% custom, as I decide, without changing out back ends.


r/freepascal • • Jan 31 '26

DCPcrypt v2.0.5 — Cryptographic Component Library for Free Pascal/Lazarus (MIT, pure Pascal, cross-platform)

Thumbnail
gallery
11 Upvotes

Hey everyone,

I'm releasing DCPcrypt v2.0.5, a cryptographic component library for Lazarus and Free Pascal. It's a maintained continuation of David Barton's original Delphi library, fully ported to LCL with new features and a complete test suite.

◈ What's inside

  • 20 cipher algorithms — Rijndael (AES), Blowfish, Twofish, Serpent, DES, 3DES, RC4, RC5, RC6, MARS, IDEA, Cast128, Cast256, Misty1, Ice, TEA, Gost...

  • 10 hash algorithms — SHA-1, SHA-256, SHA-384, SHA-512, MD5, RipeMD-128, RipeMD-160, Tiger, Haval, MD4

  • 6 block cipher modes — ECB, CBC, CFB8bit, CFBblock, OFB, CTR

  • Stream encryption with salt + IV + progress callbacks

  • Base64 encoding/decoding

  • Pure Pascal — no external C libraries, no DLLs

  • Cross-platform — Linux, Windows, macOS

◈ Design philosophy

All ciphers descend from TDCP_cipher and all hashes from TDCP_hash. You can swap any algorithm for another with minimal code changes. InitStr takes a passphrase and any hash class for key derivation, so switching from Rijndael+SHA256 to Twofish+SHA512 is a one-line change.

◈ What's new in v2.0.5

  • GUI examples ported from VCL to LCL (string encryption, threaded file encryption with progress bar)

  • Console demo programs

  • 282 automated functional tests covering all algorithms

  • Makefile for command-line builds

  • Docker-based CI pipeline (no SourceForge dependency)

  • Full English documentation (API reference, contributing guide)

  • SPDX license headers on all source files

  • Detailed comments on all 31 source units

◈ Links

MIT licensed. Works with FPC 3.2.0+ and Lazarus 2.0+.

Feedback, issues, and contributions are welcome!


r/freepascal • • May 27 '22

Lazarus version 2.2.2 published (bugfix release)

Thumbnail forum.lazarus.freepascal.org
11 Upvotes

r/freepascal • • Apr 03 '20

FPC 3.2.0RC1 released!

11 Upvotes

Hello,

We have placed the first release candidate of the Free Pascal Compilerversion 3.2.0 on our ftp servers.

You can help improve the upcoming 3.2.0 release by downloading andtesting this release. If you want you can report what you have done here:http://wiki.freepascal.org/Testers_3.2.0 or in the maillist.

Changes that may break backwards compatibility will be documented at:http://wiki.freepascal.org/User_Changes_3.2.0

Downloads are available at the main FTP server,

ftp://ftp.freepascal.org/pub/fpc/beta/3.2.0-rc1/

Enjoy!

The Free Pascal Compiler Team

For an overview of what is new see

https://wiki.freepascal.org/FPC_New_Features_3.2


r/freepascal • • Jun 26 '24

The Silver Coder: My first look at Lazarus and Free Pascal

10 Upvotes

As a Delphi developer, I'm checking out Lazarus and Free Pascal! This video is a first look for me, diving into the free IDE (Lazarus) and the compiler (Free Pascal) that powers it. We'll see how to build a basic application and explore what cross-platform development feels like coming from a Delphi background.

Spoiler - There is nothing wrong with it, just getting used to the "older" (figurately speaking) look when you come from a Delphi background. In fact, perhaps a little more robust than Delphi?

https://youtu.be/jsLHkWExHsI

A written reflection can be found here:

https://timcoatesinsights.wordpress.com/2024/06/26/reflecting-on-my-first-experience-with-lazarus-and-free-pascal/


r/freepascal • • Apr 22 '26

VecDraw v1.2 — Vector Drawing Editor for Retro Programming

Thumbnail
retronick2020.itch.io
9 Upvotes

r/freepascal • • Feb 21 '21

Kryftolike - a FOSS roguelite hide-and-seek game made in FreePascal+Lazarus and Castle Game Engine

9 Upvotes

Kryftolike is a hide-and-seek game where you hide from monsters and seek treasure in an infinite procedurally-generated maze, originally made as a submission for Finally Finish Something Jam 2021. The game is made in FreePascal, Lazarus and Castle Game Engine, originally it was supposed to be just an example of efficient batched rendering of 2D images, but it ended up a complete playable game.

Download for Windows, Linux and Android: https://decoherence.itch.io/kryftolike

Source code: https://gitlab.com/EugeneLoza/kryftolike