linear
Low-dimensional linear algebra primitives for Haskell. (by ekmett)
haskell.nix
Alternative Haskell Infrastructure for Nixpkgs (by input-output-hk)
Our great sponsors
linear | haskell.nix | |
---|---|---|
8 | 15 | |
195 | 524 | |
- | 1.7% | |
5.4 | 9.7 | |
9 days ago | 7 days ago | |
Haskell | Nix | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linear
Posts with mentions or reviews of linear.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-11.
-
GHC.Num: Why no multiplication commutativity?
Linear.Quaternion.Quaterion from the linear package has a Num instance, and quaternion multiplication is noncommutative.
-
Is there an existing typeclass for differences?
That's pretty much exactly the abstraction used in the 'linear' package's Affine class, in which we find points separated by vectors.
-
What are the current challenges in Numerical Programming for Haskell?
Linear algebra: hmatrix again with its own array type (and linear but this is restricted to low dimensions)
-
Advanced programming exercises/apps recommendations to code
This is very niche, but something I've wanted to do for a while is to generate some cool physics example on the surface of a sphere with https://hackage.haskell.org/package/hamilton, and display it with https://reanimate.github.io/ (using https://hackage.haskell.org/package/linear for the projection)
-
How to create my Functor / Eq / Num combination on Coords?
Do check out the linear package. It has some complicated parts, but the types work out very nicely. Your Coords type is called V3 in that package, it has a huge list of instances for all kinds of different type classes.
- Advent of Code 2021 day 06
-
Probabilistic modelling in Idris: engineering as research
I've come to love the linear approach, where instead of working with Naperian (Representable) functors, you work with Distributive functors.
-
Monthly Hask Anything (June 2021)
See also the linear library, it contains types like data V3 a = V3 a a a with all of the useful instances.
haskell.nix
Posts with mentions or reviews of haskell.nix.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-29.
-
Why does Nix have Haskell packages that are incompatible with GHC for a given version?
I'm not a great haskeller but I found haskell.nix better for Haskell projects, like the commenter on Discourse suggested. I've had a few issued regarding package versions with nixpkgs that haskell.nix solved.
-
Simple GHC stack for a novice
FWIW, there's also libraries like haskell.nix that solve the caching problem.
-
Any up-to-date cross-compiling methods for Raspberry Pi?
I would try haskell.nix.
-
Take the Nix Pill
If you want to hurt your brain, check out haskell.nix. That's some good stuff right there ^^
-
Trying to build a statically linked binary against glibc (Linux)
The haskell.nix framework is good for this.
-
GHC 9.4.1 Windows changes
One cool thing is that this will enable GHC builds using ucrt instead of vscrt in the future. Concretely, together with NixOS/nixpkgs#171418 and its follow-up NixOS/nixpkgs#173498), this will e.g. allow haskell.nix to upgrade to a newer wine pin for TH cross compilation: https://github.com/input-output-hk/haskell.nix/blob/dd13e822529ae5342494969bce8a457522a60100/overlays/wine.nix
-
How to make stack work like it's supposed to
I've been using IOHK's alternative infrastructure for this reason. It has its quirks but I've been happier with it. Before that I think I was using developPackage from the nixpkgs haskell tooling which had some introspection ability. You may consider trying that out. But as I remember this will not abide by your version bounds.
-
Announcing `safe-coloured-text`
There's a lot to like here. Alas, despite minimal dependencies, terminfo is somehow uniquely problematic in haskell.nix.
- A question about the current state of Haskell running natively on Apple silicon:
-
Memory from finished thread is not getting reclaimed
If you are somewhat comfortable with nix: https://github.com/input-output-hk/haskell.nix supports GHCJS 8.10.x (in particular 8.10.7).
What are some alternatives?
When comparing linear and haskell.nix you can also consider the following projects:
nimber - Finite nimber arithmetic
Cabal - Official upstream development repository for Cabal and cabal-install
nuha
nix-doom-emacs - doom-emacs packaged for Nix
moving-averages
static-haskell-nix - easily build most Haskell programs into fully static Linux executables
effect-zoo - Comparing Haskell effect systems for ergonomics and speed
polysemy - :gemini: higher-order, no-boilerplate monads
reservoir - Reservoir Sampling Algorithms in Haskell
frp-zoo - Comparing many FRP implementations by reimplementing the same toy app in each.
linear-accelerate - Instances to mix linear with accelerate
nixpkgs - Nix Packages collection & NixOS