Hacker News new | ask | show | jobs
by quickthrower2 1030 days ago
It is sort if a shame that tools can’t figure out how to parallelize things without being herded like cattle to do so.

It might be a culture thing. In .NET code I see people running things in parallel a lot within code but maybe this is less so for linux tools.

Maybe functional programming style could lend to a parallel-first programming style, with heuristics to decide when it isn’t worth it.

1 comments

You seem a bit behind or too invested in C# in particular. Elixir for example can run stuff in parallel with just 3-4 added lines of code added to an otherwise sequential code.
Yes of course other programming languages can do this. I was more referring to culture and idioms. The point is that tools don't support it or think about it. And that is because probably things work for most small use cases without it, and that it is a leaky abstraction - you need to change your code to support it.

Imagine a world where there were only GPUs for example - then everyone by default would be running parallel-first code, and in that imaginary world you would need to do nothing to run a series of bash commands piping into each other in parallel.