Do we need other languages other than C and C + +?

Source: Internet
Author: User

There were hundreds of or thousands of programming languages created since the invention of computer. All these languages has the same target which are to make the computer do and we want it do. So we could find that many languages has the same functions, i.e, one task can be completed by one language can is complete D by another language as well. Now we could wonder why we need so many different languages. Can we just have C or C + + since they provide the best performance we need. The answer obviously is no.

We do need other languages other than C and C + +. Here is the reasons.

the creation of different languages have its own historic reasons . For example, while in 70s, the memory in a computer is limited and the CPU speed is not fast enough Rkable and with an expected performance, we had to create a language which takes relative little memory and at the same t IME does the job we assign to it, with these reasons, we have a C + + created. Later, the performance of CPU and the capacity of memory increased, we can achieve the same performance even with a Relati ve slow language such as Java. Also, it ' s easier to learn and can help us reduce some mistakes which made by C + + programmers frequently--memory leaks.

Computers has reached a point where even ' slow ' languages run fast enough to make the difference in speed irrelevant in M Any cases. We have the luxury now of sacrificing some potential performance to use a language that offers better first-class features And more powerful abstractions, which are important because it lets us get more code out the door in the same amount of TI Me. On average, ten working but not-quite-optimized apps would do a more total good than, and working fast really.

Most programs aren ' t performance-critical. As long as the code is reasonably written, most people won ' t notice the difference between something written in Python and Some optimized code in C + +. If you ' re have performance problems and need to speed something up, the biggest gains would come from improving your data Model or moving your code into a better complexity class. Rare cases, like search services or high-frequency trading, would removing the relatively small penalties from thin GS like language speed actually is worth the cost.

The

Different languages has Different use . Some languages is created for special purpose. They can provide some specified functions or libraries which is not needed in other general languages. For example, you can use the MATLAB to does many things related to signal processing including audio, image etc. These audio and image processing requires a whole different set of functions. One another example is Erlang which are created with concurrency in mind. As current computer have more than one processor, we can let the computers does different things at the same time.

Make it quickly, make it great, make it fast enough to use, and ship it. Anything past that's rarely a good use of your time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.