|
|
|
|
|
by fifilura
816 days ago
|
|
> you can print iteration by iteration the intermediate result You would not be able to do that with a multi-threaded/multi-process application. And this is the reason why e.g. Trino/Presto is so powerful together with SQL. Instead of telling the computer how to go by to get your result, you tell it what result you want and let it do it in the best way. The most up-front way of telling a computer "how" is a for-loop. And SQL does not have it. It may seem limiting, but avoiding explicit for loops gives the freedom to the computer. If it sees it fit to distribute that calculation over 200 distributed CPUs it can do that. With an imperative language you need to tell the computer exactly how it should distribute it. And from there it gets really hairy. |
|