!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

231 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture53 Servers

Load older messages


SenderMessageTime
29 Jul 2022
@j-k:matrix.orgj-kis chez -> compiled -> run, actually preferable to a script with JIT?17:13:55
@profpatsch:augsburg.oneprofpatschj-k: the stdenv itself could be pre-compiled17:14:13
@profpatsch:augsburg.oneprofpatschAt least if the model of how chez works is similar to Haskell, you can load pre-compiled libraries.17:14:40
@profpatsch:augsburg.oneprofpatsch(I haven’t verified)17:14:43
@j-k:matrix.orgj-kso now we're discussing: super composaible string arrays & compiled but super fast which are pretty much as far opposite as you can get from eachother 😅 I guess the question is what problem do we actually want to solve17:16:07
@qyliss:fairydust.spaceAlyssa Ross j-k: there's always string arrays 17:17:26
@qyliss:fairydust.spaceAlyssa Rosslike, that's fundamental, from execve17:17:38
@profpatsch:augsburg.oneprofpatschIn my stuff I usually use execline to bind together some small ad-hoc rust utils that do one thing each.17:19:36
@infinisil:matrix.orginfinisil j-k: Main problem to solve is bash 17:19:46
@profpatsch:augsburg.oneprofpatschBut I compile it to an execlineb script, simply because it’s a little easier to debug those. Both approaches have the same semantics.17:20:07
@profpatsch:augsburg.oneprofpatschI might do a little experiment with chez and see how it goes17:20:25
@infinisil:matrix.orginfinisilOther than bash sucking and us wanting to replace it with something better, are there any other motivations?17:21:00
@j-k:matrix.orgj-kI thought the main problem with stdenv mkDerivation is how c & make centric it is17:21:32
@profpatsch:augsburg.oneprofpatschI don’t see a big reason for replacing bash tbh, I’d rather start by designing a replacement for the horrible phases abstraction17:21:35
@profpatsch:augsburg.oneprofpatschAnd the hook stuff17:21:46
@profpatsch:augsburg.oneprofpatschWhich is next to impossible to grok, so all you can do is cargo-cult17:22:24
@qyliss:fairydust.spaceAlyssa Rossyeah, I don't think it's that important17:22:36
@qyliss:fairydust.spaceAlyssa RossI think replacing it with OSH would be a good step, just because it'd be so easy17:22:51
@qyliss:fairydust.spaceAlyssa RossAnd be an evolutionary improvement.17:22:57
@infinisil:matrix.orginfinisilI think bash is holding us back from doing improvements to phases and co.17:23:02
@profpatsch:augsburg.oneprofpatschalthough both might be coupled, because the phases thing is a natural extension of using lots of script interpolation17:23:03
@profpatsch:augsburg.oneprofpatschinfinisil: weak agree17:23:15
@profpatsch:augsburg.oneprofpatschimo the first mistake was not using the fact that nix drvs are nix lists of argv17:23:48
@profpatsch:augsburg.oneprofpatschbut, like, I don’t see how anything but incremental improvements can work, because the amount of code is so big and there’s next to no static analysis possible.17:25:22
@profpatsch:augsburg.oneprofpatschSo OSH sounds like a good step, iff its performance is better or the same17:25:43
@profpatsch:augsburg.oneprofpatschI don’t have a strong will/desire to work on any of this tho (besides my own tiny experiments), so I will stop monologuing now :P17:26:48
@infinisil:matrix.orginfinisilIs the idea to use OSH-specific features to implement better phases and co. then?17:26:59
@qyliss:fairydust.spaceAlyssa Rossno, it's orthogonal17:30:07
@qyliss:fairydust.spaceAlyssa Rossthe idea is to just have a better shell17:30:14
@j-k:matrix.orgj-kwould anything need to change with escapeShellArg need modification for oil?17:41:25

Show newer messages


Back to Room ListRoom Version: 9