Giter Site home page Giter Site logo

scalassss's Issues

Some suggestions by `/u/m50d` on reddit

Looks good, pretty clear.

Is the prime a BigInt or a String? You say both in parts of the readme.

Why MD5? Is it specified? Seems an odd choice for a new project.

You might like to use a StringContext pimp for BigInt literals.

Why is BigPrimes#primes a List? Wouldn't some kind of map be better?

LaGrangeInterpolation#L19 the -> is misleading.

gcdD should probably return a case class rather than a list? Or I may be misunderstanding.

Consider parameterizing SSSSOps by F[_]: Monad (and the implementation uses Either[ShareError, ?] (kind-projector syntax)) rather than parameterizing by Error - that's more in line with what people would expect.

There's a lot of cases when you're foldLefting with something that's literally a group (so certainly a monoid). Scala has an awkward relationship with multiple groups using the same base set, but you might consider representing multiplicative integers mod p (or the kind of linear-congruence stuff you're doing) with a wrapper type that has a monoid instance, and then you can replace a lot of the foldLefts with just sum operations. Have a look at spire which may have the algebraic constructs you're using already.

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.