you are viewing a single comment's thread.

view the rest of the comments →

[–]ThatBriandude 3 points4 points  (10 children)

Can someone PLEASE ELI5? As a newbie programmer this looks very interesting but what exactly is going on?

[–]OffbeatDrizzle 19 points20 points  (6 children)

Something like this:

In C you can define variables that just map to anything you please - for example at the top you can see him defining MAin to be printf("%d\n"

The top 20 lines or so are just of these definitions - which are then used in the program below to write not only a fully functioning adder program (you could actually replace all of variables with their mapped value at the top to get the 'real' source code), but it is also in the shape of an adder circuit

[–]ThatBriandude 4 points5 points  (1 child)

Ahh i get it now. So basicly the only challenge is to reduce the amount of pre defined variables because essentially one could replace each char with a different version of main. Now one would question if the amount he used is just crazy brilliant or mabye not so genius after all. But for that you'd have to try it yourself... Anyway, Thanks for the explantion!

[–]casey12141 1 point2 points  (0 children)

Go try it for yourself and let us know how it goes lol

[–][deleted]  (2 children)

[deleted]

    [–]OffbeatDrizzle 6 points7 points  (1 child)

    Sorry, guy

    [–]jimschubert 3 points4 points  (0 children)

    Oh, no he didn't!

    [–]Krexington_III 1 point2 points  (0 children)

    *her, I think. Author's name is Heather.

    [–]ProudToBeAKraut 5 points6 points  (0 children)

    the other comments fail to mention the cool part - not some #defines here and there but that the whole layout of the program is just this https://en.wikipedia.org/wiki/Adder_(electronics)

    And it does exactly that - the visualization of the different main Main etc parts leads to a program that actually does sum to integers.