News for hackers. Stuff that matters.
Re:jc – JSONifies the output of many CLI tools by bitwize on Thursday November 03, 2022 @12:57PM (#33453918)
Replace C with Rust.
Re:jc – JSONifies the output of many CLI tools by synergy20 on Thursday November 03, 2022 @03:41PM (#33456351)
on embedded rust is still much larger than c because rust links its stdlib statically.
Re:jc – JSONifies the output of many CLI tools by bitwize on Thursday November 03, 2022 @04:22PM (#33456947)
There is such a thing as no-stdlib Rust deployments.
Re:jc – JSONifies the output of many CLI tools by synergy20 on Thursday November 03, 2022 @06:12PM (#33458574)
which is for MCUs only and is like a bare metal language without any libraries, its use is very limited.

all I need is that rust's stdlib can be linked dynamically just like c/c++/java/whatever, if that happens I'm ready to switch to it.

Re:jc – JSONifies the output of many CLI tools by maxbond on Friday November 04, 2022 @11:16AM (#33468126)
It seems like you have multiple binaries (otherwise, I don't see how you would save space) in a context without an operating system, but do have abstractions like a linker; throwing this out there, you may be able to sort of fake having dynamically linked binaries with transparent disk compression. The shared code gets compressed, and you trade the overhead of your linker for the overhead of your compression, and probably roughly break even.
Re:jc – JSONifies the output of many CLI tools by synergy20 on Friday November 04, 2022 @12:08PM (#33469021)
nope,not even close,the final size of a few binaries is at least 10x larger