Skip to content

More propagation of numeric types#6177

Merged
nrc merged 1 commit intomainfrom
nrc-uom-prop
Apr 7, 2025
Merged

More propagation of numeric types#6177
nrc merged 1 commit intomainfrom
nrc-uom-prop

Conversation

@nrc
Copy link
Contributor

@nrc nrc commented Apr 7, 2025

More carrying around numeric types rather than just using plain f64s. This is almost all of them, but there are a few left which depend on in-flight PRs. No user-facing changes. I also removed a few more deserialize derives.

@nrc nrc requested a review from jtran April 7, 2025 01:42
@qa-wolf
Copy link

qa-wolf bot commented Apr 7, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@vercel
Copy link

vercel bot commented Apr 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Apr 7, 2025 6:22am

@codecov
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

Attention: Patch coverage is 96.35036% with 5 lines in your changes missing coverage. Please review.

Project coverage is 85.11%. Comparing base (bc22d88) to head (e5c3ff2).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
rust/kcl-lib/src/execution/geometry.rs 87.17% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6177      +/-   ##
==========================================
+ Coverage   85.08%   85.11%   +0.03%     
==========================================
  Files         110      110              
  Lines       44654    44673      +19     
==========================================
+ Hits        37993    38024      +31     
+ Misses       6661     6649      -12     
Flag Coverage Δ
rust 85.11% <96.35%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 7, 2025

CodSpeed Walltime Performance Report

Merging #6177 will degrade performances by 10.39%

Comparing nrc-uom-prop (e5c3ff2) with main (bc22d88)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 90 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
execute_dodecahedron 1.7 s 1.5 s +12.57%
execute_flange 1.7 s 1.9 s -10.39%

let result = inner_inch(exec_state)?;

Ok(args.make_user_val_from_f64(result))
Ok(args.make_user_val_from_f64_with_type(TyF64::new(result, exec_state.current_default_units())))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is surprising, but makes sense.

Signed-off-by: Nick Cameron <nrc@ncameron.org>
@nrc nrc merged commit be05dd7 into main Apr 7, 2025
60 checks passed
@nrc nrc deleted the nrc-uom-prop branch April 7, 2025 07:02
modeling-app-github-app bot pushed a commit that referenced this pull request Apr 7, 2025
Signed-off-by: Nick Cameron <nrc@ncameron.org>
modeling-app-github-app bot pushed a commit that referenced this pull request Apr 7, 2025
Signed-off-by: Nick Cameron <nrc@ncameron.org>
modeling-app-github-app bot pushed a commit that referenced this pull request Apr 7, 2025
Signed-off-by: Nick Cameron <nrc@ncameron.org>
modeling-app-github-app bot pushed a commit that referenced this pull request Apr 7, 2025
Signed-off-by: Nick Cameron <nrc@ncameron.org>
jessfraz added a commit that referenced this pull request Apr 7, 2025
* origin/main:
  Quick app rename typo fix in settings.md (#6198)
  Add point-and-click Insert from local project files (#6129)
  Install and start Vector on macOS CI runners (#6147)
  Implement polar std function in KCL (#6180)
  Bump typescript from 5.8.2 to 5.8.3 in /packages/codemirror-lsp-client in the patch group (#6188)
  Bump @types/node from 22.13.13 to 22.14.0 in /packages/codemirror-lsp-client in the minor group (#6189)
  Bump the major group in /packages/codemirror-lang-kcl with 2 updates (#6194)
  Bump taiki-e/install-action from 2.49.30 to 2.49.45 in the patch group (#6185)
  Bump the patch group with 6 updates (#6186)
  Bump the patch group in /rust/kcl-language-server with 3 updates (#6183)
  Bump the patch group in /packages/codemirror-lang-kcl with 2 updates (#6193)
  Remove unnecessary timeouts waiting for command bar (#6199)
  Stream handling / Stream idle mode v2; a ton of network related changes (ping; scene indicator -> stream indicator, stream resizing (even on pause)) (#5312)
  More propagation of numeric types (#6177)
  Apply type-directed coercions to arguments in calls of user functions (#6179)
  Erase comment start positions from snapshot tests (#6178)
  Implement coercion of numeric types for ascription and arithmetic (off by default) (#6175)
  Reduce the number of reps in the add_lots test (#6174)
  take things off the batch in a more safe way (#6171)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants