Уровень 0 · материалов: 2
В кластер входят документы о методах достижения минимального размера исполняемого файла через отказ от стандартных библиотек, и не входят документы об объединении нескольких зависимостей в один файл для упрощения дистрибуции.
Общие признаки: создание компактных исполняемых файлов, уменьшение размера рантайма, избавление от зависимостей и стандартных библиотек, низкоуровневая оптимизация бинарного кода
Группа выше: Минимизация размера кода, демосцена и обфускация
Смысл: The main idea is to demonstrate that through the use of specialized tools like bflat and Crinkler, and by bypassing heavy standard libraries, C# can be used to create extremely small, autonomous native binaries, challenging the perception that .NET apps are inherently bloated.
The author shrinks a C# maze game from a 64 MB standard executable to a 1.9 KB binary using Native AOT, bflat's zerolib, and the Crinkler linker.
Смысл: The text is a technical rebuttal to claims that Rust cannot achieve 'zero runtime' and is inferior to C for low-level systems programming. The author demonstrates through a series of experiments—stripping Rust of its standard and core libraries and using a GCC backend—that Rust can produce binaries as small and independent as those written in C, while maintaining its safety benefits.
The author proves that Rust can achieve 'zero runtime' and produce binaries as small as C by stripping all libraries and using a custom GCC backend.