Repository navigation
Docs: bring contrib READMEs up to date - #93
Conversation
…fmt, typer, codegen, mlint)
…, encoding, unicode, url, regex, html, proto, graphql)
… dom, site, state, window)
…th, prop, test, time, stream, font, raster, softfloat)
284km
left a comment
There was a problem hiding this comment.
Reviewed cdc1299 against main 4f2c660. No actionable issues found. The consolidated library index, corrected checked/unchecked self-host entry points, native HTTP instructions, and explicit remaining JSON/CSV/encoding limitations are useful improvements.
Validation: all relative file links in the 34 changed READMEs resolve, and every current contrib directory appears in the index. I checked the new HTML and softfloat examples and the TOML example by execution; type-checked the stream and test examples and the HTTP/2 adapter (supplying an identity reply_for for the application's placeholder); and compiled the documented native HTTP handler using the documented clang command. Six focused programs (HTML escaping, softfloat arithmetic, test-runner exit status, URL NUL preservation, grapheme-cluster width, and bare None) matched interpreter stdout AND exit status on C, LLVM, and Wasm: 18/18 comparisons. The test-runner example correctly exits 1 for its intentional failing assertion. Native comparison binaries used ordinary clang -O2. The compiler built for the sibling documentation PR was reused only after verifying every non-Markdown tracked input is identical between the two heads.
This is focused documentation validation, not a rerun of all library/conformance, browser, network, platform, or resource suites. Hosted CI is not claimed complete. No merge: the recorded hold_all_merges and new_failure_review_required flags remain active; the queue exception does not clear that hold.
Brings
contrib/README.mdand the per-library READMEs in line with the code onmain. Docs only; no source changes. Each README was compared with its library's exports (mere doc), its source and its git history. Usage snippets were compiled or run where that was practical.Index (
contrib/README.md)contrib/. It previously listed 21 and was missing async, auth, bignum, codegen, db, encoding, feed, gen, graphql, html, http2, kv, log, mlint, ordset, os, prop, proto, raster, softfloat, store, stream, typer, unicode, url, webhook, window and xml. Each row has a one-line description and the module name(s); rows link to the library's README where there is one.mere install/mere.toml(docs/packages.md) and drops the deletedcontrib/json/writer.mereand the stale prefix examples.Self-hosted toolchain
tokenize,parse_decls,parse_program_ast),free_names.mereand the libraries that import it. The demo output now shows@ctor:names. "Deferred" items are split into "since landed" and "still deferred", each checked against the parser.--enable-tail-call.test/test_basic.ml,scripts/selfhost_check.sh).compile.mere(compile_source_to_wat) and namedscripts/selfhost_check.shas the end-to-end gate.Data formats and text
writer.merewas merged intomodule Json, so the file table, usage and copy instructions are rewritten. Removed the gotchas that no longer apply. Documented thatescape_strescapes only"and\.CsvWriter.header. Linked the writer demo. New limitation: a field containing a newline is written unquoted.labels.mere(all 228 labels).label_ofknows every label, butdecodeimplements 4 encodings. The 0x00-on-LLVM section is history now: LLVMstrcarries its length. The usage example now type-checks.last_index_of, which no longer exists. Dropped the retired "Wasmfaildoes not unwind" reason.Percent.decode "%00"is 3 bytes on every backend.?url_partsbecomesurl_parts option.engine.mereis described correctly (its own AST, with alternation).build.mere(thehtmltree,render/page/page_with, gatescripts/htmlbuild_check.sh). The tokenizer switches RCDATA/RAWTEXT/script state by itself.of_sources, new wire helpers). The lexer refuses out-of-range literals with a proper error. The gen gate covers 25 schemas.GFnresolvers.Web, browser, window
http.mere. It now lists all optional files (router, query, sessions, CSRF, CORS, metrics, static, SSE, WebSocket, client, TLS,serve_mt,serve_rd, …). Addedhttp_get_headerand a native C build/run section. Fixed the-w -obuild command and the expected output. Rewrote the stale limitations.str -> bytes list -> grpc_reply, and the example now usesH2Server.unary. Addedh2conn/unary/apply_settings/apply_window_update. Three of the four "does not do" items have since been lifted.attach, thesetRom/setWorkerTransportsetters, andworker_call.build_full.shandplayground/. Imports are now themere-markdownpackage plus the full-pathcontrib/path. Added setup notes (mere install, run from the repo root). LLVM is supported. Replaced the stale limitations with the real ones.store_watcher_count.Window.width/height; the example also importscontrib/raster/path.mereand passesmere check.Utilities
intis 64-bit; Wasm is no longer described as 32-bit.Noneneeds an annotation" gotcha, which no longer applies.exit (Test.exit_status s). Removed "Mere has no threads".test/parity/raster.mere.No change needed: gen, ordset, store.
Checks run
scripts/ctest.shon the contrib files: C matches the interpreter.selfhost_check.sh,encoding_parity.sh,html_tokenizer_conformance.sh,htmlbuild_check.sh,http2_parity.sh,hpack_parity.sh,graphql_parity.sh,graphql_validate_parity.sh,http_concurrency_check.sh,proto_parity.sh,proto_desc_parity.sh,proto_gen_parity.sh,url_parity.sh,linebreak_conformance.sh,window_check.sh,softfloat_check.sh.Not run: the browser/headless DOM checks, the gRPC and GraphQL exec/introspection/server parity scripts,
normalize_conformance.sh(did not finish within the time limit), and the http TLS / SSE / WebSocket / client paths.🤖 Generated with Claude Code