!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

413 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.137 Servers

Load older messages


SenderMessageTime
14 Dec 2025
@helle:tacobelllabs.nethelle (just a stray cat girl)also behaviour of Flakes is now everywhere in Lix (inherited from CppNix), libfetchers is painful to work on due to this for example and completely mismatched with it's own documentation15:55:57
@helle:tacobelllabs.nethelle (just a stray cat girl)npins would add yet another code path to such a thing15:56:09
@piegames:flausch.socialpiegamesnpins needs another maintainer really15:56:30
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingokay, now i am being blamed for the release not being done bc i haven't finished up my pr xD15:56:31
@helle:tacobelllabs.nethelle (just a stray cat girl)lol15:56:44
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pinggimme another day or two and see how much time i have during work15:57:11
@helle:tacobelllabs.nethelle (just a stray cat girl)but erm, yeah, overlap of npins and Lix, rather high15:57:27
@helle:tacobelllabs.nethelle (just a stray cat girl)my npins PR is going to wait another cycle, I may need to kick a lot of code around, for some very specific use cases16:00:07
@piegames:flausch.socialpiegamesMay I present16:57:30
@piegames:flausch.socialpiegames
» nix-instantiate --parse -E 'with {}; 1.a'
{
  …
  "body": {
    "_type": "ExprCall",
    "args": [
      {
        "_type": "ExprVar",
        "value": "a"
      }
    ],
    "fun": {
      "_type": "ExprLiteral",
      "value": 1.0,
      "valueType": "Float"
    }
  }
}

» nix-instantiate --parse -E 'with {}; 0.a'
{
  …
  "body": {
    "_type": "ExprSelect",
    "attrs": [
      "a"
    ],
    "e": {
      "_type": "ExprLiteral",
      "value": 0,
      "valueType": "Int"
    }
  }
}
16:57:34
@piegames:flausch.socialpiegames
» nix-instantiate --parse -E '0.'
error: syntax error, expecting end of file
       at «string»:1:2:
            1| 0.
             |  ^
 » nix-instantiate --parse -E '1.'
{
  "_type": "ExprLiteral",
  "value": 1.0,
  "valueType": "Float"
}
16:58:16
@piegames:flausch.socialpiegamesIf I die before finishing fixing this stupid language, my ghost will haunt Eelco personally forever until he repents for his sins16:59:06
@piegames:flausch.socialpiegames deprecation noises 16:59:59
@k900:0upti.meK900This is beautiful17:00:00
@helle:tacobelllabs.nethelle (just a stray cat girl) Eelco shakes very painful fist 17:01:15
@kloenk:kloenk.eukloenk psychic damage noises 17:01:29
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔ

... what's with this

# nix-instantiate --parse -E "01.4"
{
  "_type": "ExprCall",
  "args": [
    {
      "_type": "ExprLiteral",
      "value": 0.4,
      "valueType": "Float"
    }
  ],
  "fun": {
    "_type": "ExprLiteral",
    "value": 1,
    "valueType": "Int"
  }
}

... why is that not just a float literal with value 1.4

19:09:30
@piegames:flausch.socialpiegames Quick poll: should function application without spaces be allowed? foo"1"2 19:09:36
@piegames:flausch.socialpiegames
In reply to @522_:catgirl.cloud

... what's with this

# nix-instantiate --parse -E "01.4"
{
  "_type": "ExprCall",
  "args": [
    {
      "_type": "ExprLiteral",
      "value": 0.4,
      "valueType": "Float"
    }
  ],
  "fun": {
    "_type": "ExprLiteral",
    "value": 1,
    "valueType": "Int"
  }
}

... why is that not just a float literal with value 1.4

Because it parses as fucking 01 .4
19:10:03
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔlol19:10:18
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔoh right it's presumably just not legal 19:10:29
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔyeah19:10:35
@piegames:flausch.socialpiegames
In reply to @522_:catgirl.cloud
lol
Yeah because integers can have leading zeroes but not floats
19:11:58
@piegames:flausch.socialpiegamesSo floats with leading zeros of course parse as fucking function application19:12:21
@helle:tacobelllabs.nethelle (just a stray cat girl)still slightly dislike nix does not have hex and oct literals from when we started using it first19:13:11
@522_:catgirl.cloud0x4fbb09 it/its ⛯✇ΘΔ the error for 0xff being "you tried to call 0" is really funny 19:14:31
@helle:tacobelllabs.nethelle (just a stray cat girl)I know it so far has not really come up with anything we wrote, but still it was "okay, huh"19:14:50
@piegames:flausch.socialpiegames Can't be added atm because 0x10 parses as 0 x10 19:15:15
@piegames:flausch.socialpiegamesSo we can deprecate that syntax but can't give it new semantics without langver19:15:42
@helle:tacobelllabs.nethelle (just a stray cat girl)yep, we know, and it rarely comes up19:16:10

Show newer messages


Back to Room ListRoom Version: 10