v0.4.2 #124
Replies: 2 comments
-
I think I might have a use case for CGP to explore. After having read through your blog post about composable constructors and extensible types, i noticed that it may solve a problem I'm grappling when composing isomorphic recursive data structures in my DeepCausality project. When self contained, these are trivial to compose. However, the problem pops up when bundling multiple context and a model in such a way that it can be composed with another bundle... Basically plug and play model composition from multiple sub models. Right now the preliminary model container does nothing for composition yet. I think adding a composition layer with CGP on top of it might do the trick while preserving the ability to swap sub models in and out. Especially the Is there a good starting point other than the blog post to investigate CGP modular composition for this kind of use case? |
Beta Was this translation helpful? Give feedback.
-
Hi Marvin, Yes, certainly we can probably use the extensible builder problem to solve your problem. In the next blog post, I'll also introduce extensible variants, which can probably be used to handle your recursive data structures. Since our last conversation, I have also managed to hide the internals such as
Unfortunately there has been less demand for the low level documentation on using CGP, and more demand for showcasing the problems that CGP solve. So I have spent most of my time writing the blog posts, which is more time consuming than coding or writing documentation. However, I have created a Discord channel for CGP. So you can join there and we can have more interactive and in-depth discussions on how to help solve your problems. I also have more free time recently, so I'm happy to organize some hackathon sessions with you to help you navigate how to use CGP effectively for your project. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Changelog
Datatype-generic Programming Support
DispatchHandlersRef
for dispatching based on enum references - #116MatchWithFieldHandlers
- #120Preset Improvements
Bug Fixes
HasField<Index<{i}>>
for structs with unnamed fields - #115IsProviderFor
trait - #114This discussion was created from the release v0.4.2.
Beta Was this translation helpful? Give feedback.
All reactions