!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

290 Members
Kernel, stdenv, low-level hacking, patchelf, … 72 Servers

Load older messages


SenderMessageTime
21 Dec 2021
@mic92:nixos.devMic92I 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:kack.itandi-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:kack.itandi-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:nixos.devMic92rust if you ask eelco :)20:08:19
@mic92:nixos.devMic92or shell20:08:30
@andi:kack.itandi-I am not sure we want rust as those binaries are huge and the compile times aren't great.20:08:50
@mic92:nixos.devMic92Maybe not nixos-rebuild but all the perl scripts.20:08:50
@mic92:nixos.devMic92
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
@linus.heckemann:matrix.mayflower.deLinux HackermanOil? :p20:09:13
@andi:kack.itandi-still probably a few Megabyte too many?20:09:16
@andi:kack.itandi-I should give it a try...20:09:25
@k900:0upti.meK900Rust can be compressed way down 20:09:26
@k900:0upti.meK900You just need to do a few setting tweaks20:09:36
@k900:0upti.meK900Compile times might be an issue, but still 20:09:47
@andi:kack.itandi-I'd be pro Rust if we use all the nice debug and error reporting things we can get in the Rust world20:09:56
@mic92:nixos.devMic92
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:0upti.meK900https://github.com/johnthagen/min-sized-rust20:10:07
@andi:kack.itandi-So I am not against it by definition.20:10:09
@k900:0upti.meK900For tips 20:10:11
@mic92:nixos.devMic92I 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.meK900Depends on the settings 20:11:44
@k900:0upti.meK900LTO will probably OOM 20:11:49
@k900:0upti.meK900Normal builds are definitely within a gigabyte 20:11:55
@k900:0upti.meK900But 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.meK900And 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.devMic92well. let's try to compile cntr on a pi :)20:13:30

Show newer messages


Back to Room ListRoom Version: 6