Giter Site home page Giter Site logo

Comments (6)

omus avatar omus commented on May 25, 2024 2

I've been making some PRs to Julia to use more specific function calls which avoids triggering invalidations in base when using Intervals.jl. These changes won't address invalidations that occur with including other packages but fixing the Base invalidations should still help. So far I've managed to address the +, - and isless invalidations Intervals.jl triggers.

from intervals.jl.

simeonschaub avatar simeonschaub commented on May 25, 2024 1

This would be good to fix before Julia 1.8 is released, since JuliaLang/julia#43671 will add a convert(Any, x) step for any assignment to a global, therefore adding a bunch more invalidation risks for this method.

from intervals.jl.

omus avatar omus commented on May 25, 2024

An attempt to address this: #143

from intervals.jl.

KristofferC avatar KristofferC commented on May 25, 2024

Thanks, hadn't seen that one.

from intervals.jl.

oxinabox avatar oxinabox commented on May 25, 2024

I wonder if this shouldn't actually be an overload of Base.only.
We are converting a interval that contains exactly 1 point to be exactly just that point.
It feels weird to me to be able to use an interval with 1 element where you can use the element.
e.g. push(::Vector{T}, ::AnchoredInterval{T}) doesn't seem like it should ever work.
but i think it does because of this convert

Do we actually use this method anywhere in practice?

from intervals.jl.

pabloferz avatar pabloferz commented on May 25, 2024

@oxinabox see #145

from intervals.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.