Releases: heckj/Lindenmayer
0.8.0
Swift6 compatibility/strict concurrency update
When I originally created this package, async/await wasn't yet available. In supporting strict concurrency and the upcoming Swift 6 release, I've updated the Swift language support to require at least Swift 5.8, and changed the API to utilize async/await on the modules that produce results, with either a custom definition file for the Lindenmayer system, or leveraging the stochastic (random choices) features available in some of the Lindenmayer systems.
Known Issues
- there's one remaining Swift6 compatibility issue, complaining that I SwiftUI's ScrollViewProxy isn't
Sendable
, even with a@preconcurrency
import into the view that uses it (this is in the LindenmayerViews module). I suspect it will be marked asSendable
in the future, but am hesitant to apply my own assertions on that front, so I'm leaving it alone as the final remaining Swift6 compatibility issue.
What's Changed
- use @_exported to expand SwiftUI Angle to be easier to find by @heckj in #39
- Experimental skip synthesized symbols by @finestructure in #40
- updating swift tooling to prep for Swift 6 concurrency updates by @heckj in #41
- Concurrency lockdown by @heckj in #42
New Contributors
- @finestructure made their first contribution in #40
Full Changelog: 0.7.3...0.8.0
0.7.3
Dependency updates and transitive fixes
Debugging view
(0.7.0) Ergonomics update
BREAKING CHANGES
Writing rules ergonomic updates:
The process of writing LSystems has been improved by including factory/wrapper methods on the various types of LSystems (basic, RNG, Parameters, RNG+Parameters), and now all the rules are explicitly typed. This in turn allows for the closures that produce the rewriting for the relevant modules to be explicitly typed, so there's no longer a need to down-cast from the existential Module type into the specific kind of module in order to use the types parameters when computing what replaces it.
The rules all now also have additional evaluation criteria enabled through an optional (typed) closure so that you can choose if rules are activated not only by the types they match, but in addition with a closure that you provide that can interrogate the modules that were matched.
Initial experimental release
(2021-12-23)
The initial release of Lindenmayer.
The library supports creating context-free and contextual parametric L-systems. Built-in modules support 2D and basic 3D visualizations, and some reference implementations of previously described L-systems.
The API is by no means finished, complete, or in a final form. There are several places where I'm considering how to make creating L-systems written in the Swift language more ergonomic, and additional features that I want to add for broader support (such as stochastic production rules).
This edition is suitable for experimentation, and I certainly welcome feedback in the discussion section of the Github repository.
Full Changelog: https://github.com/heckj/Lindenmayer/commits/0.5.0