!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

236 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.oneprofpatsch but if <bool> then <exp> else <exp> would behave the same in both settings 14:08:35
@profpatsch:augsburg.oneprofpatschinfinisil: yep, exactly14:08:56
@qyliss:fairydust.spaceAlyssa RossNo?14:08:58
@qyliss:fairydust.spaceAlyssa Rossthe syntax is nix syntax14:09:12
@qyliss:fairydust.spaceAlyssa Rossbut i think these semantics are entirely unimportant14:09:36
@profpatsch:augsburg.oneprofpatschI guess the problem is that it’s just not a very well defined term in the first place14:09:37
@infinisil:matrix.orginfinisil Anyways, it doesn't really matter, we can't switch to lisp, and we can't use Nix's if at build time unless a DSL is used 14:10:52
@infinisil:matrix.orginfinisil * Anyways, it doesn't really matter, we can't switch to lisp, and we can't use Nix's if (and other syntax) at build time unless a DSL is used 14:11:06
@infinisil:matrix.orginfinisilOr Nix gets extended with this capability14:11:40
@profpatsch:augsburg.oneprofpatschI’d compare it to e.g. opaleye, which is a Haskell DSL which has some nice static composition properties, and at the end it generates postgres SQL14:11:59
@profpatsch:augsburg.oneprofpatschif you want people to have “the nix everywhere” experience, you’d need something like that14:12:19
@profpatsch:augsburg.oneprofpatschWhether it generates bash, execline, or lisp at the end doesn’t really matter14:12:29
@profpatsch:augsburg.oneprofpatsch… Unless you want to debug it of course :)14:12:41
@infinisil:matrix.orginfinisilI think we don't want that14:13:43
@profpatsch:augsburg.oneprofpatschSomething like chez scheme could e.g. drop you in a debugger that listens on a TCP port14:13:44
@infinisil:matrix.orginfinisilNix is not a general purpose language14:13:49
@profpatsch:augsburg.oneprofpatschwhich you can access from outside the builder14:13:53
@profpatsch:augsburg.oneprofpatsch(provided nix allows it)14:14:03
@profpatsch:augsburg.oneprofpatschI think there was a hack like that for stdenv bash somewhere14:14:24
@profpatsch:augsburg.oneprofpatsch(I’m thinking more people would write low level plumbing if the stdenv was composable and accessible, so dev experience is an important point to think about)14:15:20
@j-k:matrix.orgj-kif like guix there's a spin-off nix-like project that uses lua at all levels should it be called nyx or just nix? 😅 https://en.wikipedia.org/wiki/Nix_(moon)14:19:24
@whentze:matrix.orgWanja HentzeI think the big momentum point for bash is not even "everyone has it in their supply chain already" but "everyone kinda half-knows it already"14:50:13
@whentze:matrix.orgWanja Hentzefrom my personal experience, having a derivation with very little nix in it abut with a big ol' shell script in a string literal leads to something that people inexperienced with nix may feel they can work with at least a little bit14:52:04
@whentze:matrix.orgWanja Hentzethat's an awkard sentence, sorry14:52:15
@whentze:matrix.orgWanja Hentzewhat I'm saying is: the bash parts of our derivations (where I work) are the ones that non-nix-nerds are actually confident touching14:52:50
@whentze:matrix.orgWanja Hentze that being said, there is hardly a day where I don't curse bash to hell for its idiotic parts 14:54:07
@j-k:matrix.orgj-kthe idea with oil is for the most part it's the same as bash & the fancy oil features is what we would use under the hood in stdenv to replace/improve phases so at the top it'd probably look pretty similar14:54:32
@whentze:matrix.orgWanja Hentzeheck, even execline kinda looks shell-y enough where it might work14:55:10
@whentze:matrix.orgWanja Hentze in my experience, people readily put up with having to write RUN build.sh foo bar 14:55:39
@whentze:matrix.orgWanja Hentze they will less readily put up with having to write (run "build.sh" ("foo" bar")) or something 14:56:06

Show newer messages


Back to Room ListRoom Version: 9