https://github.com/chalk-lab/mistyclosures.jl
Marginally less opaque closures.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.1%) to scientific vocabulary
Repository
Marginally less opaque closures.
Basic Info
Statistics
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 6
Metadata Files
README.md
MistyClosures
Marginally less opaque closures.
Specifically, a MistyClosure comprises an OpaqueClosure paired with the IRCode that defines it.
This is useful if you generate an OpaqueClosure, and want to be able to retrieve the IRCode later on.
Recommended Use
```julia
Get the IRCode associated with sin(5.0).
ir = Base.codeircodeby_type(Tuple{typeof(sin), Float64}) |> only |> first; ir.argtypes[1] = Tuple{}
Produce a MistyClosure using it. All kwargs are passed to the OpaqueClosure
constructor.
mc = MistyClosure(ir; do_compile=true)
Call it.
mc(5.0) == sin(5.0) ```
Alternative Use
Sometimes you'll already have an OpaqueClosure lying around, and not want to produce a new one from an IRCode (as this often takes a surprisingly large amount of time).
If this is the case, you can simply use the default constructor for MistyClosure.
That is, write
julia
mc = MistyClosure(existing_opaque_closure, ir)
Of course, it is your responsibility to ensure that ir and existing_opaque_closure are in agreement.
Owner
- Name: Learning and Inference Group
- Login: chalk-lab
- Kind: organization
- Location: United Kingdom
- Website: https://mlg.eng.cam.ac.uk/hong/
- Repositories: 1
- Profile: https://github.com/chalk-lab
Hong Ge's Research Group at Cambridge University
GitHub Events
Total
- Create event: 2
- Commit comment event: 1
- Issues event: 2
- Watch event: 1
- Delete event: 2
- Issue comment event: 2
- Push event: 24
- Pull request event: 1
Last Year
- Create event: 2
- Commit comment event: 1
- Issues event: 2
- Watch event: 1
- Delete event: 2
- Issue comment event: 2
- Push event: 24
- Pull request event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 3
- Total pull requests: 8
- Average time to close issues: less than a minute
- Average time to close pull requests: about 18 hours
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 2.33
- Average comments per pull request: 0.75
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 2
- Pull requests: 4
- Average time to close issues: N/A
- Average time to close pull requests: 25 minutes
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 0.5
- Average comments per pull request: 1.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jumerckx (1)
- JuliaTagBot (1)
Pull Request Authors
- willtebbutt (5)
- yebai (1)
- oxinabox (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 789 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 6
juliahub.com: MistyClosures
Marginally less opaque closures.
- Documentation: https://docs.juliahub.com/General/MistyClosures/stable/
- License: MIT
-
Latest release: 2.1.0
published 11 months ago
Rankings
Dependencies
- actions/checkout v4 composite
- julia-actions/cache v2 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v2 composite
- JuliaRegistries/TagBot v1 composite