| 21 Dec 2021 |
Mic92 | I usually like testing with both musl/glibc because than my project is more likely portable to other operating systems as well. But I would not use musl for anything but static executables and maybe embedded systems. It's just slower and space is usually not an issue. | 19:51:18 |
andi- | What would be an adequate language for things like nixos-rebuild-switch, nixos-install etc. if we wouldn't want a runtime interpreter for scripts? | 20:07:43 |
andi- | I've been bit by the reloadIfChanged vs restartTriggers issues once more this week and I really want to get rid of that perl. | 20:08:19 |
Mic92 | rust if you ask eelco :) | 20:08:19 |
Mic92 | or shell | 20:08:30 |
andi- | I am not sure we want rust as those binaries are huge and the compile times aren't great. | 20:08:50 |
Mic92 | Maybe not nixos-rebuild but all the perl scripts. | 20:08:50 |
Mic92 | In reply to @andi:kack.it I am not sure we want rust as those binaries are huge and the compile times aren't great. multi-call binaries? | 20:09:05 |
Linux Hackerman | Oil? :p | 20:09:13 |
andi- | still probably a few Megabyte too many? | 20:09:16 |
andi- | I should give it a try... | 20:09:25 |
K900 | Rust can be compressed way down | 20:09:26 |
K900 | You just need to do a few setting tweaks | 20:09:36 |
K900 | Compile times might be an issue, but still | 20:09:47 |
andi- | I'd be pro Rust if we use all the nice debug and error reporting things we can get in the Rust world | 20:09:56 |
Mic92 | In reply to @andi:kack.it still probably a few Megabyte too many? More like kilobytes if you don't add many libraries | 20:10:02 |
K900 | https://github.com/johnthagen/min-sized-rust | 20:10:07 |
andi- | So I am not against it by definition. | 20:10:09 |
K900 | For tips | 20:10:11 |
Mic92 | I think If we can drop perl from than we probably still save disk space by using rust. | 20:10:51 |
andi- | Whats the memory requirements to build a basic rust tool? Does that impact our targets? Does that work on a RPI3? | 20:11:20 |
K900 | Depends on the settings | 20:11:44 |
K900 | LTO will probably OOM | 20:11:49 |
K900 | Normal builds are definitely within a gigabyte | 20:11:55 |
K900 | But also you're never going to actually want to BUILD it on a Pi | 20:12:13 |
andi- | my concern is not that it should be the default but it should be feasible if you have to fix some issue. | 20:12:22 |
K900 | And running is definitely not a problem | 20:12:26 |
andi- | For many a RPi is the only aarch64 box they have access to so that is why I ask. | 20:12:48 |
K900 | Non-LTO builds fit within like 500MB easy | 20:13:28 |
Mic92 | well. let's try to compile cntr on a pi :) | 20:13:30 |