Harbour MiniGUI with 64-bit ZIG compiler

124 views
Skip to first unread message

Grigory Filatov

unread,
Oct 21, 2025, 10:03:54 AM (6 days ago) Oct 21
to Harbour Minigui
Good afternoon,

Let's continue a good news.

I've successfully tested the ZIG compiler snapshot 2025-10-17 with the newest MiniGUI build (64-bit). The support of this new compiler have been recently added to the Harbour. This compiler is compatible with MinGW binary as well.

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r2510192048)
Compiler: LLVM/Clang C 21.1 (https://github.com/ziglang/zig-bootstrap 1b08653ddc0b2770f51
Platform: Windows 11 or newer 10.0.22000
PCode version: 0.3
ChangeLog last entry: 2025-10-19 22:48 UTC+0200 Aleksander Czajczynski (hb fki.pl)
ChangeLog ID: 2f8dcbcf6097ba02e7b1a316ba0a6991342ba96a
Built on: Oct 20 2025 13:42:43

I've attached speed test results in the MT mode for your review.

And at the end there is a screenshot:
image.png

Is this interesting to anyone?

Your comments are very welcome!

Regards,
Grigory
hbspeed.txt

Marcos Jarrin

unread,
Oct 22, 2025, 9:55:17 AM (5 days ago) Oct 22
to Harbour Minigui
Hello everyone

This topic about using Zig in Harbour is quite interesting because Zig is gaining popularity as a modern and efficient language for systems programming. For those who are not familiar with Zig, here is a brief explanation in a few words:

Zig is a general-purpose programming language designed to offer a better and safer experience than C, while maintaining the control and performance of low-level languages. It has no hidden control flow or macros, making writing predictable and safe code easier. Additionally, it includes an integrated build system with native support for cross-compilation, which is ideal for developers working on multi-platform development.

Its ability to interoperate directly with C code makes it very attractive for modernization or integration projects, such as many developed in Harbour.


zig.jpg

Regards,
Marcos Jarrin

Grigory Filatov

unread,
Oct 23, 2025, 11:39:45 AM (4 days ago) Oct 23
to Harbour Minigui
Hello Marcos,

Thanks for your kind feedback.

I've attached the brief explanation elaborates on what the Zig compiler is, how it works as a C compiler replacement, and the extensive advantages this brings.

What's your opinion? Can this Zig compiler be considered a replacement for MinGW C in Harbour?

Thank you for your attention.

Regards,
Grigory

среда, 22 октября 2025 г. в 15:55:17 UTC+2, marcos...@gmail.com:
What Zig Compiler Is.docx
Reply all
Reply to author
Forward
0 new messages