4 ms·
Isn't multiprocessing + caching like Redis a good enough workaround? I know that it works well for web applications. Not sure about other domains.
by kumarvvr 9y ago
Isn't multiprocessing + caching like Redis a good enough workaround? I know that it works well for web applications. Not sure about other domains.
- pjmlp 9y agoThe day Python performance gets good enough for companies to even think about doing a complete OS userspace on it, maybe. Until then, no.
- orf 9y agoThat's.... Ridiculous.
- pjmlp 9y agoRidiculous is suggesting Python is capable of replacing Java in what concerns performance. Specially when it needs extensions written in C or C++ for anything that requires it.
- orf 9y agoRidiculous is thinking you could write a whole OS userspace in Java. Ridiculous is making that comment without realising Python is a core part of most modern *nix userspace. try uninstalling Python on a default Ubuntu/Fedora/Centos install and see what still works. I would suggest trying the same with Java, but nobody bundles that by default despite it's JIT. Ridiculous is pontificating about how useless Python is without C/C++, clearly without knowing much about the language and its strengths. I've known people who say the same kind of things, who write reams of very poor, unidiomatic Python code and wonder why it's slow, not wanting to accept that it's their bad code that's slow!
- pjmlp 9y agoJNode, JX, JavaOS, Android are a fact. Let us know when there is an OS with Python userspace that can compare to any of them. Of course Python is a core component of any UNIX system, it is a perfectly good fit as scripting language. As a replacement for complex shell scripts, libraries written in C and C++, or scripting GUI applications.
- orf 9y ago> JNode, JX, JavaOS, Android are a fact. I'm not sure if you're being intellectually dishonest or just willfully ignorant, but except Android all of those projects are long dead or discontinued. It seems Java wasn't a great choice. And while Android uses the same syntax as Java under the hood it's a completely different and doesn't share any code with, one very different from the JVM (Yes, Java != the JVM, but you're whining about the CPython implementation of Python rather than the syntactical differences compared to Java) I mean this whole thread is ridiculous, you start out by saying "Python is bad because you can't write an OS user-space in it" which by itself is entirely ridiculous. You defend this by saying "Java is fast, therefore Python is bad". You like to troll around these Python threads saying the same thing, "boo Python is bad because it's slow" and "boo where is the Python JIT". By all means make these points, but until you put some actual substance into your arguments they will continue to come across as very confused. And honestly it does seem like you are very confused. > As a replacement for complex shell scripts, libraries written in C and C++, or scripting GUI applications. https://en.wikipedia.org/wiki/User_space https://en.wikipedia.org/wiki/User_space
- pjmlp 9y agoThose projects were done and ran in actual hardware. I am making the counter point regarding OP statement that Python is suitable to fully replace Java ,regardless of the implementation. Lets not mix languages and implementations. So given that even PyPy does not match the performance of most Java implementations, it seems a bit hard to consider the scenario of Python fully replacing Java's use cases.
- orf 9y ago
- nicolaslem 9y agoMultiprocessing is not a free launch neither. I rediscovered recently many issues related to fork. Luckily I mostly write IO bound code, so sticking with GILed threads is an option for me.