!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

300 Members
Kernel, stdenv, low-level hacking, patchelf, … 74 Servers

Load older messages


SenderMessageTime
21 Dec 2021
@k900:0upti.meK900 ⚡️https://github.com/johnthagen/min-sized-rust20:10:07
@andi:kack.itandi-So I am not against it by definition.20:10:09
@k900:0upti.meK900 ⚡️For tips 20:10:11
@mic92:nixos.devMic92 (Old)I think If we can drop perl from than we probably still save disk space by using rust.20:10:51
@andi:kack.itandi-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:0upti.meK900 ⚡️Depends on the settings 20:11:44
@k900:0upti.meK900 ⚡️LTO will probably OOM 20:11:49
@k900:0upti.meK900 ⚡️Normal builds are definitely within a gigabyte 20:11:55
@k900:0upti.meK900 ⚡️But also you're never going to actually want to BUILD it on a Pi20:12:13
@andi:kack.itandi-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:0upti.meK900 ⚡️And running is definitely not a problem 20:12:26
@andi:kack.itandi-For many a RPi is the only aarch64 box they have access to so that is why I ask.20:12:48
@k900:0upti.meK900 ⚡️ Non-LTO builds fit within like 500MB easy 20:13:28
@mic92:nixos.devMic92 (Old)well. let's try to compile cntr on a pi :)20:13:30
@mic92:nixos.devMic92 (Old)It uses lto20:13:34
@k900:0upti.meK900 ⚡️FatLTO is not enabled by default even for release builds 20:14:10
@k900:0upti.meK900 ⚡️ThinLTO should be a lot smaller 20:14:21
@mic92:nixos.devMic92 (Old)https://github.com/Mic92/cntr/blob/master/Cargo.toml#L33 is this not fat?20:14:33
@linus.heckemann:matrix.mayflower.deLinux Hackerman is moving: @linus:schreibt.jetztI'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:0upti.meK900 ⚡️ true is fat 20:15:10
@andi:kack.itandi-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:0upti.meK900 ⚡️ "thin" is thin 20:15:16
@k900:0upti.meK900 ⚡️ "fat" is also fat if you want to be explicit about it 20:15:30
@andi:kack.itandi-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:0upti.meK900 ⚡️ https://perf.rust-lang.org/index.html?start=&end=&kind=raw&stat=max-rss 20:17:53
@k900:0upti.meK900 ⚡️For reference 20:17:55
@k900:0upti.meK900 ⚡️rustc is actually tiny 20:18:02
@k900:0upti.meK900 ⚡️Also for the systemd stuff it might be a good idea to just use a dbus library 20:19:55
@k900:0upti.meK900 ⚡️And talk to systemd over dbus20:20:00
@andi:kack.itandi- 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

Show newer messages


Back to Room ListRoom Version: 6