Call the compiler, fax it your code [video]

ayoreis | 150 points

So my username is a little less ridiculous than I originally thought? :)

The fact that this can introduce OCR bugs into your C code is hilarious, and this is diabolical:

    #define one ( 4 - 3 )
    #define eleven ( 3 + 4 + 4 )

Source code is here https://github.com/lexbailey/compilerfax
faxmeyourcode | a month ago

This is awesome. Using computers for what they're best at: fax and figures.

I'm curious why this requires a reply number in the program, rather than relying on something like Caller ID and sending the reply back to the number that sent the fax.

JoshTriplett | a month ago

Have fun troubleshooting when the OCR keeps mis-identifying one of the semi-colons as a greek question mark!

khaki54 | a month ago

So, as someone who has lived in regions with pretty severe internet censorship in the past and built circumvention software back in the day, I've always pondered the idea of whether one could build a fax-based thing like this for browsing the web. Kind of as like a "last resort" system.^

Could have a form that you fax in with, like a URL and session info (cookies and stuff), and then it faxes back the page, and you can circle stuff and fax the page back to interact and "click on" things.

Plus, since computers can ingest faxes, you wouldn't need to waste paper printing everything out, and could just do everything digitally. But you still had the option to use paper and a fax machine if you really need to.

^: Yes, I know faxes are unencrypted and phone lines can be tapped. But I've always found the idea intriguing. Plus having some emergency point-to-point communication to bootstrap things like key exchange could still be neat.

jabbany | a month ago

This is similar to the workflow for my CS101 class at college in the 70s.

I submitted my deck of cards to a person in the computer center at one of the times the PL/C compiler was scheduled to run (10 AM and 2 PM), I sat and waited, and then my output would be handed to me after it was compiled and run.

fortran77 | a month ago

With Common Lisp, we don't need an infinite roll of paper to prank the faxed compiler. Just

  (progn . #1=((print 'foo) . #1#))
kazinator | a month ago

It would honestly be even funnier if the compiler just sent back your code in x86 assembly.

odo1242 | a month ago

That's got to be actually useful. I can't think how but there's got to be some situation where that is the best solution.

rickreynoldssf | a month ago

Computer floop noises. Nice.

nehal3m | a month ago

it would be a cool competition who makes the nicest program using the fax compiler

l0rn | a month ago

Nothing new, we've been doing it like that for ages here in Germany. But it's a cool Hamburger phone.

davidkunz | a month ago

Can it also compile rust ;)

xyst | a month ago

I don't understand. Is this not how everyone browses the web?

throwway120385 | a month ago

Possibly inspired by this stack overflow question:

https://stackoverflow.com/questions/5508110/why-is-this-prog...

ManWith2Plans | a month ago