!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

812 Members
For people hacking on the Nix package manager itself175 Servers

Load older messages


SenderMessageTime
8 Jul 2021
@Las:matrix.orgLas
In reply to @balsoft:balsoft.ru
"The surface syntax differences" mean that you have to rewrite all of nixpkgs.
That's what I'm wondering about though
16:24:14
@Las:matrix.orgLasI was wondering if they're going to perhaps add some compatibility mode16:24:21
@Las:matrix.orgLas E.g. parse .nix files with the old Nix syntax 16:24:30
@balsoft:balsoft.rubalsoftLooking at how painfully the introduction of flakes is going (and they are a great feature, with many advantages, and almost trivially compatible with pre-flake nix) the community may not survive something as massive as a switch to another language entirely.16:25:48
@Las:matrix.orgLasI get that16:26:33
@Las:matrix.orgLasI wonder why they didn't just make Nickel Nix with types16:26:39
@Las:matrix.orgLasInstead of making it Almost Nix with types16:26:47
@balsoft:balsoft.rubalsoftThey tried16:26:46
@balsoft:balsoft.rubalsoftThe initiative died16:26:51
@Las:matrix.orgLasHow come?16:26:56
@balsoft:balsoft.rubalsoft https://www.tweag.io/blog/2017-05-23-typing-nix/ 16:27:02
@balsoft:balsoft.rubalsoft https://github.com/NixOS/nix/issues/3042#issuecomment-521188864 16:27:33
@Las:matrix.orgLasThanks16:27:48
@Las:matrix.orgLas That link mentions static typing though, not gradual typing 16:28:20
@balsoft:balsoft.rubalsoftWhat I would love to see is a new distro, built from scratch, with Nickel at its core.16:28:24
@balsoft:balsoft.rubalsoftThen we can evaluate how that worked out and perhaps bring many improvements from there over to Nix(OS)16:28:46
@balsoft:balsoft.rubalsoftThe most basic linux distro (maybe with busybox and musl, for extra simplicity) shouldn't be too long to make.16:29:22
@balsoft:balsoft.rubalsoft* The most basic linux distro (maybe with busybox and musl, for extra simplicity) shouldn't take too long to make.16:29:30
@balsoft:balsoft.rubalsoftJust something without init, that launches into a user-specified executable, all instantiated by nickel and realised by nix.16:30:12
@balsoft:balsoft.rubalsoftIf it turns out Nickel is so great at this that it's feasible to make something more complex -- great, we have another sister project that we can mutually benefit from. If not, learn from mistakes, find the good parts and bring them to NixOS.16:31:30
@Las:matrix.orgLasI think even if you don't use Nickel in NixOS, you could perhaps use its runtime for Nix, so that there's less duplication, because AFAICT you can map any Nix code to equivalent Nickel code. The reason I asked in the first place is because currently Nix evaluation is horribly slow.16:31:45
@balsoft:balsoft.rubalsoftHuh?16:32:06
@balsoft:balsoft.rubalsoftFor me, the only "horribly slow" part is when IFD is involved.16:32:16
@balsoft:balsoft.rubalsoftAnd that can be fixed without a new language.16:32:23
@Las:matrix.orgLasYeah, you could just fix the interpreter16:32:37
@Las:matrix.orgLasbut you could perhaps reuse the one in Nickel, was my idea16:32:47
@Las:matrix.orgLasDoes evaluating your system configuration not take over 1 GiB of RAM?16:33:01
@joerg:bethselamin.deMic92Yeah. Everything evaluates single threaded and the gc cannot really garbage collect packages while evaluating.20:46:22
9 Jul 2021
@siraben:matrix.org@siraben:matrix.orgI want to look into literature on gradual typing in general05:12:54
@siraben:matrix.org@siraben:matrix.orgis there an STLC version of gradual types? something simple so that I can see what kinds of metatheoretical properties are usually proved (in type systems it's usually progress and preservation)05:13:37

There are no newer messages yet.


Back to Room ListRoom Version: 6