usage python rather than java. We debate about performance, he says java absolute win in performance cause its static language and have JIT inside JVM, but not with python even have pypy/cpython etc. What do u think guys about python in performance ? And if python cant do much in performance, so what kind usecase that python are good to use?
Python is horribly slow in most cases. But it makes up for it with development speed. Imo when you're trying to do some computationally expensive work, your better off using something like C++, or use a c library from python. In my experience, if Python's too slow for the job, Java doesn't give you that much improvement.
I find python useful for web scraping, automating stuff and full stack web development
Yes, he is right equally complex programs might have a slower execution time in Python vs Java, is in part due to the dynamic nature of Python. In Java, the definitions of methods and attributes on classes is known at Compile time; once found they aren’t changeable at run time (well not easily anyway - you could play with class loaders to load a different compiled version of the class). This means that at run time for Java when a name is referenced, it is known where that name is defined, which object it belongs to, and what type it is.
Обсуждают сегодня