[HN Gopher] Changelog: Lazy trees (faster Nix builds)
       ___________________________________________________________________
        
       Changelog: Lazy trees (faster Nix builds)
        
       Author : internet_points
       Score  : 32 points
       Date   : 2025-05-25 10:14 UTC (1 days ago)
        
 (HTM) web link (determinate.systems)
 (TXT) w3m dump (determinate.systems)
        
       | cosmic_quanta wrote:
       | The discussion on the PR linked in this post, about upstreaming
       | lazy trees to Nix proper, seems to indicate that some of the
       | benefits also require changing the semantics of the Nix language.
       | 
       | I'm not familiar enough with Nix to understand, but it looks like
       | the performance gains in the blog post might not all materialize
       | to upstream users.
       | 
       | In any case, cool stuff
        
         | sureglymop wrote:
         | I feel like Nix' language may be the biggest hurdle for
         | beginners/newcomers.
         | 
         | Interestingly, I recently found out that someone is working on
         | being able to compile Gleam to Nix:
         | https://codeberg.org/glistix/glistix
        
       | dmvinson wrote:
       | Lazy trees is a long awaited change for many, without it flakes
       | are essentially unusable in monorepos. As a one-time Nix user,
       | Flakes definitely don't seem like an ideal solution but the Nix
       | community lets perfect be the enemy of better too often, and it
       | has the largest following of all the solutions out there (niv
       | being another). Given that, I hope lazy-trees and other
       | improvements that make it actually usable get merged into Nix
       | upstream.
       | 
       | If the NixOS/Nix maintainers don't like flakes/DetSys (which I
       | think is somewhat valid!), they need to put forward a canonical
       | way of pinning channels, otherwise there's not really an
       | alternative standard for the community to build around. The usual
       | answer of just use niv or some other esoteric solution that a
       | subset of hardcore Nix users like isn't enough.
        
       ___________________________________________________________________
       (page generated 2025-05-26 23:00 UTC)