4 ms·
I think this is a bit disingenuous. Do you also think that Java is multi-process? I can see the argument that an OS thread is a process but it is basically irr
by regecks 10y ago
I think this is a bit disingenuous.
Do you also think that Java is multi-process? I can see the argument that an OS thread is a process but it is basically irrelevant in every way that matters in development and operations.
An example - how do you access the same shared-memory (say, a map/dictionary) from multiple cores in any particular runtime?
- Go: you make a map, you protect the map with a mutex, and you reference it directly.
- Java: same, or ConcurrentHashMap or whatever is available.
- 'Worker'/'forking' runtimes: you can't, right? You move the state to another component (such as Redis), or you use an OS-provided shared memory facility, or you need inter-process RPC etc ...
--
Of course, sometimes workers being separate processes is a virtue rather then a burden ... but I'm not sure this is true in the case of Ruby or Python when it's more purely a limitation of the runtime.
- deleted 10y ago[deleted]