5 ms·
> Erlang has a simple memory model that cannot do joint parallel tasks. What do you mean?
by hnedeotes 5y ago
> Erlang has a simple memory model that cannot do joint parallel tasks.
What do you mean?
- bullen 5y agoYou have to copy memory before sharing it between threads. You cannot do atomic memory sharing between threads = threads cannot work on the same task at the "same" time efficiently.
- hnedeotes 5y agoThat's actually much a feature. Many problems can still be done quite efficiently, for instance stream parsing a file you can have each N newlines being sent to different processes, and the same with many other problems that can be sliced, traversing nested collections, fetching batches of records from stores, etc. Sometimes you can also reformulate the problem, but yes not all problems fit. I would add though that whenever you want to write orchestration around that parallel work it's much easier in erlang than the alternatives.
- bullen 5y agoMaybe, but some problems, like making a MMO server cannot be solved with Erlang. So everyone that uses this inferior tech is wasting their and humanitys time. Erlang was designed to make many 1-on-1 phonecalls, it's terrible for almost everything else and today 1-on-1 does not exist just like obsolete TV is unidirectional. In the future everything is many 1-to-many (requires joint parallelism) and that is the final protocol just like the final medium is 3D! We need to sharpen up and make the best tools. C (client) and JavaSE (server) are unsuperceded for decades. it's time to stop fragmenting the programmers workspace and co-operate instead. If you use any other languages you are in the wrong and history will prove you to be a wasteful person.
- hnedeotes 5y agoYeah, just look at the amazing tech and tools. The fragmentation is by design and doesn't come through languages. And boy, that's some investment on technology you have there going.
- bullen 5y agoI pick the peak of everything, my house is from 1806, my bike is from 1950, my computers are 8-core Atom 2017 (server) and Jetson Nano 2019 (client)... no house/bike/computer will ever be better ever in the history of the universe. With Java I was just lucky. I learned C++ first and then now 20 years later I learned C, you have to go back in time to see the future. I also went back to the C64 to predict the peak of computers.
- hnedeotes 5y ago> no house/bike/computer will ever be better ever in the history of the universe. Extraordinary claims require extraordinary evidence.
- bullen 5y agoYou cannot prove the future, you can only guess it. But memory will not become faster and therefore CPUs cannot become faster, no matter how many cores they have. Now there are only bad compromises left in optimizing CPUs that lead to other weaknesses like meltdown. That combined with peak lithography is when you know the tech has peaked. Game Over!
- AllegedAlec 5y ago> If you use any other language you are in the wrong and history will prove you to be a wasteful person. You're an idiot. Not because of your choice of tools, but because of your dogmatic shittalking of others for preferring other tools.
- bullen 5y agoI will shittalk waste until my last breath. Freedom of choosing the wrong things costs energy and we're running out of energy. If you are making/playing a 2D game f.ex you are in the wrong, we have two eyes to see depth because the world is 3D!
- AllegedAlec 5y agoTake your meds.