!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

684 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://nixos.org/manual/nixpkgs/unstable/#haskell | Current PR: https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+is%3Aopen+head%3Ahaskell-updates | Maintainer Docs: https://github.com/NixOS/nixpkgs/blob/haskell-updates/pkgs/development/haskell-modules/HACKING.md | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | Merger Schedule: https://cloud.maralorn.de/apps/calendar/p/H6migHmKX7xHoTFa/dayGridMonth/now | Join #haskell.nix:libera.chat for question about the alternative haskell.nix infrastructure135 Servers

Load older messages


SenderMessageTime
10 Feb 2025
@alexfmpe:matrix.orgalexfmpe* note you probably won't get much caching from nixos.org yet, especially on mac not a problem for your downstream since you have your own caching, but might be annoying now for you if you end up compiling 9.10 to compile 9.12 and such22:45:02
@emilazy:matrix.orgemilya team only means anything if it has defined responsibilities and authority and a clear path to resolution when teams have conflicting needs, which is not something Nixpkgs has historically been any good at22:45:38
@dmjio:matrix.org@dmjio:matrix.orgthis tbh, got so bad I stopped doing version bounds in my cabal file, because you /had/ to use nix to work with ghcjs, stack dropped support, cabal-install was only used for building, nix was the resolver. Now stuff "works" again and the cabal people are upset that I'm making it hard for their constraint solver by underspeciying constraints 22:46:57
@rosscomputerguy:matrix.orgTristan Ross
In reply to @emilazy:matrix.org
a team only means anything if it has defined responsibilities and authority and a clear path to resolution when teams have conflicting needs, which is not something Nixpkgs has historically been any good at
Yeah, one of the things I've learned is if you want something done then you have to take authority because not many people are going to.
22:47:09
@dmjio:matrix.org@dmjio:matrix.orgI think GHCJS just reads all the JS into memory from every dep. to concat it (aka JS linking) and it just blows the heap22:51:48
@dmjio:matrix.org@dmjio:matrix.orga user said builds were taking 8GB resident and minutes to link22:53:14
@alexfmpe:matrix.orgalexfmpeI do remember 16GB ram being recommended minimum for ghcjs linking heh22:53:45
@alexfmpe:matrix.orgalexfmpe data point: I just checked and nix-build -A haskell.packages.ghc810.miso builds on a days-old master 22:54:56
@alexfmpe:matrix.orgalexfmpe it doesn't on haskell-updates, but only like 4 deps fail, I don't mind fixing that 22:55:05
@alexfmpe:matrix.orgalexfmpeso I guess the question becomes, is anyone using miso with ghcjs from today's nixpkgs that would also be driven into a corner if they didn't get to bump nixpkgs until js backend was feature par out of nixpkgs?22:55:11
@alexfmpe:matrix.orgalexfmpe(and that's assuming the ghcjs build works on that nixpkgs, but that build takes longer to have an answer for)22:56:50
@alexfmpe:matrix.orgalexfmpe* (and that's assuming that ghcjs 8.10 build works on this days-old nixpkgs, but that build takes longer to have an answer for)22:57:06
@dmjio:matrix.org@dmjio:matrix.orgthat I'm not sure, there's one person in particular who would know Tysonzer0 and he's not online, but I've pinged to join. All of miso's examples and haskell-miso.org use the 6 year old hash.22:58:04
@dmjio:matrix.org@dmjio:matrix.orgI can make a PR to update my nix scripts and bump the nixpkgs hash to latest see how far it gets. 23:04:18
@dmjio:matrix.org@dmjio:matrix.org alexfmpe let me check the payload sizes again rn and compare with what you've shown 23:04:27
@alexfmpe:matrix.orgalexfmpe I'd say compare with and without -dedupe, but not closure nor compression 23:05:06
@alexfmpe:matrix.orgalexfmpe I'm not sure if -dedupe per-se will come back 23:05:36
@alexfmpe:matrix.orgalexfmpe doyougnu: do you...gnow? 23:05:49
@rhemsuda:matrix.orgKyle joined the room.23:30:40
@dmjio:matrix.org@dmjio:matrix.orgimage.png
Download image.png
23:53:26
@dmjio:matrix.org@dmjio:matrix.org alexfmpe: w/o the -dedupe too .. not sure if that even does anything anymore. There was a time when js-sources were duplicated in all.js though. 3x smaller 23:54:07
@dmjio:matrix.org@dmjio:matrix.org
$ nix-build --arg examples true -A miso-examples
23:54:54
@alexfmpe:matrix.orgalexfmpeHmmm about 2.5x or so. I wonder if the gap goes down considerably post closure and compression23:56:09
@alexfmpe:matrix.orgalexfmpeThough... it might already be less bloated than 1023:57:06
@alexfmpe:matrix.orgalexfmpe* Though... it might already be less bloated than 8.1023:57:13
@alexfmpe:matrix.orgalexfmpeHuh I wonder if I can already build my project with 9.12 js backend23:58:00
@alexfmpe:matrix.orgalexfmpeAh one thing though23:58:56
@alexfmpe:matrix.orgalexfmpeThe stuff coming out of the derivation I pasted and it's all ~10MBs23:59:23
@alexfmpe:matrix.orgalexfmpeI think that's an actual executable23:59:33
@alexfmpe:matrix.orgalexfmpeAt least it is for the hello package23:59:53

Show newer messages


Back to Room ListRoom Version: 6