Repository navigation
Conversation
The reader knows version 1 and reads a file of version 0, the draft it froze, as version 1; every file, example and page says ebg 1, and print() writes it. An overlay takes bvh = true or false: such an overlay is evaluated region by region until a tape can search an overlay through a BVH, and is already held to what a BVH over its regions allows (the object or moved, not clipped, drilled, labeled or in another overlay; an overlay in it not clipped), and counts as a sub-program, so a model written for it keeps its meaning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mR37bzMSJWYPpFgLhy9sk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mR37bzMSJWYPpFgLhy9sk
|
@claude review |
|
Claude finished @rmrsk's task in 30s —— View job Review of #384: Language version 1, with
|
…epth in it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mR37bzMSJWYPpFgLhy9sk
|
@claude review |
|
Claude finished @rmrsk's task in 16s —— View job Review of #384: Language version 1, with
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012mR37bzMSJWYPpFgLhy9sk
Summary
Background
The
.ebglanguage has been at version 0, meaning unstable with no promise of compatibility, until everything that adds or changes syntax or meaning had landed (roadmap #232, section E). The last such item is #337'soverlay(bvh = true), a BVH over an overlay's regions for assemblies of many parts. Its draft (#349) is parked on a crash in the CUDA compiler (ptxas) in the doubleRegionBVHkernel, with no date for a fix. Rather than keep the language waiting on that, this PR reserves the syntax and its rules now and freezes the language as version 1. #337 can then land later as a speed-up with no change in meaning.Solution
ebg 0, the draft version 1 freezes, reads as version 1, so no existing file breaks.print()(andebgstudio print) writesebg 1, so printing a file also updates its version line.ebg 1, as does the studio's writer.LanguageModels.rststates the promise:overlay(bvh = true)reserved.bvh = trueorfalse, set at most once, alongsideweld.Tape::MaxCallDepth), as a BVH union does.bvh = false, an overlay allows everything it did before.Language::Modelexposes nothing new. Overlay through a BVH: region queries over many regions (assemblies) #337 adds the accessor along with the BVH.overlaynow shows its settings,overlay [ "(" args ")" ], which it did not before;overlay(bvh = true);Side-effects
ebg 0outside this repository (users' models, a studio session's files). They keep reading as before, andebgstudio printrewrites them withebg 1.ebg 1files ("version 1 is unknown; this reader knows version 0").Alternative solutions
ebg 0. Considered and declined in the design discussion. Version 0 and version 1 are the same language, so refusing it would only break files for nothing.bvhinLanguage::Modelnow. Declined. Nothing can use it before the BVH exists, so Overlay through a BVH: region queries over many regions (assemblies) #337 adds it.bvh = truewithout its rules. Declined. Overlay through a BVH: region queries over many regions (assemblies) #337 would then have to refuse files that version 1 accepted, which breaks the freeze.Performance
Host: green. No probe uses the language, so every probe compiled to the same code on both sides and none was run (366 cases skipped as identical). No device section, since no device code changed. Receipt:
Performance/receipts/ebg-1-83b48037.md.Where to look
Source/EBGeometry_LanguageSyntaxImplem.hpp(file()): reading the version.Source/EBGeometry_LanguageImplem.hpp:overlay(): the settings and the region checks;operand(),label()and the transforms: where an overlay through a BVH is refused or passed on;flagged()andLanguageDetail::regionBVHUses.Docs/Sphinx/source/LanguageModels.rst: the stability promise, and the paragraph onoverlay(bvh = true).TestLanguageandTestThreadspass in both precisions;-Wdouble-promotion -Werrorsyntax check passes on the changed test files;@claude reviewrounds. Round 1 found that an overlay clipped two levels down escaped the check. That is fixed:overlay()now carries the flag up through the levels, and a test and a doc line cover it. Round 2 had no blocking finding.release-test,debug-sanand HIP;Reviewer checklist (to be completed by a human)
@claude review.🤖 Generated with Claude Code
https://claude.ai/code/session_012mR37bzMSJWYPpFgLhy9sk