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

Allow cache module to be given in RGF constructor #26

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

c42f
Copy link
Contributor

@c42f c42f commented Feb 6, 2021

This exposes the full constructor (without the need for specifying
module tags), as we seem to need this for utility functions which want
to cache the RGF in a user-specified module.

Looks like this is needed to make SciML/ModelingToolkit.jl#769 less hacky.

This exposes the full constructor (without the need for specifying
module tags), as we seem to need this for utility functions which want
to cache the RGF in a user-specified module.
@c42f c42f force-pushed the cjf/cache-module-in-constructor branch from 4249f30 to eec806a Compare February 6, 2021 03:37
@codecov
Copy link

codecov bot commented Feb 6, 2021

Codecov Report

Merging #26 (f76395c) into master (076d6df) will increase coverage by 3.97%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   89.36%   93.33%   +3.97%     
==========================================
  Files           1        1              
  Lines          47       45       -2     
==========================================
  Hits           42       42              
+ Misses          5        3       -2     
Impacted Files Coverage Δ
src/RuntimeGeneratedFunctions.jl 93.33% <100.00%> (+3.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 076d6df...eec806a. Read the comment docs.

@ChrisRackauckas
Copy link
Member

Should this get mentioned in the README? I think it should, and it should be the "final" piece of this library. Thanks @c42f for taking the difficult parts on!

@ChrisRackauckas ChrisRackauckas merged commit 0e2c552 into SciML:master Feb 9, 2021
@c42f c42f deleted the cjf/cache-module-in-constructor branch February 11, 2021 01:39
@c42f
Copy link
Contributor Author

c42f commented Feb 11, 2021

the "final" piece of this library

#25 could be nice I guess. But really it would be great if the compiler just supported callable methods more directly... this library is always going to be a hack :-)

@ChrisRackauckas
Copy link
Member

A hack, but a useful one for at least the next year or two!

@c42f
Copy link
Contributor Author

c42f commented Feb 12, 2021

Right!

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