Skip to content

Comment on The smallest Hello World program

Comments

Could a script be a program?

Because it would be much smaller in a bat file than contains :

echo Hello World!

For the purposes of this challenge, no.

Let’s first establish some rules for our ‘Hello World’ program:
It should be able to execute directly without passing to any other programs first (so no decompression)
It should be a ‘proper‘ executable binary according to the spec

Include the shebang but it’s still crazy how big minimal programs are.

php would be just

Hello World

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.