!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

903 Members
For people hacking on the Nix package manager itself189 Servers

Load older messages


SenderMessageTime
8 Jul 2021
@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.deMic92 (Old)Yeah. Everything evaluates single threaded and the gc cannot really garbage collect packages while evaluating.20:46:22
9 Jul 2021
@siraben:matrix.orgsirabenI want to look into literature on gradual typing in general05:12:54
@siraben:matrix.orgsirabenis 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
@manveru:matrix.orgmanveru i dunno, but it seems nickel can't express something like { rules | Record Str -> #Rule } (or however that'd be written) to define that i simply want a record with user-chosen keys but specific value types... 09:40:43
@manveru:matrix.orgmanveru basically rules = mkOption { type = attrsOf (submodule {name, ...}: { ... }; }; in nix 09:42:24
@manveru:matrix.orgmanverudhall had the same problem, which is why i gave up on that :|09:43:06
@manveru:matrix.orgmanveruso i'll stick with Nix and CUE for now, since they can work with such data more easily09:43:44
@manveru:matrix.orgmanveru garbas: are there any plans regarding that? I looked through the nickel docs and examples and didn't find any mention... 09:46:55
@garbas:matrix.orggarbas
In reply to @manveru:matrix.org
garbas: are there any plans regarding that? I looked through the nickel docs and examples and didn't find any mention...
I think Yann had some plans about this, but I think he just didn't have the time to look at this usecase.
09:50:50
@garbas:matrix.orggarbas
In reply to @garbas:matrix.org
I think Yann had some plans about this, but I think he just didn't have the time to look at this usecase.
Could you please create an issue about it to make sure Yann does not forget to look at this usecase?
09:51:33
@manveru:matrix.orgmanveru
In reply to @garbas:matrix.org
Could you please create an issue about it to make sure Yann does not forget to look at this usecase?
sure, will do that :)
09:51:51
@vika:matrix.nice.sampler.fivika (she/her) 🏳️‍⚧️ set a profile picture.16:38:42
10 Jul 2021
@kreyren:tchncs.dekreyren joined the room.08:35:11
@joerg:bethselamin.deMic92 (Old) changed their display name from Mic92 to Mic92 (Old).14:02:19
@mic92:nixos.devMic92 joined the room.14:36:33

Show newer messages


Back to Room ListRoom Version: 6