The Nix Hour

The Nix Hour is a weekly beginner-oriented improvised QA-style lecture on Nix, hosted by Tweag. Here you can bring your questions and we'll answer them with more context, examples, alternatives, tradeoffs and related topics. These meetings are open for anybody to join, but also recorded and uploaded to the Tweag YouTube channel. For more information check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767

Curated by: Tweag by Modus Create (81 videos)


Currently Playing: The Nix Hour #47 [lists, thunks and laziness]

Questions can only be asked by voice or chat in the meeting: https://meet.zrh.init7.net/nix-hour. The Nix Hour is an open beginner-oriented Q&A-style lecture on Nix, where you can bring your questions and we’ll answer them with more context, examples, alternatives, tradeoffs and related topics. Matrix room for questions, feedback and notifications: https://matrix.to/#/%23nix-hour:matrix.org Issue tracker for asynchronous questions: https://github.com/tweag/nix-hour/issues Previous sessions playlist: https://www.youtube.com/playlist?list=PLyzwHTVJlRc8yjlx4VR4LU5A5O44og9in For more information and updates, check out https://discourse.nixos.org/t/the-nix-hour-a-weekly-nix-qa-lecture-by-tweag/22767 00:00 Intro 00:34 Q: List internals in Nix https://github.com/tweag/nix-hour/issues/45 01:20 Lists and laziness in Nix 04:08 Detailed description of Nix evaluation steps 17:21 Thunks vs values vs expressions in Nix evaluation 21:23 Back to lists in Nix 21:47 Infinite lists and laziness in Haskell vs Nix 31:22 Complexity of builtins.tail https://nixos.org/manual/nix/stable/language/builtins.html#builtins-tail 42:41 Library functions related to lists https://nixos.org/manual/nixpkgs/unstable/#sec-functions-library-lists 44:15 Folding over lists, lib.foldl' vs lib.foldl 50:56 Q: Simple way to package shell script Nix Hour #28: https://www.youtube.com/watch?v=9l8vx0dcl6k 54:31 Q: How does Nix maintain its laziness? https://github.com/tweag/nix-hour/issues/46 https://nixos.wiki/wiki/Nix_Evaluation_Performance 1:00:41 Outro


Tracks in this Playlist