The popularity of Java in Internet Algorithmics (search, big data, etc.)

I have been writing C / C ++ code for years. I recently started making a lot of Java, because some of the very delicate products that I use to solve my computing problems are written in Java (e.g. Lucene / Solr, Hadoop, Neo4j, OpenNLP, etc.).

Since the last 3-4 years, I see this tea that Java is really very popular in Internet Algorithms (Clustering, Search, Big Data, etc.). Although they are analogues of the products that I mentioned above in C ++ (for example, for Search Sphinx written in C ++, this is a great option, Google has its own map written in C ++, etc.)

I'm just curious to know what factors and forces make Java very popular these days specifically for information retrieval and a large data area .

I just wanted to learn about the strengths of Java that make it very popular in the space of Internet algorithms? Is it just because of platform independence?

+4
source share
2 answers

I would say that Java and C ++ work at the same level outside the arbitrary, far-fetched situations that are used so often to prove that X is faster than Y.

As soon as you take into account network time and other delays in the real world, I don’t see a C ++ application that can give in to the measuring advantage over a Java application simply because it is C ++ and not Java. However, you will see a noticeable difference between a well-written application and a poorly written application.

+3
source

Independence plattform is a good function, but does not always work in java. depending on what you do

java gets its popularity for being safer than c ++

you cannot use pointer arithmetic, and you cannot control the memory allocation yourself

If something is terribly wrong, you get an exception or error, or the program just crashes, but in java you are relatively confident that you will not continue to do what you definitely do not want to do

yes, you can do it all in C ++, but that is not a question, is it?

+1
source

Source: https://habr.com/ru/post/1397761/


All Articles