!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
12 Aug 2025
@emilazy:matrix.orgemily fyi parse-toml-timestamps is inherently broken and also toml11 is breaking eval compat for it which is blocking the upgrade in Nixpkgs – https://github.com/NixOS/nix/pull/13741#issuecomment-3180851635 20:04:59
@emilazy:matrix.orgemily Sergei Zimmerman (xokdvium)'s patch restores the behaviour of the old toml11 version which seems good for stable releases but I'd suggest considering dropping the feature entirely 20:05:30
@raitobezarius:matrix.orgraitobezariusLord20:07:00
@raitobezarius:matrix.orgraitobezariusIf I gather well, this is under a clear XP feature?20:07:46
@raitobezarius:matrix.orgraitobezariusSo I would also lean on deletion20:08:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)That'd be great20:08:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)The fact that old tests didn't cover the most fucked semantics is infuriating20:09:25
@raitobezarius:matrix.orgraitobezariusYeahh, I suppose I was too optimistic about Tom's small language being well behaving20:10:09
@raitobezarius:matrix.orgraitobezariusAll these fromXYZ file format deserializers are ticking bombs :(20:10:34
@emilazy:matrix.orgemily yes, fromTOML by default rejects timestamps 20:12:14
@emilazy:matrix.orgemilyand I cannot find any evidence of anyone relying on this feature20:12:24
@emilazy:matrix.orgemilyit was introduced for https://github.com/input-output-hk/foliage/issues/46 which didn't seem to ever happen20:12:31
@emilazy:matrix.orgemily(TOML is definitely not well-behaved. the top-level value can only be one type…)20:12:48
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

https://toml.io/en/v1.0.0#local-time

Millisecond precision is required. Further precision of fractional seconds is implementation-specific.

FML

20:13:15
@emilazy:matrix.orgemily I think that the semantics that fromTOML exposes stably should be relatively safe; it's just that experimentally extending it to timestamps turns out to be more complicated than expected 20:13:17
@emilazy:matrix.orgemily that fromTOML cannot handle all of TOML… is suboptimal, but oh well 20:13:32
@emilazy:matrix.orgemilyeasier to expand than shrink :)20:13:47
@emilazy:matrix.orgemilyI do think that the patch should be applied to stable releases, because breaking eval semantics even for experimental features in stable releases seems bad, and the Nixpkgs bump is blocked right now20:14:27
@emilazy:matrix.orgemilybut +2 for dropping for next release20:14:40
@raitobezarius:matrix.orgraitobezariusSomehow obvious amirite20:15:06
@raitobezarius:matrix.orgraitobezariusAlright20:15:39
@raitobezarius:matrix.orgraitobezariusTaking away exp features from stable releases is a bit meh tho20:15:57
@emilazy:matrix.orgemily Sergei Zimmerman (xokdvium)'s patch doesn't take anything away 20:16:16
@emilazy:matrix.orgemily (it computes the previous behaviour back on top of the new toml11) 20:16:27
@emilazy:matrix.orgemilyit's just an unfortunate amount of complexity for a broken feature that's clearly an eval stability liability, so I'd prefer to see a drop on HEAD20:17:01
@emilazy:matrix.orgemilydoing it only for stable releases bounds the lifetime of the complexity20:17:21
@raitobezarius:matrix.orgraitobezariusSorry, you're absolutely right20:17:58
@raitobezarius:matrix.orgraitobezariusThat sounds like a good plan, patch for releases and drop for HEAD20:18:13
@raitobezarius:matrix.orgraitobezariusThank you xokdvium for this!20:18:46
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Sure. I'll bring this issue up at the nix team meeting as well. I'd be in favor of dropping this feature on master. Digging through toml11 def wasn't a great experience.20:20:09

Show newer messages


Back to Room ListRoom Version: 10