←back to thread

555 points maheshrijal | 1 comments | | HN request time: 0s | source
Show context
erikw ◴[] No.43709152[source]
Interesting... I asked o3 for help writing a flake so I could install the latest Webstorm on NixOS (since the one in the package repo is several months old), and it looks like it actually spun up a NixOS VM, downloaded the Webstorm package, wrote the Flake, calculated the SHA hash that NixOS needs, and wrote a test suite. The test suite indicates that it even did GUI testing- not sure whether that is a hallucination or not though. Nevertheless, it one-shotted the installation instructions for me, and I don't see how it could have calculated the package hash without downloading, so I think this indicates some very interesting new capabilities. Highly impressive.
replies(5): >>43709469 #>>43709535 #>>43710231 #>>43713910 #>>43714068 #
peterldowns ◴[] No.43709469[source]
If it can write a nixos flake it's significantly smarter than the average programmer. Certainly smarter than me, one-shotting a flake is not something I'll ever be able to do — usually takes me about thirty shots and a few minutes to cool off from how mad I am at whoever designed this fucking idiotic language. That's awesome.
replies(3): >>43709668 #>>43709855 #>>43711694 #
ZeroTalent ◴[] No.43709855[source]
I was a major contributor of Flake. What in particular is so idiotic in your opinion?
replies(2): >>43709901 #>>43709996 #
peterldowns ◴[] No.43709996[source]
I use flakes a lot and I think both flakes and the Nix language are beyond comprehension. Try searching duckduckgo or google for “what is nix flakes” or “nix flake schema” and take an honest read at the results. Insanely complicated and confusing answers, multiple different seemingly-canonical sources of information. Then go look at some flakes for common projects; the almost necessary usage of things like flake-compat and flake-util, the many-valid-approaches to devshell and package definitions, the concepts of “apps” in addition to packages. All very complicated and crazy!

Thank you for your service, I use your work with great anger (check my github I really do!)

replies(1): >>43710266 #
ZeroTalent ◴[] No.43710266[source]
I apologize. It was my Haskell life period.
replies(1): >>43710323 #
peterldowns ◴[] No.43710323{3}[source]
I forgive you as I hope you forgive me. Flakes are certainly much better than Nix without them, and they’ve saved me much more time than they’ve cost me.
replies(2): >>43713871 #>>43750276 #
1. wg0 ◴[] No.43713871{4}[source]
Man ... Classic HN.

But yes unfortunately even if you across the whole functional paradigm, nix is surely complicated. And one single file whole system up is rarely true.