Context-Generic Programming: a new modular programming paradigm for Rust
7 points by maybevoid 6 months ago | 2 comments- maybevoid 6 months agoHello Hacker News community! I would like to announce and share my work on Context-Generic Programming [1], a new programming paradigm for writing modular code in Rust.
CGP allows strongly-typed components to be implemented and composed in a modular, generic, and type-safe way. This is done by making use of Rust's trait system to wire up components and simplify dependency management using blanket implementations.
More details about CGP is available on the project website [1], and the announcement blogpost [2].
Please feel free to ask me any question in this thread. I am happy to discuss in details about the project here.
[1] https://contextgeneric.dev/
[2] https://contextgeneric.dev/blog/early-preview-announcement/
- marshray 6 months agoLooks interesting.
May I suggest for contextgeneric .dev that you put the Hello World example right up front? People evaluating or considering such a system will likely be busy.
- marshray 6 months ago