Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> - a C++ compiler written in C++ in millions of lines of code

    #include </dev/tty>
This most beautiful program ever doesn't even need to be compiled, it's a JIT compiler in 1 line of code.


Does that work?


Sort of

  $ cat lol.c 
  #include <stdio.h>
  #include </dev/tty>
  $ gcc lol.c
  int main() { printf("lol\n"); } // hit Ctrl+D
  $ ./a.out 
  lol


Hah nice.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: