Giter VIP home page Giter VIP logo

Comments (8)

zenzike avatar zenzike commented on May 27, 2024 1

For lots of related strategies, see “Heuristics Entwined with Handlers Combined. Tom Schrijvers and Nicolas Wu and Benoit Desouter and Bart Demoen.”

from fused-effects.

robrix avatar robrix commented on May 27, 2024

Unfortunately, I think this means that we have to couple Cut carriers with search strategies. In particular, while it’s possible to use runCut with runNonDetOnce without accruing this cost (because the right-nested branches are never explored), it isn’t possible to compose it with runNonDet without paying this penalty.

An alternative carrier for Cut which explores all branches is possible, and can then be reinterpreted into some other Alternative instance, but you can’t compose this with runNonDetOnce to limit the search; since it has to explore the branches, their effects end up being performed:

λ runM (runTraceByPrinting (runNonDetOnce (runCutAll (pure 'a' <|> trace "hello" *> pure 'b'))))
hello
"a"

from fused-effects.

robrix avatar robrix commented on May 27, 2024

I was mistaken—we just need to represent actual branches in Branch.

from fused-effects.

robrix avatar robrix commented on May 27, 2024

@zenzike: Thank you! I’m really enjoying that paper ❤️

from fused-effects.

zenzike avatar zenzike commented on May 27, 2024

I usually distinguish between cut and call, where cut signals that siblings that proceed it under a call need to be removed, and cull, which picks only the first child in p

from fused-effects.

robrix avatar robrix commented on May 27, 2024

@zenzike: That’s super interesting. I kind of think that suggests we should hold off on releasing 0.1.2.0 until we’ve explored that.

from fused-effects.

zenzike avatar zenzike commented on May 27, 2024

Right. You can only do that sort of thing if alternation is a deep embedding. I usually define:

data Nondet k = Or k k

specifically for that purpose.

from fused-effects.

robrix avatar robrix commented on May 27, 2024

I’ve filed #68 to capture exploring that 👍

from fused-effects.

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.