Giter Club home page Giter Club logo

Comments (2)

ekmett avatar ekmett commented on July 16, 2024

Not everything is for Lifting: Class and (:=>) are huge orphan magnets as well, and were originally only implemented for base instances, but the core libraries generally can't incur any new dependencies like this going the other way around.

I'm rather inclined to leave things together, as I intend to go through and properly add the missing Class and (:=>) instances for the packages this package depends on. (I should have done so long ago, but haven't had the energy to tackle it.)

In a split story those instances would be forced to be orphans, and I pretty flatly refuse to maintain packages full of orphans as they induce terrible failure modes for users.

This is aside from pragmatic concern that I get a lot of 'please lift out this particular small core or that one out of package XYZ' requests at the same time a I get requests to add instances for X Y or Z that would otherwise be orphaned. These requests can rarely agree on what the small core should be. The problem with them is their net effect is to pretty much render my life as a maintainer a living hell, as I often have to deal with release cascades of 40+ package releases when I move content between packages that sit under a bunch of others like this. If at any point we cleave wrongly and I have to move stuff between the two packages later, that can eat a week at a time and increase trustee work.

Given the "new" dependencies here are all actually core libraries except hashable, which is all but morally one, and transformers-compat -- which sees wide adoption for patching over the incompatible changes we get in transformers -- and the orphan instance issue for said core libraries I'm going to lean towards not doing this at this time.

I'm far more inclined in the medium-to-long term to see about getting the core Data.Constraint module into base, (possibly modulo Class and (:=>), depending on standardization woes) but the story of how to juggle where the instances wind up while avoiding orphans is a rather headache inducing affair on the best day. It'd be a slightly more desirable state to reach as it'd let us simultaneously extend things correctly to all the core libraries, but the transition/coordination pain to get there is something I'm not in a hurry to endure, and would last multiple years. I'm already living through it in miniature with the migration of Semigroup into base, and that is far, far less exotic!

Tentatively closing this to signal intent.

from constraints.

andrewthad avatar andrewthad commented on July 16, 2024

I appreciate the explanation. That makes a lot of sense (especially the orphan problem). Fortunately, I no longer even need such a constraints-core.

from constraints.

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.