| 26 May 2021 |
andi- | IIRC it was tried at the time but it broke things in wild ways. | 10:20:40 |
andi- | Too many advanced bashishms in use.. | 10:20:50 |
andi- | Ideally we would get rid of those but I doubt people want to write more verbose (and hacky?) shell scripts instead. | 10:21:11 |
andi- | In my opinion we should be writing more small C/python/lisp/... programs to take care of whatever bash monsters are currently doing. Problem is that it would not compose as well as a bunch of bash that shares "global" variables... | 10:22:00 |
Gytis Ivaskevicius | would be cool to replace bash with something more modern | 10:22:11 |
Gytis Ivaskevicius | python is not really an option tho | 10:22:19 |
Gytis Ivaskevicius | big dependency | 10:22:23 |
andi- | glibc already depends on python... | 10:22:56 |
Gytis Ivaskevicius | different shell would be nice. nu shell and ion shell seem to be like solid options | 10:23:18 |
Gytis Ivaskevicius | In reply to @andi:kack.it glibc already depends on python... ahh, thats fun. But it is not a runtime dependency | 10:23:47 |
andi- | Yeah they have some build scripts that invoke it. I believe they are doing some code generation from syscall tables or such | 10:24:09 |
Gytis Ivaskevicius | Also python would probably slow things down | 10:24:20 |
andi- | tbh I think one of the reasons nixpkgs is successful is due to bash. | 10:24:24 |
Jonas Chevalier | The macOS libc used to have a runtime dependency on perl | 10:24:41 |
Gytis Ivaskevicius | In reply to @andi:kack.it tbh I think one of the reasons nixpkgs is successful is due to bash. what do you mean? | 10:24:41 |
andi- | The majority of people are "familiar" (to a degree of writing conditionals and assigning vars) with it | 10:24:48 |
Gytis Ivaskevicius | ahh | 10:24:57 |
Gytis Ivaskevicius | Feel free to go over the docs, im sure you peeps will find atleast few things that you like https://doc.redox-os.org/ion-manual/html/ | 10:25:38 |
Gytis Ivaskevicius | it has proper arrays and stuff | 10:25:42 |
andi- | If you now switch that to some estoteric-ish language you'll exclude some people due to raising the barrier for contribution... While I still think that someone that learns Nix properly shouldn't have an issue writing either python / osh / ... | 10:25:48 |
Gytis Ivaskevicius | Also this looks like a very solid alternative to more serious scripts (perl/python) https://deno.land/ | 10:26:25 |
andi- | O.O | 10:26:35 |
andi- | Not sure I want undefined has not attribute bla in my build scripts | 10:26:57 |
andi- | * Not sure I want undefined has no attribute bla in my build scripts | 10:27:03 |
Gytis Ivaskevicius | oh cmon, python is basically same shit. In fact typescript is more secure than python | 10:27:30 |
andi- | what are the bootstrap requirements for deno? | 10:28:06 |
Gytis Ivaskevicius |  Download image.png | 10:28:56 |
Jonas Chevalier | isn't deno a re-implementation of nodejs? | 10:28:58 |
Gytis Ivaskevicius | In reply to @zimbatm:numtide.com isn't deno a re-implementation of nodejs? yes, i guess? | 10:29:13 |
andi- | The good parts about our bash is that it is extensible. You don't have to rebuild the world if you add new features to the build env as you can just pull in some setup hook that is being sourced. | 10:29:20 |