[Preface] I agree with this article on the two languages. It is better to use C # for quick development. If efficiency is considered, the C ++ kernel works with the C # interface, which is also a common method.
I have never understood whether C ++ is actually more powerful than C? High finger points.
Confusions 1.: Why does the previous Apsara stack version use. NET? I don't feel very useful. I finally gave up. NET and used C ++ to rewrite it.
The version after rewriting is better. Is their technology poor? Or is C ++ really more powerful than C?
Confusions 2: Why has QQ been using C ++ for development. (Although C ++ is the most popular in QQ development, C # is not so popular.
But the concept version QQ only uses the WPF technology to implement its interface, but the kernel is still C ++. Now C # is popular!
Why don't I have a full C # QQ? Or is C ++ really more powerful than C?
After the discussion, some technical staff said that this should be based on specific requirements. In fact, there is no efficiency problem here, and the current computer efficiency is no longer a problem.
If there is a problem with efficiency, how does MSN run? Some people say that MSN is slow?
MSN is slow because the MSN server is in the United States, not because it was written in. NET. As the landlord said, Feixin and QQ (more than Feixin and QQ)
This type of software is generally developed using C or C ++. Why not use. NET?
This involves a user group.
Feixin and QQ are instant messaging software, which has a wide user base. If you are installing Feixin and QQ, he will prompt you to install one first. NET framework.
Are you dizzy?
Even if you know what this is? But you cannot ensure that all common people know. NET framework.
So you may want to ask, directly package. NET Framework into fetion or QQ ?! Don't be naive. the. NET Framework is too big. Even if it is packaged, will it be downloaded for half a day?
The user experience is poor! There is also a cross-platform issue. There is basically no cross-platform issue in C or C ++. What about using. NET? What should I do on Linux and mac OS?
You cannot ask your users to change OS first to use fetion or QQ? Therefore, the official version is generally written in C or C ++.
Is it an open-source version? You can use it easily! As for MSN, It is Microsoft's policy, so it is written in. NET, and official MSN only supports window
(Do you know if the official platform version has been released ?), Generally, you can only use the open-source MSN client on Linux or mac OS!
The 51CTO editor noticed that the technician's point of view was from the operating system perspective, that is, the adaptability of different systems to different development tools.
In particular, how the. NET Framework runs in an open-source system such as Linux.
Some people have expressed their different views on the issue of C ++ rewriting in Apsara: "the new version of Apsara is as always.. NET, and I do not know where to say it is a C ++ rewrite. In fact, there is no such thing.
If QQ is used, you have to consider the Component Reuse issue. Is it unnecessary to change the core that was originally used.
In general, the. NET running efficiency should be inferior to that of the native code, but the performance gap will certainly not be too wide. After all, the virtual machine can optimize the code for the hardware platform, and the Native program is hard to do.
It is indeed a problem that. NET is difficult to ensure code security, but it is also feasible to use various means to increase the difficulty of cracking. After all, even native programs cannot ensure code security by 100% ."
This idea supports the wide application of. NET. However, it is considered that there is no need to adjust the platform because of a mature development method.
C # has a lower level of common intermediate language than C ++, and generates the language of the computer before running, which is less efficient than generating a computer language directly using C ++.
At the earliest time, computer programming was input with a punched out note, which is equivalent to a program recognized by the computer compiled by C ++.
. NET is powerful in development efficiency and easy to maintain (who makes C ++ so many macros, constants ).. Net is not slow. The first loading may take a longer time to load the runtime.
Generally, the execution of commands may be dozens of times slower than that of C/C ++.
, Is the same order of magnitude. If the program written by. NET is slow and intolerable, it is definitely not a. net issue. However, the. NET program occupies more memory. I agree, who wants to load the virtual machine,
Who brought such multi-dimensional data to the type? I am afraid that all virtual machine languages are not good enough.
Some technical personnel put forward this question mainly to weigh it. hosted and encapsulated code will inevitably bring great help to programmers, let's think about the time when programmers used to fight for memory leaks.
C ++ is very good. It is like giving you a mysterious refer to what kind of sharp weapon you want to build. You can build it yourself, but it is not good. No wonder C ++; and C, give you half a sharp sword. You can kill it,
However, if you use the best force, you will be unlucky if you encounter a sword that is better than you.
Encapsulation brings us great benefits. The classification of things is in line with everyone's habits. What about C and C ++? Everything comes from the core. Let's start from the core, this is in line with the thinking of those beginners!
Therefore, the core of many things is C ++. As for the interface or rapid development, it still takes time, but the creator is scarce. If everything is done by the creator, the times are about to go backwards.
Considering the efficiency, I don't have to worry too much about scientific computing or simulation, as mentioned in a building above. In fact, there are not many programs for our sub-cards!
Original: http://www.wrsaw.cn/Article/Print.asp? ArticleID = 13191