Hacker News new | ask | show | jobs
by qubax 2821 days ago
The "higher" the language and more declarative. "Higher" because all the lower level work of data structures/etc are taken care of or even embedded into the language itself. "Declarative" because in declarative languages you just express what you want, not how to get it ( which imperative languages have to do ).

Compare "SELECT * FROM TBL1" with what you would need to do in an imperative language.

You would have to open data connection, set up data structures and have to specify step by step what you want. Even if you had libraries doing most of the work, you would still need to specify step by step what you want to be done. Whereas with SQL, you specify what you want and let the language/interpreter/optimizer/engine figure out the rest.

That's only considering "number of characters". Now if you measured "executable size" or memory size or any other impact, it might be different.