!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

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

Load older messages


SenderMessageTime
2 Aug 2022
@profpatsch:augsburg.oneprofpatscherr06:33:20
@profpatsch:augsburg.oneprofpatsch(lam { x = 4; } [(sym "+") 38 (var "x")])06:33:26
@profpatsch:augsburg.oneprofpatschStill doesn’t make sense I need some caffeine. Not trivial tho :)06:34:04
@profpatsch:augsburg.oneprofpatschI guess the advantages over just writing the sexp in a string are miniscule.06:35:33
@profpatsch:augsburg.oneprofpatsch(which of course always has the problem that people are lazy and not escaping is nearly always easier than escaping)06:36:22
@infinisil:matrix.orginfinisil John Ericson: Is it right to say that this code here is the main handling of cross compilation? https://github.com/NixOS/nixpkgs/blob/34d312e938349998e50a887eda3e07bb54e877ff/pkgs/stdenv/generic/setup.sh#L312-L657 10:00:51
@infinisil:matrix.orginfinisilI'm creating a list of things bash is currently used for10:02:15
@infinisil:matrix.orginfinisilMy dropbox storage for recordings has almost run out, so I created a YouTube channel for this team and uploaded the recordings there: https://www.youtube.com/channel/UC_BFweJOiukTHdKCr1P0kRQ11:02:58
@infinisil:matrix.orginfinisilI did ask the owners of https://www.youtube.com/c/NixOS-Foundation if I could upload videos there, but I didn't get a reply..11:03:43
@qyliss:fairydust.spaceAlyssa RossWe have PeerTube and YouTube channels for NixCon, but I guess this isn't really NixCon…11:06:48
@infinisil:matrix.orginfinisil
In reply to @infinisil:matrix.org
I did ask the owners of https://www.youtube.com/c/NixOS-Foundation if I could upload videos there, but I didn't get a reply..
(It's a bit more complicated than that. I asked multiple people, but they either didn't have permission for giving others upload rights, or didn't reply)
11:15:56
@infinisil:matrix.orginfinisil
In reply to @infinisil:matrix.org
I did ask the owners of https://www.youtube.com/c/NixOS-Foundation if I could upload videos there, but I didn't get a reply..
* (It's a bit more complicated than that. I asked multiple people, but they either didn't have permission for giving others upload rights, or didn't give an answer)
11:16:05
@infinisil:matrix.orginfinisil

Summarizing the generic problems of bash, here's the ones I can think of:

  • No data structures or other abstractions
  • No proper modules/libraries
  • Not testable
  • Poorly documentable
11:57:11
@infinisil:matrix.orginfinisilNot testable is a big one imo11:57:30
@infinisil:matrix.orginfinisilIf we could properly test all the bash setup hooks in nixpkgs we'd be much less afraid of changing them and breaking everything11:58:16
@j-k:matrix.orgj-k
In reply to @infinisil:matrix.org
Not testable is a big one imo
I know someone who's a big fan of bats that would disagree 😅
11:59:34
@infinisil:matrix.orginfinisilbats?11:59:48
@j-k:matrix.orgj-kMy only worry is everyone accepts bash, g12:00:01
@j-k:matrix.orgj-k * https://github.com/bats-core/bats-core12:00:13
@infinisil:matrix.orginfinisilNeat! We should consider this as an option too12:01:10
@j-k:matrix.orgj-kMy main worry with having the lowest level of nixpkgs, and similarly the rest of nixpkgs, using something other than bash is bash is well accepted, getting people to be happy with a different tool can be extra onboarding friction12:01:25
@infinisil:matrix.orginfinisilI believe most users won't have to interact with bash directly12:02:21
@infinisil:matrix.orginfinisilAn estimated 95% of packages don't rely on bash-specifics12:02:45
@infinisil:matrix.orginfinisilAs in, the packages Nix expression12:03:00
@j-k:matrix.orgj-kit's not about interaction, its about tool ingestion. People are finally cluing up on supply-chain security and actually reviewing they programs they depend on12:03:20
@infinisil:matrix.orginfinisilDoes bash have an advantage there?12:04:21
@infinisil:matrix.orginfinisilE.g. one of the alternatives that has been considered is Lua12:04:43
@j-k:matrix.orgj-kI don't think there's a single organization on the planet that would have to go out of their way to approve bash. everyone accepts it as a dependency of something12:05:11
@infinisil:matrix.orginfinisilYou do have a point there12:05:54
@j-k:matrix.orgj-kcurrently you'd just need to say, "we need to onboard nix, the rest is likely onboarded: stdenv tools which are pretty standard everywhere (core-utils, gcc), fetchers that use git & curl". Adding in 1 extra odity is probably not a big blocker but it is another blocker12:08:03

Show newer messages


Back to Room ListRoom Version: 9