-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rotate release notes as part of the 0.58.2 release
- Loading branch information
1 parent
839ead5
commit 7b5dfbb
Showing
2 changed files
with
52 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## Fedora 39 added as a supported platform | ||
|
||
We've added Fedora 39 as a supported platform. We'll be building ponyc releases for it until it stops receiving security updates at the end of 2024. At that point, we'll stop building releases for it. | ||
|
||
## Add support for MacOS on Apple Silicon | ||
|
||
Back in August of 2023, we had to drop MacOS on Apple Silicon as a supported platform as we had no Apple Silicon test and build environment. We lost our existing environment when we had to migrate off of CirrusCI. | ||
|
||
GitHub recently announced that they now have Apple Silicon MacOS machines so, we are back in business and MacOS on Apple Silicon is once again a supported platform. | ||
|
||
## Fix for potential memory corruption in `Array.copy_to` | ||
|
||
`Array.copy_to` did not check whether the source or destination Arrays had been initialized or whether the requested number of elements to be copied exceeded the number of available elements (allocated memory). These issues would result in potential dereferencing of a null pointer or attempts to access unallocated memory. | ||
|
||
Before this fix, the following code would print `11` then `0`: | ||
|
||
```pony | ||
actor Main | ||
new create(e: Env) => | ||
var src: Array[U8] = [1] | ||
var dest: Array[U8] = [11; 1; 2; 3; 4; 5; 6] | ||
try | ||
e.out.print(dest(0)?.string()) | ||
end | ||
src.copy_to(dest, 11, 0, 10) | ||
try | ||
e.out.print(dest(0)?.string()) | ||
end | ||
``` | ||
|
||
After the fix, this code correctly prints `11` and `11`. | ||
|
||
## Fix esoteric bug with serializing bare lambdas | ||
|
||
Almost no one uses bare lambdas. And even fewer folks end up passing them through the Pony serialization code. So, of course, Red Davies did just that. And of course, he found a bug. | ||
|
||
When we switched to LLVM 15 in 0.54.1, we had to account for a rather large change with how LLVM handles pointer and types. In the process of doing that update, a mistake was made and serializing of bare lambdas was broken. | ||
|
||
We've made the fix and introduced a regression test. Enjoy your fix Red! | ||
|
||
## Add constrained types package to standard library | ||
|
||
We've added a new package to the standard library: `constrained_types`. | ||
|
||
The `constrained_types` package allows you to represent in the type system, domain rules like "Username must be 6 to 12 characters in length and only container lower case ASCII letters". | ||
|
||
To learn more about the package, checkout its [documentation on the standard library docs site](https://stdlib.ponylang.io/constrained_types--index/). | ||
|
||
You can learn more about the motivation behind the package by reading [the RFC](https://github.com/ponylang/rfcs/blob/main/text/0079-constrained-types.md). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +0,0 @@ | ||
## Fedora 39 added as a supported platform | ||
|
||
We've added Fedora 39 as a supported platform. We'll be building ponyc releases for it until it stops receiving security updates at the end of 2024. At that point, we'll stop building releases for it. | ||
|
||
## Add support for MacOS on Apple Silicon | ||
|
||
Back in August of 2023, we had to drop MacOS on Apple Silicon as a supported platform as we had no Apple Silicon test and build environment. We lost our existing environment when we had to migrate off of CirrusCI. | ||
|
||
GitHub recently announced that they now have Apple Silicon MacOS machines so, we are back in business and MacOS on Apple Silicon is once again a supported platform. | ||
|
||
## Fix for potential memory corruption in `Array.copy_to` | ||
|
||
`Array.copy_to` did not check whether the source or destination Arrays had been initialized or whether the requested number of elements to be copied exceeded the number of available elements (allocated memory). These issues would result in potential dereferencing of a null pointer or attempts to access unallocated memory. | ||
|
||
Before this fix, the following code would print `11` then `0`: | ||
|
||
```pony | ||
actor Main | ||
new create(e: Env) => | ||
var src: Array[U8] = [1] | ||
var dest: Array[U8] = [11; 1; 2; 3; 4; 5; 6] | ||
try | ||
e.out.print(dest(0)?.string()) | ||
end | ||
src.copy_to(dest, 11, 0, 10) | ||
try | ||
e.out.print(dest(0)?.string()) | ||
end | ||
``` | ||
|
||
After the fix, this code correctly prints `11` and `11`. | ||
|
||
## Fix esoteric bug with serializing bare lambdas | ||
|
||
Almost no one uses bare lambdas. And even fewer folks end up passing them through the Pony serialization code. So, of course, Red Davies did just that. And of course, he found a bug. | ||
|
||
When we switched to LLVM 15 in 0.54.1, we had to account for a rather large change with how LLVM handles pointer and types. In the process of doing that update, a mistake was made and serializing of bare lambdas was broken. | ||
|
||
We've made the fix and introduced a regression test. Enjoy your fix Red! | ||
|
||
## Add constrained types package to standard library | ||
|
||
We've added a new package to the standard library: `constrained_types`. | ||
|
||
The `constrained_types` package allows you to represent in the type system, domain rules like "Username must be 6 to 12 characters in length and only container lower case ASCII letters". | ||
|
||
To learn more about the package, checkout its [documentation on the standard library docs site](https://stdlib.ponylang.io/constrained_types--index/). | ||
|
||
You can learn more about the motivation behind the package by reading [the RFC](https://github.com/ponylang/rfcs/blob/main/text/0079-constrained-types.md). | ||
|
||