Cross-platform or cross-language

Source: Internet
Author: User

I. cross-platform or cross-language

Cross-platform -- Java

The concept of cross-platform is an important concept in software development. It does not depend on the operating system or the hardware environment.
Applications developed in one operating system can still run in another operating system. Relatively speaking, if a computer language can be highly cross-platform without code modification, the more abstract the language is, the lower the hardware control is. Therefore, it is only suitable for developing highly abstract model systems. Such as Java, Delphi, and easy-to-use languages have all been used across platforms. They can be developed, run, and maintained in multiple systems.

In a broad sense, general computing languages can be used across platforms. Developers only need to provide runtime/middleware environments on various platforms. Strictly speaking, a program compiled in a certain computer language only requires a small amount of modifications. After compilation, the program can run on another platform. At this time, the runtime/middleware environment is not provided. For example, Java is a cross-platform solution that provides the runtime environment, while C is a standard and strict cross-platform language.


Cross-language --. net
 
Cross-language platforms refer to. NET as a countermeasure that Microsoft has made to compete with Java. It includes many previous languages, such as J #, C #, and C ++, that is, the old language is in. the net platform can be used, and the future development direction of the program is a cross-language platform. It is the same system, either written in Java or written in C, similarly, Java and C # can run together, which is a cross-language platform.

 
 
VS
You can use another method to implement cross-platform programming. In UNIX environments, programs written in C can be compiled and run in windows without any changes. Isn't this cross-platform? It just needs to be re-compiled. In addition, I think that, due to the differences in the Running Environments of various platforms, We must imagine that Java can achieve cross-platform implementation in the same language, its efficiency is hard to match the language designed for specific platforms.

Therefore, I think the cross-language implementation method is more effective than the single-language cross-platform method. Of course, the only drawback is that we need to learn multiple languages.

Cross-platform or cross-language. In my opinion, the problem must be viewed from different perspectives. I personally think that cross-language is important from the developer's Perspective (not to say that cross-platform is not important ). From the user's point of view, it makes cross-platform important. As users, the software they want to purchase can run on different platforms without any modification.

 
Summary

Through the "Programming Language" learned during the soft exam review, you can easily understand cross-platform and cross-language as follows:

Same: The First compilation generates their own "bytecode", regardless of the machine.
You must install the "runtime environment" on the running platform. Java is JVM (Java Virtual Machine), and. NET is required. NET Framework.

Different: The Second compilation of Java is automatically performed in JVM.
The second compilation of. Net requires manual execution.

Zookeeper

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.