News for hackers. Stuff that matters.
Re:Main is usually a function, so when is it not? (2015) by alin23 on Monday June 14, 2021 @02:58PM (#27506705)
That’s already mentioned in the third paragraph but it’s nice of you to also include the bytecode in the comment.

> Apparently in 1984, a strange program won the IOCCC where main was declared as a short main[] = {...} and somehow this did stuff and printed to the screen!

Re:Main is usually a function, so when is it not? (2015) by ianhanschen on Monday June 14, 2021 @03:23PM (#27507030)
Barely mentioned, and the author makes us all die inside when they say "Too bad it was written for a whole different architecture and compiler so there is really no easy way for me to find out what it did."
Re:Main is usually a function, so when is it not? (2015) by _kst_ on Monday June 14, 2021 @04:32PM (#27507915)
As the hint explains, it's a combination of PDP-11 and VAX machine code, set up so that either system will run its own code and ignore the foreign code.

You can extract a few ASCII strings from the data. As the hint says: "Can you guess what is printed? We knew you couldn't! :-)"

The ASCII strings I found were "vax", "pdp", "str", "write", and " :-)".

Re:Main is usually a function, so when is it not? (2015) by cptnapalm on Monday June 14, 2021 @10:13PM (#27510569)
So not only did they write something baffling, they also wrote it so that it was semi-portable.
Re:Main is usually a function, so when is it not? (2015) by andrewmcwatters on Monday June 14, 2021 @07:22PM (#27509636)
I wonder what strange and interesting things in the computing world we’ve simply lost by forgetting and from moving on.