!UUqahLbShAYkkrXmKs:matrix.org

DevOS

36 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
14 Jan 2022
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgLets go for 1 normal release and 1 breaking changes release like last time15:04:16
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org
In reply to @blaggacao:matrix.org
At one point, not only entire flake evals are to be cached, but also individual function calls. If/when that happens, it also means fetchurl and derivatives are prohibitive within the flake body.
yeah, but function calls arent cached between evaluations
15:04:58
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @gytis-ivaskevicius:matrix.org
yeah, but function calls arent cached between evaluations
Afaik, not yet. But I had the impression that this is the long term goal of flakes.
16:03:02
@blaggacao:matrix.orgDavid Arnold (blaggacao) I've been musing about using dqlite as a drop in for sqlite for a while now so to have distributed eval caches 😃 16:03:33
@blaggacao:matrix.orgDavid Arnold (blaggacao) One could think of eval-cache as the "compiled" version of a nix program. So why not distribute (content &/or input) addressed compiled code? 🤕😃 16:04:19
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgPlease elaborate? What's so special about dqlite and how it impacts anything? SQLite contains metadata about derivations only16:05:03
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgYeah, evaluating nix and sharing result as something along the lines of bison would make sense16:06:07
@blaggacao:matrix.orgDavid Arnold (blaggacao)dqlite uses raft to distribute state, so you could construct a mesh with peers (collegues or build servers), for all that is cached in sqlite.16:07:07
@blaggacao:matrix.orgDavid Arnold (blaggacao)Metadata only? I used to think it holds the eval cache.16:08:26
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgI'm pretty sure it's just minimal metadata16:08:49
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgMaybe evaluation of whole flake too. Not sure where that is stored16:09:07
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgActually whole flake eval is probably stored in daemon heap16:09:21
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgAlso these days nixpkgs takes up like 30gb of ram to evaluate....16:09:54
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgIs your SQLite half the size of whole nix store? :d16:10:12
@pachumicchu:myrdd.infoPacman99Nix does use sqlite for eval caching but I believe it creates a separate file meant for eval caching in your home directory. The daemon's db isn't used for eval caching.17:51:34
@pachumicchu:myrdd.infoPacman99And I think its actually multiple databases17:52:08
@pachumicchu:myrdd.infoPacman99Also, with a rebase I feel like https://github.com/gytis-ivaskevicius/flake-utils-plus/pull/89 is ok to merge. Its not a breaking change since it keeps auto channel detection just with a better strategy.18:02:37
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orghttps://github.com/gytis-ivaskevicius/flake-utils-plus/pull/11018:24:53
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgbefore merging this one - can we collectively give some thought if there is a better solution that does the same thing and if there is a better name for it18:25:42
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org
In reply to @pachumicchu:myrdd.info
Also, with a rebase I feel like https://github.com/gytis-ivaskevicius/flake-utils-plus/pull/89 is ok to merge. Its not a breaking change since it keeps auto channel detection just with a better strategy.
lets not 'just merge it', lets do a proper release
18:33:32
@pachumicchu:myrdd.infoPacman99 For 110, another idea is passing adding inputs to the channel, except sort of dropping the system, so you can do inherit (inputs.agenix.packages) agenix; 18:45:56
@pachumicchu:myrdd.infoPacman99Now I'm not yet sure how to implement that18:46:07
@pachumicchu:myrdd.infoPacman99 something like mapAttrs (n: v: if v ? ${prev.system} then v.${prev.system}) inputs 18:46:59
@pachumicchu:myrdd.infoPacman99But then we run into the discussion of whether we should give any overlay access to all the inputs18:47:33
@pachumicchu:myrdd.infoPacman99 * maybe something like mapAttrs (n: v: if v ? ${prev.system} then v.${prev.system}) inputs 18:48:20
@pachumicchu:myrdd.infoPacman99
In reply to @gytis-ivaskevicius:matrix.org
lets not 'just merge it', lets do a proper release
release before or after merging?
18:48:47
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org
In reply to @pachumicchu:myrdd.info
release before or after merging?
at the same time
19:26:40
@pachumicchu:myrdd.infoPacman99Also I'm not super familiar with managing matrix rooms. I have to upgrade the room version to v9 so this room can be discovered in the nixos space. Is it alright if I do that? (just want to make sure there won't be any issues)23:56:45
15 Jan 2022
@blaggacao:matrix.orgDavid Arnold (blaggacao)Let's try and see. 😁 What else can we mere matrix-mortals do?00:28:55
@pachumicchu:myrdd.infoPacman99cool ill do it00:29:17

Show newer messages


Back to Room ListRoom Version: 6