Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
8d71265
Draft Incoherent Rust blog post
soareschen Mar 29, 2026
ebadc40
Use fn pointer directly without &'static
soareschen Apr 28, 2026
31f393f
Add section for incoherent functions
soareschen Apr 28, 2026
3d3c400
Write coeffect section
soareschen Apr 30, 2026
427db1e
Fix missing D param
soareschen May 6, 2026
8c7a5b5
Revise TIR sections
soareschen May 12, 2026
38e8a31
Minor edits
soareschen May 13, 2026
cadb80d
New abstract type section
soareschen May 14, 2026
4d7bd41
Revise the incoherent-Rust post for the current discussion
soareschen Nov 25, 2026
e7d439b
Revise the incoherent-Rust post's wording and examples
soareschen Nov 25, 2026
d73c145
Check the incoherent-Rust post's `Name` snippets on nightly
soareschen Nov 25, 2026
f1a67de
Drop the incoherent-Rust post's TIR lowering of the CGP example
soareschen Nov 25, 2026
0f23e50
Drop the release numbers from the incoherent-Rust post
soareschen Nov 26, 2026
a1cdd25
Bring the Rust-proposals page up to the current discussion
soareschen Nov 26, 2026
a70c44c
Add the Traits without coherence comparison
soareschen Nov 26, 2026
04f801c
Link the incoherent-Rust post to the Traits without coherence page
soareschen Nov 26, 2026
1f7d02d
Tighten the Traits without coherence page
soareschen Nov 26, 2026
02af04f
Revise the writing of the two comparison pages' new prose
soareschen Nov 26, 2026
6ce6e53
Narrow the Traits without coherence page to four systems
soareschen Nov 26, 2026
9d77222
Remove the Cairo section from the Rust-proposals page
soareschen Nov 26, 2026
0c2ca46
Map higher-order providers to generic impls on the Rust-proposals page
soareschen Nov 26, 2026
5661142
Align the incoherent-Rust post's lessons with its related-work list
soareschen Nov 26, 2026
4432616
Restyle the incoherent-Rust post's wording
soareschen Nov 26, 2026
7a86760
Ground the Haskell lesson in the incoherent-Rust post
soareschen Nov 26, 2026
fbe4f96
Revise the incoherent-Rust post's prose for flow
soareschen Nov 26, 2026
6c658a2
Add an author's note on when the incoherent-Rust post was written
soareschen Nov 26, 2026
ecfadd9
Revise the incoherent-Rust post's author's note
soareschen Nov 26, 2026
2a36f8d
Make the post the subject of the incoherent-Rust author's note
soareschen Nov 26, 2026
0d70f77
Make each sentence's topic its subject in the incoherent-Rust post
soareschen Nov 26, 2026
5bfda34
Name what each pronoun refers to in the incoherent-Rust post
soareschen Nov 26, 2026
933f3cf
Link the incoherent-Rust post to the pages its topics have
soareschen Nov 26, 2026
32c344b
Present CGP as a testing ground in the incoherent-Rust post
soareschen Nov 27, 2026
4837936
Apply the communication strategy across the incoherent-Rust post
soareschen Nov 27, 2026
5bf015b
Correct the incoherent-Rust post's account of carried values
soareschen Nov 27, 2026
35df47e
Restyle the incoherent-Rust post with natural writing
soareschen Nov 27, 2026
d672255
Restyle the incoherent-Rust post again with natural writing
soareschen Nov 27, 2026
8fa8a2d
Add the Type-level tables concepts page
soareschen Nov 27, 2026
801577c
Move the call trace from Consumer and provider traits to Type-level t…
soareschen Nov 27, 2026
89f5111
Explain IsProviderFor on Checking your wiring
soareschen Nov 27, 2026
9874577
Link Type-level tables from the Concepts pages it underpins
soareschen Nov 27, 2026
4704103
Develop the coeffect reading on the algebraic-effects comparison
soareschen Nov 27, 2026
e20fb2d
Simplify the incoherent-Rust post against the revised Concepts pages
soareschen Nov 27, 2026
2e65cde
Restore the call trace on Consumer and provider traits
soareschen Nov 28, 2026
0354c22
Explain namespaces as tables written from the key side
soareschen Nov 28, 2026
933b4ba
Rewrite Type-level tables in plain Rust
soareschen Nov 28, 2026
88519d9
Keep the value-level tables in globals on Type-level tables
soareschen Nov 28, 2026
1cc7406
Tighten the revised Concepts pages on tables and namespaces
soareschen Nov 28, 2026
641d86a
Link each Type-level tables section to its CGP construct
soareschen Nov 28, 2026
3d548b2
Show the cycle and drop two clefts on Type-level tables
soareschen Nov 28, 2026
693fb9a
Smooth the prose of Type-level tables and Namespaces
soareschen Nov 28, 2026
1f5c5e3
Clarify pronouns and subjects on Type-level tables and Namespaces
soareschen Nov 28, 2026
b88bc95
Rename HasStaticString to HasStaticStringFor on Type-level tables
soareschen Nov 28, 2026
6db7644
Add Prototype chains to Type-level tables
soareschen Nov 28, 2026
e9c9e24
Rewrite Dynamic dispatch around how a call finds its code
soareschen Nov 28, 2026
b342b87
Link the prototype chain from the pages that describe delegation
soareschen Nov 28, 2026
fd699fb
Tighten claims on the Dynamic dispatch comparison
soareschen Nov 28, 2026
899050d
Answer Prototype chains with the keyed trait for one key
soareschen Nov 28, 2026
a75e3dc
Use the keyed lookup as the Dynamic dispatch running example
soareschen Nov 28, 2026
71d7208
Clarify four sentences on the Dynamic dispatch comparison
soareschen Nov 28, 2026
5eb1b26
Assert the prototype chain against type_name on Type-level tables
soareschen Nov 28, 2026
6b5c10d
[Comparisons] Explain dynamic dispatch through one greeting
soareschen Nov 28, 2026
a770ffc
[Comparisons] Split two passages on the Dynamic dispatch page
soareschen Nov 28, 2026
439763d
[Comparisons] Tighten the Dynamic dispatch page after review
soareschen Nov 28, 2026
f2aba36
[Comparisons] Drop C++ and multiple dispatch from Dynamic dispatch
soareschen Nov 28, 2026
74f2983
[Comparisons] Name a silent field failure on Dynamic dispatch
soareschen Nov 28, 2026
4145e72
[Comparisons] Smooth the Dynamic dispatch page's prose
soareschen Nov 28, 2026
30e47bb
[Comparisons] Smooth the Dynamic dispatch page's prose again
soareschen Nov 28, 2026
e4fea02
Show the overlap bypass with a self-targeted Serialize
soareschen Nov 28, 2026
e442098
Conclude the context-as-dictionary section with the desugaring
soareschen Nov 28, 2026
597347f
Explain Nadrieril's capability traits in the zero-arity section
soareschen Nov 28, 2026
bed678f
Link the incoherent-Rust post to its sources at every mention
soareschen Nov 28, 2026
9d1141f
Link the incoherent-Rust post's cross-references to their sections
soareschen Nov 28, 2026
3067154
Call the incoherent-Rust post's zero-arity traits selfless traits
soareschen Nov 28, 2026
b857d82
Revise the incoherent-Rust post's prose for natural reading
soareschen Nov 28, 2026
8a5f2a1
Revise the incoherent-Rust post's plans for working with Rust
soareschen Nov 28, 2026
ec29f36
Reorganize the incoherent-Rust post and complete its front matter
soareschen Nov 28, 2026
ef2fe1e
Revise the reorganized incoherent-Rust post's prose
soareschen Nov 28, 2026
5873049
Add the provenance line to the incoherent-Rust post
soareschen Nov 28, 2026
02089cc
Make the page the subject of every docs footer
soareschen Nov 28, 2026
af7c5dd
Remove the section on page markings from the AI disclosure
soareschen Nov 28, 2026
3608a84
Drop C++ and multiple dispatch from the dispatch routing
soareschen Nov 28, 2026
d9d6e35
Title Dynamic dispatch and date the post on publication
soareschen Nov 28, 2026
8bc0a8d
Route the Concepts pages to the incoherent-Rust post
soareschen Nov 28, 2026
6bf2ed0
Cite the incoherent-Rust post where the pages meet it
soareschen Nov 28, 2026
a68d7be
Cite the incoherent-Rust post only where incoherence is the subject
soareschen Nov 28, 2026
98f51b5
Restore the final newline the footer rewrite dropped
soareschen Nov 28, 2026
82e81fe
Smooth the sentences that cite the incoherent-Rust post
soareschen Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 23 additions & 1 deletion .github/workflows/test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ permissions:
# To minimize supply-chain exposure this workflow uses only GitHub's own
# first-party actions. Each job runs a check the repository's documentation
# lists: the site build from README.md, and the snippet tests from
# example-code/README.md.
# example-code/README.md and example-code-nightly/README.md.
jobs:
build:
name: Build the site
Expand Down Expand Up @@ -72,3 +72,25 @@ jobs:
- name: Run the snippet tests
working-directory: contextgeneric.dev/example-code
run: cargo test -- --skip rejected_snippets_do_not_compile

example-code-nightly:
name: Nightly snippet tests
runs-on: ubuntu-latest
timeout-minutes: 30
env:
CARGO_TERM_COLOR: always
steps:
- name: Check out the website
uses: actions/checkout@v4
with:
path: contextgeneric.dev
# `example-code-nightly/rust-toolchain.toml` pins the nightly whose
# unstable features the snippets need; rustup installs it from there.
- name: Install the pinned nightly toolchain
working-directory: contextgeneric.dev/example-code-nightly
run: rustup toolchain install
# The snippets that need a nightly feature are compiled here. The
# compile-fail snapshots are skipped, as in the stable job.
- name: Run the nightly snippet tests
working-directory: contextgeneric.dev/example-code-nightly
run: cargo test -- --skip rejected_snippets_do_not_compile
11 changes: 8 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ Each kind of task has a guide in the knowledge base's `website/` section. Read i
- **Adding or moving a page, or writing a blog post:** `writing-guides/README.md` and
`information-architecture.md`.
- **Changing the theme or a page's styles:** `visual-design.md`.
- **Changing the build, the navigation, or the `example-code` crate:** `site.md` and
[example-code/README.md](example-code/README.md).
- **Changing the build, the navigation, or the `example-code` crates:** `site.md`,
[example-code/README.md](example-code/README.md), and
[example-code-nightly/README.md](example-code-nightly/README.md).

## Public prose

Expand Down Expand Up @@ -79,8 +80,12 @@ Every snippet on a page is verified against current CGP:
- Put a page's code in the `example-code/` crate, one module per heading, except a Projects page,
whose code is checked against the project's repository; do not mirror the knowledge base's own
snippets there.
- Put a snippet that shows an unstable feature it needs in the `example-code-nightly/` crate
instead, on the nightly it pins, as
[example-code-nightly/README.md](example-code-nightly/README.md) describes.
- Run the `example-code` tests after changing a page's code, as
[example-code/README.md](example-code/README.md) describes.
[example-code/README.md](example-code/README.md) describes, and the `example-code-nightly` tests
when the page has nightly snippets.
- Fill an elided body with a comment saying so, write a rejected snippet as a compile-fail fixture,
and prefer duplication between files over a shared helper neither page shows.
- Treat a page without an `example-code` file as unvisited, not unverified, and check generated code
Expand Down
1,172 changes: 1,172 additions & 0 deletions blog/2026-11-29-incoherent-rust-today.md

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions docs/ai/disclaimer.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,8 @@ it. Report a problem in the knowledge base on its
[GitHub Discussions](https://github.com/orgs/contextgeneric/discussions) or on the repository it
concerns.

## How pages are marked

A new or substantially rewritten page carries a short note at the bottom, linking to the section
of this page that describes how it was made. The front page is the one exception and carries no
note. An older page gets a note only once its provenance has been established, so a page without
one may still have been written with AI assistance.

---

*An AI agent wrote and revised this page using the
*This page was written and revised by an AI agent from the
[CGP knowledge base](https://github.com/contextgeneric/cgp-knowledge-base). See
[Documentation and reference pages](#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ it is checked:

---

*An AI agent wrote this page using the CGP knowledge base. See
*This page was written by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/knowledge-base/contributing-with-an-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ page lists other ways to help CGP.

---

*An AI agent wrote this page using the CGP knowledge base. See
*This page was written by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/knowledge-base/how-cgp-is-documented.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ error in a page on this site or in the code, report it on the repository it conc

---

*An AI agent wrote this page using the CGP knowledge base. See
*This page was written by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/knowledge-base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ Choose the page that answers your question:

---

*An AI agent wrote this page using the CGP knowledge base. See
*This page was written by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/knowledge-base/using-it-with-your-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ prompt that surfaced it, so the document can be corrected.

---

*An AI agent wrote this page using the CGP knowledge base. See
*This page was written by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/skills/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ has its own directory in this section, so more skills can be added alongside `/c

---

*An AI agent wrote and revised this page using the CGP knowledge base. See
*This page was written and revised by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
2 changes: 1 addition & 1 deletion docs/ai/skills/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,5 @@ files as they stood when this site was last built.

---

*An AI agent wrote and revised this page using the CGP knowledge base. See
*This page was written and revised by an AI agent from the CGP knowledge base. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
16 changes: 14 additions & 2 deletions docs/comparisons/algebraic-effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ what a computation does; a coeffect describes what it requires from its environm
[Petricek's coeffects work](https://tomasp.net/coeffects/) develops that distinction. CGP's field
and trait requirements suggest such a comparison, but CGP does not implement a coeffect calculus.

CGP's requirements point toward the coeffect side. A provider's trait and field requirements state
what it needs from its context, rather than operations it performs for an enclosing handler to
interpret, and the context carries both the implementation choices and the values that satisfy them.
Those requirements are resolved all at once, when a concrete context is defined: once its wiring is
complete, the code runs with fixed implementations, much as a computation returns a pure value once
all its effects are handled. The same wiring also chooses types, as
[Configuring abstract types through the same wiring](#configuring-abstract-types-through-the-same-wiring)
shows, while the effect handlers compared on this page pass operations and values rather than types.
This describes how requirements flow into CGP code, not a formal correspondence with a coeffect
calculus.

## What each approach costs

Effect handlers separate operation use from interpretation and support reusable control-flow
Expand Down Expand Up @@ -395,6 +406,7 @@ assertion per wired context.

---

*An AI agent wrote this page using the CGP knowledge base. Its CGP code was verified against the
library's source and its other snippets against the toolchains named in Sources. See
*This page was written by an AI agent from the CGP knowledge base. Its CGP code was verified against
the library's source, and its other snippets were verified against the toolchains named in its
Sources section. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
5 changes: 3 additions & 2 deletions docs/comparisons/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ with a `check_components!` assertion per wired context; the Scala snippet was co

---

*An AI agent wrote this page using the CGP knowledge base. Its CGP code was verified against the
library's source and its other snippets against the toolchains named in Sources. See
*This page was written by an AI agent from the CGP knowledge base. Its CGP code was verified against
the library's source, and its other snippets were verified against the toolchains named in its
Sources section. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
5 changes: 3 additions & 2 deletions docs/comparisons/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ wired context. The Java snippets follow the framework documentation cited below.

---

*An AI agent wrote this page using the CGP knowledge base. Its CGP code was verified against the
library's source and its other snippets against the toolchains named in Sources. See
*This page was written by an AI agent from the CGP knowledge base. Its CGP code was verified against
the library's source, and its other snippets were verified against the toolchains named in its
Sources section. See
[How AI is used in this project](/docs/ai/disclaimer#documentation-and-reference-pages).*
Loading
Loading