Похожие чаты

Guys, recently i have debate with some guy about the

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?

3 ответов

13 просмотров

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.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта