Settings

Theme

Context-Generic Programming: a new modular programming paradigm for Rust

contextgeneric.dev

7 points by maybevoid a year ago · 2 comments

Reader

maybevoidOP a year ago

Hello 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 a year ago

    Looks 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection