4 ms·
The best projects I find are small libraries that mostly use other small libraries that mostly... Less a flat bus than a pyramid. Within-language interfaces ca
by lmm 11y ago
The best projects I find are small libraries that mostly use other small libraries that mostly... Less a flat bus than a pyramid.
Within-language interfaces can be incredibly rich, conveying a huge amount of information. When you split into separate components you throw all that away, and end up spending more time parsing and marshalling than actually doing your business logic. The right data structure can make the problem look trivial, and is far easier to understand than the behaviour of a system of loosely coupled pieces.
- it 11y agoErlang doesn't require any programming effort to parse and marshal messages. You just send them and receive them. Pid ! {hello, world} receive {hello, world} -> io:format("Received hello.~n", []) end
- _yosefk 11y agoThere's a lot of machine effort though, if the data structures are big. If you're doing computer graphics or vision and you have to send images or 3D assets around, it won't perform very well. I think Armstrong consistently underestimates the cost of messaging compared to shared memory - or rather the fact that systems where this cost is prohibitive exist, just as much as systems where his approach works great exist.