feat(#4952): moved acos from real.eo to a separate object with tests#4961
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR extracts the arc-cosine operation into a new Changes
Sequence Diagram(s)(Skipped — changes are module extraction and class refactor without new multi-component control flow.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@eo-runtime/src/main/eo/ms/acos.eo`:
- Around line 13-14: The ms.real.acos stub left behind should either be removed
or turned into an explicit forwarder to the new ms.acos implementation: locate
the public object declaration named ms.real.acos (the lone "[] > acos ?" stub)
and either delete that stub entirely or change it to forward calls to ms.acos
(preserving the original signature so callers still resolve), ensuring the Java
atom `@XmirObject`(oname = "acos") provided by ms.acos is the effective
implementation.
In `@eo-runtime/src/main/java/org/eolang/EOms/EOacos.java`:
- Around line 12-17: The code uses an unqualified nested class ToPhi which will
not compile; import org.eolang.Data (or reference Data) and replace the new
ToPhi(...) usage with new Data.ToPhi(...). Update the imports to include
org.eolang.Data and change the constructor call in EOacos (the spot creating
ToPhi) to use the nested class qualifier Data.ToPhi so the compiler can resolve
the nested class.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 25dfade9-00ec-4066-8b3d-9e280090f52d
📒 Files selected for processing (3)
eo-runtime/src/main/eo/ms/acos.eoeo-runtime/src/main/eo/ms/real.eoeo-runtime/src/main/java/org/eolang/EOms/EOacos.java
💤 Files with no reviewable changes (1)
- eo-runtime/src/main/eo/ms/real.eo
🚀 Performance AnalysisAll benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information. Click to see the detailed report
✅ Performance gain: |
|
@yegor256 could you check? |
|
@eshabakhov thanks! |
|
@eshabakhov Thanks for your valuable contribution! 🎉 You've earned +12 points (+16 base, -4 for code size optimization). Your running score is now +80 - great progress! Please keep contributions focused under 100 hits-of-code for maximum points, and don't forget to check your Zerocracy account for updates. |
Summary
This PR solves #4952
Changes
acosfromreal.eoacosinacos.eowith testsSummary by CodeRabbit
New Features
Bug Fixes / API Changes