Repository navigation
Java and C time_date_logic: nanoTime, TimeUnit, bare time()/clock() (Part of #8863) - #9229
Merged
Merged
Conversation
…ock()/difftime/mktime (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Open
21 of 34 tasks
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.
Part of #8863 (child #8862 / #8868). Checklist: partial [c:a9dfa2bb] -- no
draftcontracts remain (#9207 declared the last five); this slice takes two contract-answerabletime_date_logicrows from #8868. The owner readings are still open (below).What changed
The
time_date_logiccontract is "a now/time/date constructor, duration arithmetic, a formatting or timezone call". #8868 measured clock calls the rules missed:System.nanoTime(17 functions) andTimeUnit.(9) now match.time(calls (35 functions) now match, plusclock(,difftime,mktime. A lookbehind(?<![.>\w])keeps member calls (x.time(,p->time() and longer names (runtime() out.Tests: new positive/decoy pairs in
test_java_strict.pyandtest_c_strict.py.Golden drift (attributed)
Both fixtures blessed via
golden-lock.sh crucible_check.py --update --yes. Onlytime_date_logiccounts moved (gnucobol_internalscodegen.candfileio.c: 2 -> 3, from Ctime() plus the fingerprint / drift-centroid values that depend on them (springboot Java). No other signal moved.Class / Sibling gaps
Class:
time_date_logicmisses clock or duration calls the contract names, measured per language in #8868. In this PR: Java and C. Rust and Go are in #9227. Sibling gaps, each a different mechanism or an owner decision:assertan abort (Cpanics_and_abortsprecision 0.48), and whichdocstyles count in TS/JS (precision 0.25 / 0.02). Need the owner.regex_execution: regex literals and.test(need division-vs-regex disambiguation and touch thetest_vs_regexambiguity tests.thread_sleeps(sleep,time::sleep) andio(TcpListener::bind,OpenOptions::new, stdin/stdout); Cio(close,mmap,fgets); Goio(os.ReadDir,os.WriteFile, ...). Per-language rule rows.OffsetDateTime,LocalTime:test_java_strict.pypinsOffsetDateTime.nowas a negative, so changing it is a decision. C++ and C#time_date_logicwere not measured.io(0.00 / 0.00), Goclosuresprecision 0.36, Rustbranchprecision 0.70, Go/TSdecoratorsfalse fires: causes not traced.Remaining slices
Per-language rule rows above, one language per PR; owner readings on #8862.
Gates
pr_gates.py --fast9/9;--ratchets9 pass, 0 skipped. Strict tests for both languages pass (221). Rule CPU timing was not measured separately: the change adds one alternation each to two short regexes.Lessons for agents
🤖 Generated with Claude Code