Add wet-glue to CLI section - #1316
Open
Noob-stupid wants to merge 1 commit into
Open
Conversation
Manages undecided code with two comment lines: mark a region, swap alternative implementations in, benchmark them and seal the winner as plain code. Fills a niche (lifecycle for experimental code regions) with zero runtime overhead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding wet-glue under CLI.
What it does: two comment lines (
// glue:begin/// glue:end) mark a code region you're undecided about — for example a lookup that might be a red-black tree or a B+ tree. You register alternative implementations, swap between them (source-level text replacement, no runtime indirection), run your own benchmark viaglue verify, and finallyglue sealthe winner, which removes the markers and welds it as plain code.Why it fits the criteria:
//-comment language.swappable.lock) and "is the glue drying" nudges.Validation on real code: the tool was exercised end-to-end on NanoHTTPD (5k+ stars) — registering a thread-pool candidate against the classic thread-per-connection model and benchmarking both; case study.
This is self-promotion (I'm the author); disclosing that up front. Happy to adjust wording or placement to match house style.
Summary by cubic
Adds
wet-glueto the CLI section of the README. It lets developers mark undecided code regions with// glue:begin/// glue:end, swap in alternative implementations, benchmark them, and seal the winner as plain code. Note: this is the author's own project.Written for commit 3fe262e. Summary will update on new commits.