Giter VIP home page Giter VIP logo

Comments (16)

ddssff avatar ddssff commented on September 15, 2024 1

I think we can abandon base older than 4.8.0.0. If someone complains I'll welcome a PR with ifdefs.

from diff.

ddssff avatar ddssff commented on September 15, 2024

Have you noticed any slowness in the diff function? I may have seen this when running in the browser via ghcjs.

from diff.

jonathanlking avatar jonathanlking commented on September 15, 2024

Have you noticed any slowness in the diff function? I may have seen this when running in the browser via ghcjs.

We're only using the getGroupedDiff function (on GHC 8.8.4 targeting x86) and it's only used as part of tests.
I haven't noticed it being particularly slow, but that said these tests are not something that we've profiled, as they're fast enough.

from diff.

ddssff avatar ddssff commented on September 15, 2024

I can do the CPP.

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

@ddssff did you test it with GHC 9.6? I suspect instance Functor is missing.

from diff.

ddssff avatar ddssff commented on September 15, 2024

I don't have access to ghc-9.6. Stuck on 8.10.

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

Sorry, I’m AFK until the next week. If you wish, once back home, I can generate a GitHub Actions CI setup with haskell-ci covering a range of GHCs up to 9.6.

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

@ddssff could you possibly make a release some time soon?

from diff.

ddssff avatar ddssff commented on September 15, 2024

Hackage upload? Will do.

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

Yes, please.

from diff.

ddssff avatar ddssff commented on September 15, 2024

Does O(ND) in the title refer to time or space complexity?

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

Time is O(ND) and space is O(D^2).

I'm not sure "O(ND)" is terribly helpful as a top-level package description without explaining what D refers to. It might be helpful to bring Cabal "description:" field in line with the module header:

Diff/Diff.cabal

Lines 3 to 4 in 026aef2

synopsis: O(ND) diff algorithm in haskell.
description: Implementation of the standard diff algorithm, and utilities for pretty printing.

-- This is an implementation of the diff algorithm as described in
-- \"An \( O(ND) \) Difference Algorithm and Its Variations (1986)\"
-- <http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927>.
-- For inputs of size \( O(N) \) with the number of differences \( D \)
-- it has \( O(ND) \) time and \( O(D^2) \) space complexity.

from diff.

ddssff avatar ddssff commented on September 15, 2024

How about this:

synopsis:            Diff algorithm in pure Haskell
description:         Implementation of the standard diff algorithm, and utilities for pretty printing.  Time complexity is proportional to N (input length) & D (number of differences).  Space complexity is D^2.

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

Thanks for a quick turnaround with a release, really much appreciated.

How about this:

Looks great! And today I learned that one can edit package description via revision :)

from diff.

ddssff avatar ddssff commented on September 15, 2024

from diff.

Bodigrim avatar Bodigrim commented on September 15, 2024

I'm thinking of removing 'getContextDiffOld' - I can't see how it could be useful to anyone.

Makes sense to me.

from diff.

Related Issues (6)

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.