Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deps, add js? and simplify? #118

Merged
merged 18 commits into from
Apr 7, 2023
Merged

Update deps, add js? and simplify? #118

merged 18 commits into from
Apr 7, 2023

Conversation

sritchie
Copy link
Member

@sritchie sritchie commented Apr 5, 2023

From the CHANGELOG:

  • Update deps, add js? and simplify? #118:

    • Fixes problems with the resolve calls in emmy.util.def triggered by
      vanilla (non-shadow) cljs compilation.

    • Updates Complex.js and Fraction.js dependencies to their latest NPM
      versions.

    • Updates odex to the latest release candidate on NPM.

    • The cljs side of emmy.numerical.ode/stream-integrator gains a :js?
      option that defaults to true. If false, the returned function will
      return native JS arrays vs converting the return value to Clojure.

    • In emmy.expression.compile, compile-fn and compile-state-fn gain a
      :simplify? argument that defaults to true. If false, compilation will
      not attempt to simplify the function body before proceeding.

littleredcomputer and others added 11 commits March 13, 2023 09:07
Redesign compiler as a pipeline of transformations that works by
having each step add or update keys in a map
representing the current state of the compilation,
avoiding the need for bookkeeping parameters.
- redo cache to include relevant information in cache key
- this makes the `*` and non-`*` versions of compile unnecessary
- You can supply the option `{:cache false}` if you really want to
- non-generic-params compilations are excluded from caching
- primitive calling convention now "works", but not yet wired into ODE
- avoid js->clj in primitive case
- remove timing instrumentation in ODE fns
- `integration-opts` is now `make-integrator*` & is simpler
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Patch coverage: 76.72% and project coverage change: -0.06 ⚠️

Comparison is base (fe0e8bb) 86.43% compared to head (6298d03) 86.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
- Coverage   86.43%   86.37%   -0.06%     
==========================================
  Files          99       99              
  Lines       15306    15335      +29     
  Branches      785      800      +15     
==========================================
+ Hits        13229    13245      +16     
+ Misses       1292     1290       -2     
- Partials      785      800      +15     
Impacted Files Coverage Δ
src/emmy/complex.cljc 92.20% <ø> (ø)
src/emmy/expression/cse.cljc 97.29% <ø> (ø)
src/emmy/ratio.cljc 89.04% <ø> (ø)
src/emmy/util/def.cljc 64.10% <45.45%> (+2.31%) ⬆️
src/emmy/expression/compile.cljc 84.77% <85.91%> (-2.99%) ⬇️
src/emmy/numerical/ode.cljc 90.90% <88.57%> (-0.90%) ⬇️

... and 8 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sritchie sritchie changed the title Small updates [pending] Update deps, JS options Apr 5, 2023
@sritchie sritchie changed the title Update deps, JS options Update deps, add js? and simplify? Apr 5, 2023
@sritchie
Copy link
Member Author

sritchie commented Apr 5, 2023

I will get a test in before merging...

@sritchie sritchie merged commit e4566d3 into main Apr 7, 2023
@sritchie sritchie deleted the sritchie/compiler-3 branch April 7, 2023 17:57
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