[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Perlang 0.9.0 released



Hi,

Perlang 0.9.0 was released yesterday. Below you will find the release 
notes (also available here if you prefer to read it in your web browser: 
https://gitlab.perlang.org/perlang/perlang/-/releases/v0.9.0)

The documentation on the https://perlang.org/learn/the-language/ web 
page is unfortunately out of date right now, and does not describe the 
functionality added in the new version. I'll readily admit that updating 
documentation is not my favourite thing in life, but I've created 
https://gitlab.perlang.org/perlang/perlang/-/work_items/531 (with 🤖) to 
track some of the missing parts. For now, "use the source, Luke" if you 
are curious to learn more about the functionality added in this release.


## [0.9.0] - 2026-10-02
- The ninth public release of Perlang. For the easiest way to install 
this on your machine, see
   https://perlang.org/download/ (currently Linux-only).
- All changes below were made by @perlun
- This release continues rewriting the `PerlangScanner` class in Perlang 
([#505][505]). As part of this, we have also
   added support for returning errors (`T | error`), support for 
nullable unions (`T | null`), a basic `is` operator and
   rudimentary support for OOP interfaces. For the full details, see the 
list below.

### Perlang compiler/`perlang_cli`
- Rewrite `is_digit` and `is_alpha_numeric` in Perlang [[!694][694]]
- Introduce `FunctionOrFieldProperties` parameter record [[!695][695]]
- Unify `CppType` creation to be able to reuse instances [[!696][696]]
- Register `CppType` instances earlier for classes [[!698][698]]
- Move remaining `CppType` registration to `NameResolver` [[!699][699]]
- Add new `FunctionModifier` enum [[!702][702]]
- Rewrite `IToken` and `NumericToken` in Perlang [[!706][706]]

### Language
- Add support for returning errors [[!690][690]]
- Add support for interfaces [[!703][703]]
- Add support for nullable unions + `is` check [[!704][704]]
- Support nullable unions as parameters and class fields [[!705][705]]
- Fix `try` support for method calls [[!708][708]]
- Fix bug with union return types with forward references [[!709][709]]
- Fix bug with multiple functions returning union return types [[!710][710]]
- Fix bug when returning char literals as `char | error` [[!712][712]]
- Fix error handling when string is terminated with `\"` [[!714][714]]
- Support \" in string literals [[!715][715]]

### `stdlib`
- Add native `Posix` class implementation [[!691][691]]
- Add native `Libc` implementation [[!692][692]]
- Add native `Char` implementation [[!693][693]]
- Add `StringBuilder` class [[!713][713]]

### Maintenance
- Fix `make release` rule to build whole solution [[!697][697]]
- Minor whitespace cleanup: c6fee28
- Minor `NameResolver` cleanup [[!700][700]]
- Add language statistics tool: 002a9a1
- Minor formatting cleanup: dba449e

### CI
- Switch to using checked in C++ sources for building Perlang [[!711][711]]
- Fix missing `~/.perlang/nightly/bin/perlang` for certain jobs: fc1306b

### Tests
- Minor exception message cleanup: 5aec020
- Minor test name cleanup: 80aa630
- Minor naming cleanup [[!701][701]]
- Enable `-Werror` and C++ 17 support [[!707][707]]

### Docs, website and installer
- Add Doxygen configuration: b08adf5
- Add funding-related links: 6f91ce6
- Improve Contribute page: 611de5d
- Highlight.js fixes: 257f0ea

[505]: https://gitlab.perlang.org/perlang/perlang/-/work_items/505
[690]: https://gitlab.perlang.org/perlang/perlang/merge_requests/690
[691]: https://gitlab.perlang.org/perlang/perlang/merge_requests/691
[692]: https://gitlab.perlang.org/perlang/perlang/merge_requests/692
[693]: https://gitlab.perlang.org/perlang/perlang/merge_requests/693
[694]: https://gitlab.perlang.org/perlang/perlang/merge_requests/694
[695]: https://gitlab.perlang.org/perlang/perlang/merge_requests/695
[696]: https://gitlab.perlang.org/perlang/perlang/merge_requests/696
[697]: https://gitlab.perlang.org/perlang/perlang/merge_requests/697
[698]: https://gitlab.perlang.org/perlang/perlang/merge_requests/698
[699]: https://gitlab.perlang.org/perlang/perlang/merge_requests/699
[700]: https://gitlab.perlang.org/perlang/perlang/merge_requests/700
[701]: https://gitlab.perlang.org/perlang/perlang/merge_requests/701
[702]: https://gitlab.perlang.org/perlang/perlang/merge_requests/702
[703]: https://gitlab.perlang.org/perlang/perlang/merge_requests/703
[704]: https://gitlab.perlang.org/perlang/perlang/merge_requests/704
[705]: https://gitlab.perlang.org/perlang/perlang/merge_requests/705
[706]: https://gitlab.perlang.org/perlang/perlang/merge_requests/706
[707]: https://gitlab.perlang.org/perlang/perlang/merge_requests/707
[708]: https://gitlab.perlang.org/perlang/perlang/merge_requests/708
[709]: https://gitlab.perlang.org/perlang/perlang/merge_requests/709
[710]: https://gitlab.perlang.org/perlang/perlang/merge_requests/710
[711]: https://gitlab.perlang.org/perlang/perlang/merge_requests/711
[712]: https://gitlab.perlang.org/perlang/perlang/merge_requests/712
[713]: https://gitlab.perlang.org/perlang/perlang/merge_requests/713
[714]: https://gitlab.perlang.org/perlang/perlang/merge_requests/714
[715]: https://gitlab.perlang.org/perlang/perlang/merge_requests/715

-- 
Per Lundberg
Perlang author and maintainer