| 21 Dec 2021 |
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 (Old) | 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 (Old) | well. let's try to compile cntr on a pi :) | 20:13:30 |
Mic92 (Old) | It uses lto | 20:13:34 |
K900 ⚡️ | FatLTO is not enabled by default even for release builds | 20:14:10 |
K900 ⚡️ | ThinLTO should be a lot smaller | 20:14:21 |
Mic92 (Old) | https://github.com/Mic92/cntr/blob/master/Cargo.toml#L33 is this not fat? | 20:14:33 |
Linux Hackerman is moving: @linus:schreibt.jetzt | I'd expect the intersection between people who need to build nixos-rebuild (can't pull it from the cache) _on aarch64_ AND don't have at least a pi with bigger RAM is pretty small? | 20:14:44 |
K900 ⚡️ | true is fat | 20:15:10 |
andi- | Still. I try to help out in a distro for every day people not research student with access to compute farms ;-) | 20:15:11 |
K900 ⚡️ | "thin" is thin | 20:15:16 |
K900 ⚡️ | "fat" is also fat if you want to be explicit about it | 20:15:30 |
andi- | Another concern for e.g. the swiitch-to-configuration case is systemd (udev?) bindings to do some of the stuff that we currently can't or do badly. | 20:17:06 |
K900 ⚡️ | https://perf.rust-lang.org/index.html?start=&end=&kind=raw&stat=max-rss | 20:17:53 |
K900 ⚡️ | For reference | 20:17:55 |
K900 ⚡️ | rustc is actually tiny | 20:18:02 |
K900 ⚡️ | Also for the systemd stuff it might be a good idea to just use a dbus library | 20:19:55 |
K900 ⚡️ | And talk to systemd over dbus | 20:20:00 |
andi- | that is what I meant when I wrote udev above.. I've not been very happy with dbus crates a couple of years ago. | 20:20:36 |