!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

909 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
8 Jul 2021
@pamplemouss_:matrix.orgpamplemousse
In reply to @Las:matrix.org
Is Nickel in the future going to replace Nix somehow? I was wondering about using Rust in Nix, but remembered that Nickel is written in Rust, but Nickel doesn't seem to be compatible with Nix syntax.

Seems like it.

Nickel is an evolution of the Nix language, while trying to overcome some of its limitations.

https://github.com/tweag/nickel#use-cases

Dunno when (or even how) the transition will happen though ^^

16:21:28
@Las:matrix.orgLasThat's what I'm wondering because it's incompatible with Nix synax16:21:51
@Las:matrix.orgLas * That's what I'm wondering because it's incompatible with Nix syntax16:21:53
@balsoft:balsoft.rubalsoftI hope not :/16:21:53
@Las:matrix.orgLasWhy?16:21:58
@balsoft:balsoft.rubalsoftIt's not compatible with Nix, so instead of a switch it would be like a total rewrite of everything.16:22:52
@Las:matrix.orgLasHow so?16:23:06
@Las:matrix.orgLasOther than the surface syntax differences?16:23:16
@balsoft:balsoft.rubalsoft"The surface syntax differences" mean that you have to rewrite all of nixpkgs.16:23:32
@pamplemouss_:matrix.orgpamplemousse
In reply to @balsoft:balsoft.ru
It's not compatible with Nix, so instead of a switch it would be like a total rewrite of everything.
Not necessarily, there could be tools developped to transpile from Nix to Nickel.
16:23:37
@balsoft:balsoft.rubalsoft
In reply to @pamplemouss_:matrix.org
Not necessarily, there could be tools developped to transpile from Nix to Nickel.
In that case we shall be stuck in a limbo with the disadvantages of both languages until we finish the idiomatic rewrite (which will likely never happen)
16:24:10
@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

Show newer messages


Back to Room ListRoom Version: 6