News for hackers. Stuff that matters.
Re:How small is the smallest .NET Hello World binary? by H8crilA on Sunday July 09, 2023 @07:18AM (#36653540)
I think this will miss the point though. You can consider the specific .NET runtime as its own compute platform / operating system, regardless of what has to be installed on the machine for the program to actually run, and explore the limits of it. It will teach you a great deal about the binary format of the programs.

You can do this for any format that stores executables, for any programming framework. .jar might be interesting, .py obviously isn't. You can do this for obscure old formats, or for something very common like the standard Linux .elf.

Re:How small is the smallest .NET Hello World binary? by tempodox on Sunday July 09, 2023 @07:36AM (#36653636)
I disagree. I cross-compile F# sources with .NET on my Mac to get a stand-alone Linux executable without additional dependencies that I can upload to my server host. It's enough that I maintain the .NET stuff on my development host, I've got no desire to duplicate that work on the public host.
Re:How small is the smallest .NET Hello World binary? by H8crilA on Sunday July 09, 2023 @10:03AM (#36654514)
What do you disagree with?
Re:How small is the smallest .NET Hello World binary? by tempodox on Sunday July 09, 2023 @11:00AM (#36655009)
Considering the runtime as something separate from a single program. I want both in the same binary.
Re:How small is the smallest .NET Hello World binary? by H8crilA on Sunday July 09, 2023 @11:46AM (#36655448)
It's not about considering this or that, but about making a fun little exercise that tells you how the binary format works.
Re:How small is the smallest .NET Hello World binary? by BiteCode_dev on Sunday July 09, 2023 @08:48AM (#36654063)
> .py obviously isn't

Although .zipapp is to Python what .jar is to .py. Probably even closer to .war.

But for purely stand alone stuff, "nuitka3 /tmp/hello.py --standalone" does output a executable that can be used without the user to manually bring in the Python run time. In that case, the hello world is about 16Mb on Ubuntu.

It would be interesting to do this with MicroPython though.