Repository navigation
π Blaise v0.16.0 is out β hello, Windows (and a debugger in the box)! #271
graemeg
announced in
Announcements
Replies: 1 comment 1 reply
|
Thank you for this great work; it is amazing that a single simple stand-alone compiler can do this all, and even on multiple targets! I tried to use your Patreon gift link to do a prepaid gift for a year, but Patreon does not accept a Paypal payment using a prepaid wallet. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I'm delighted to announce Blaise v0.16.0. Two big things this time: Windows x86-64 is now a shipped target, and every macOS, Linux and FreeBSD archive now includes the pdr debugger, so you can step through a Blaise program straight after unpacking.
Here's what the last 396 commits brought.
πͺ Windows x86-64
--target windows-x86_64writes PE32+ executables with Blaise's own linker, from macOS, Linux or FreeBSD. There's a Windows zip alongside the tarballs: unzip it and runblaise.exe --source hello.pas --output hello.blaise.exerebuilds itself byte-identical on Windows 11 and on CI's Windows runners.ExpandFileNamebehave as Windows users expect.π A debugger in the box
The macOS, Linux and FreeBSD archives now carry pdr, the OPDF debugger, and pdr-dap, its Debug Adapter Protocol server for IDEs (it's what Hexagram's debugger runs on - Hexagram is our new IDE being released soon):
pdr now debugs macOS arm64 programs too, including breakpoints hit on any thread. On Linux it doesn't yet stop at breakpoints in threads other than the main one; that's next on its list.
pdr for Windows is coming soon.
π§Ή Exceptions that clean up after themselves
A raised exception now releases everything it unwinds past: locals, a function's managed
Result, call-argument and string temporaries, and the main program's own values. Code that raises no longer leaks.β¨ Language
Generic arguments are inferred from the call:
Dynamic arrays join and edit like strings, with FPC's semantics:
A friendly warning when closures made in a loop all share one variable:
Also:
modon floats (7.5 mod 2.0is1.5), typed-pointer arithmetic that counts in elements, static vars of generic types, and dynamic-array indices checked at run time.One integer width to think about. Lengths, indices, counts and unhinted literals are all
Intnow, and string lengths are 64-bit. The classic names (Integer,Doubleand friends) moved touses ClassicPascalTypes, andcdeclis the only calling-convention directive. Porting code?cp-migratepoints out the calling conventions to delete, and BlaiseGuard suggests the new type names.π stdlib
IO.Process runs child processes:
JSON gains typed accessors and dotted paths:
And more: IO.Watch for file-change notifications,
FindFiles,Randomand a reproducibleTRandom,ReadLnfor command-line tools,TDictionary.Keys/Values, and operators onTDecimalandTMoney.One behaviour change to note:
WriteFileandAppendFilenow fail loudly. A failed write raisesEInOutErrorinstead of quietly doing nothing.π§ For IDEs and tools
--check --diagnostics=jsonreports problems as JSON, one per line, without building anything.--emit-xrefwrites every identifier use and its declaration, and--emit-tokensthe lexer's tokens.blaise.testingrunners accept--format=json.Hexagram, the new Blaise IDE, is built on all of these.
π By the numbers
π¦ Get it
The macOS arm64, Linux x86-64 and FreeBSD x86-64 tarballs and the Windows x86-64 zip are on the GitHub Releases page. Each includes everything needed to compile
hello.passtraight away, plus the debugger on macOS, Linux and FreeBSD.On macOS the binaries are ad-hoc signed, not notarised. If the browser download is blocked, run
xattr -dr com.apple.quarantine .once in the extracted folder. On Linux, pdr needs glibc 2.34 or later; the compiler itself needs nothing.The full list of changes is in the changelog. Thank you to everyone who tried the pre-release builds, reported bugs and sent fixes. It makes a real difference.
A special thank you, too, to my Patreon sponsors. Your support gives me the time to keep Blaise moving forward, and I'm truly grateful for it.
Onwards to v0.17! π
Built with β€ for the Pascal community.
All reactions