The colon and his students (serial 19)--Platform language

Source: Internet
Author: User
Tags garbage collection microsoft c

19. Platform language

See its desire also, it will always consider its hateful also, see it can benefit also, will have to worry about its harm also--"Xunzi"

The comma says: "Now it's time to go to Java." ”

Colon: "The focus of the following is shifted from the system language to platform language--java and C #." ”

The question mark hears confused: "Platform language?" Is Java not a platform-independent language? ”

"Platform is very meaningful, can be a hardware platform, can be software platform, can also be a combination of the two." The colon explains, "platform," you mean the hardware and operating system platform, and I say ' platform ' refers to the operating environment platform. Of course, the two platforms are inseparable, Java and C # can be independent of the previous platform, just because they brought the latter platform. Specifically, Java runs on a Java platform with the Java Virtual Machine (JVM) as its core, while C # runs at the core of common Language Runtime (CLR). NET platform. ”

"It's like laying the same asphalt on a different mountain path, and it doesn't make any difference where the car runs," he said. ”

"Very image. "Colon praise Way," from the perspective of inheritance, both are based on C + + improvement, remove the error or not easy to grasp the grammatical features. Let's take a look at what they are different from C + + in common. First, both are compiled into machine-independent managed code (managed code) or byte-code (bytecode), running on top of the virtual machine machine. Second, disabling or restricting pointers and supporting automatic garbage collection have greatly freed programmers from productivity. Initially this approach is not uncontroversial, but with the improvement of machine performance and the expansion of software scale, the robustness, security and productivity requirements of the software exceed the requirements for operational efficiency, and the shield pointer and automatic memory management are gradually recognized. However, pointers and manual memory management are essential for software that is highly demanding for system software and real-time. One corroboration is that, in addition to not being used for system software, Java also indicates in the JDK disclaimer (disclaimer) that it does not apply to real-time systems such as air traffic or nuclear facilities. ”

The quotation marks are more than true: "Does C # have no such declaration means that it is not subject to this?" ”

"Maybe," he said. "The colon is faint to say," C # 's appetite is very big, on the Tube day, under the tube, the middle also wants to tube the air. Enterprise applications and desktop applications do not need to say, the bottom of the application is not spared. As early as 2003, Microsoft Research began to use C # developed by the singularity of the operating system study project, in addition to SharpOS, Cosmos and other open source operating system. Although they are currently used only for research, it is not hard to see the ambitions of C #. This is also not new, 1998 sun on the embedded system for the Javaos, unfortunately failed to succeed, the Java me to replace. ”

Turn to the exclamation mark confused: "Just said Java and C # is platform language, how and C and C + + when the system language to use it?" ”

Colon explanation: "Java can invoke the C, C + + programs through JNI, C # through P/invoke access to the system API, plus the retention of pointer operations, for system programming more convenient." In fact, a language competent in a variety of areas is not difficult, difficult is in every field is the top. But the question is, who is not happy to see that the language they support is widely used? Whether it is Microsoft or sun, they will do their best to expand their language to every corner. Programmers as a language users, although many times do not have the right to choose the language, but the heart to have Steelyard, can not easily be confused by the advertising business ads AH. ”

Comma not without self-deprecating said: "The scale has a shot, is not very accurate ah!" ”

Someone was "popping" and laughing aloud.

"More learning, more practice, more understanding, the accuracy of the scale will naturally improve." "The colon encourages," if oneself do not have enough to differentiate the commodity ability, the proposal obtains the real information from the merchant's competitor. To see the advantages of Java, do not listen to Sun's word, you can see what Microsoft C # imitate Java features, because imitation is the highest praise; To see the drawbacks of Java, you can see what C # abandoned Java features, you can listen to Microsoft's critique of Java-although it may be extreme, But it's not too outrageous. This method is also applicable to other languages, including C #. ”

The end has regrets: "This is the luck of programmers-language can learn from each other, common progress, but also the misfortune of programmers-often have to make difficult choices in many languages, or more energy to study more languages." ”

The colon nods and says, "Let's continue to look at the similarities between Java and C #." On the topic, let's look at how C # and Java learn from each other. ”

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.