Running a website using a 1.3MB self-contained executable

Johan j at j.nl
Mon Jan 20 17:15:35 UTC 2025


On Monday, 20 January 2025 at 08:55:43 UTC, Sebastiaan Koppe 
wrote:
> On Sunday, 19 January 2025 at 21:17:29 UTC, Andrea Fontana 
> wrote:
>> I’ve published an example showcasing how to use serverino to 
>> serve a web server that generates QR codes, without any 
>> external dependencies (not even glibc) and without reading or 
>> writing any files to disk.
>
> Awesome. I tried this many times but due to (transitive) 
> dependencies on glibc always had to give up (e.g. gethostname).
>
> Switching to musl often failed as well because it isn't as 
> supported as glibc in druntime.

LDC 1.39 and up has improved support of musl, including CI 
testing on Alpine. Pretty soon there will also be alpine-musl 
release packages of LDC on Github: 
https://github.com/ldc-developers/ldc/pull/4826 thanks to kinke's 
work.

cheers,
   Johan



More information about the Digitalmars-d mailing list