GithubHelp home page GithubHelp logo

unification environment about geni HOT 4 OPEN

kowey avatar kowey commented on August 27, 2024
unification environment

from geni.

Comments (4)

kowey avatar kowey commented on August 27, 2024

Imported from trac issue 18. Created by kowey on 1970-01-01T01:20:48, last modified: 1970-01-01T01:20:48

from geni.

kowey avatar kowey commented on August 27, 2024

Renamed from monad to environment. I don't care how it's implemented, I just want a less error-prone way to do unification. The standard approach of unification variables pointing into a common environment might be better.

from geni.

kowey avatar kowey commented on August 27, 2024

Phew, the way we're doing unification really is dreadful. And an environment doesn't sound so hard either.

from geni.

kowey avatar kowey commented on August 27, 2024

OK, have a rough idea what to do maybe.

So problem is bugs caused by forgetting to replace, or not replacing on parent structure

Possible solution: anything with unification variables must have an environment (Var to Value). Let's call it U a. Unifying is U a -> U a -> U a

That is rather than running the replacements, you just have to swap the environments out. But forgetting to swap the environments can still be bad. Maybe this is where something like monads or something could be good? If you have some

data BigThing = BigThing
      { small :: SmallThing
      , etc :: Etc }

When you do unification on the SmallThing, one way or another we need to make sure the rest of BigThing receives the right values. So nebulous idea is that you would do unify :: U SmallThing -> U SmallThing -> U SmallThing and somehow go from there to U BigThing. How do we ensure the right environment?

from geni.

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.