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

I've heard a joke some time ago that I can't stop thinking about: every program is either a compiler or a database. I still haven't found any counterexample.


> every program is either a compiler or a database

or both!


Or it's just a CRUD website.


That's a user input to SQL compiler


A load balancer? Operating system kernel?


A load balancer is a compiler. Instruction scheduling and register allocation are probably the most similar tasks.

An OS kernel is a database, or rather a DBMS. Query planning fits well.

Arguably, a load balancer is a primitive query planner. Perhaps DBMSes are compilers?


It seems that these arguments can also be applied in reverse, so it's quite a loose interpretation, but I do see the logic in them.




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

Search: