Defunctionalize the dune sexp decoder#12768
Merged
rgrinberg merged 2 commits intoocaml:mainfrom Dec 5, 2025
Merged
Conversation
5abc53b to
8b726cb
Compare
Necessary to implement either in a non hacky way (amongst other things) Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
8b726cb to
ff1b041
Compare
davesnx
added a commit
to davesnx/dune
that referenced
this pull request
Dec 8, 2025
…without-system * 'main' of github.com:/ocaml/dune: (30 commits) Add (files) stanza (ocaml#12879) Make sure to use string equality in parsing hot path (ocaml#12874) Hoist up [Dune_sexp.Decoder.sum] uses (ocaml#12876) Delay ocaml-index dependencies (ocaml#12881) Simplify Lib.requires (ocaml#12880) Lib: delay applying modules (ocaml#12884) Annotate some ignored parameters in lib.ml (ocaml#12883) feat: expand variables in `(promote (into ..))` (ocaml#12832) dune-binaries.t: nix ci (ocaml#12875) fix: greedy version location in lang declarations (ocaml#12869) Reproduction case for ocaml#6220. (ocaml#6221) Defunctionalize the dune sexp decoder (ocaml#12768) disable flake (ocaml#12873) refactor: [instantiate] takes a regular library (ocaml#12849) Respect potentially existing lock dir when running format rules (ocaml#12847) fix: ascii start chore: updated CR someday chore: added entry for CHANGES.md fix: else claude message tests: promoted non-ascii-characters.t to new logic ...
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.
Defunctionalize the CPS based implementation into constructors that can be optimized. This is an almost mechanical transformation to allow:
eitherthat doesn't mindlessly backtrack>>=to allow to retarget the decoder in the command line.There's other benefits as well, but this is enough for now.