为什么你想如果不是C ++慢用C#? [英] Why would you want to use C# if its slower than C++?

查看:98
本文介绍了为什么你想如果不是C ++慢用C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个新的语言C ++和Java后学习。我要去尝试C#,而是一堆人说,它真的是因为它缓慢的一种高级语言。那么,为什么会有人使用C#?是不是C ++更快?它使开发更容易,但只是有一个较慢的最终产品?

I'm looking for a new language to learn after C++ and Java. I was going to try C#, but a bunch of people say its really slow because its a high level language. So why would anybody use C#? Isn't C++ much faster? Does it make development easier, but just have a slower final product?

此外,什么都能C#中使用呢?您在Windows上有很多东西.NET使用它,并与ASP.NET,但什么是其中一个会使用C#的其他情况?会不会有它会有很多的就业机会?

Also, what can C# be used for? You use it with a lot of .NET stuff on windows, and with ASP.NET, but what are other situations where one would use C#? Will there be a lot of job opportunities for it?

推荐答案

到底谁是这个人帮?什么是他们比较它对抗?

Who exactly is this "bunch of people"? What are they comparing it against?

对于绝大多数的事情,C ++是的的比C快得多#。这当然有在各种情况下的好处,特别是在你想要更多的确定性的内存处理,但在我的经验,在大多数应用中的瓶颈不在地方,C ++会有帮助。由于spoulson说,很多性能是设计,而不是实际的实现 - 而且,它有助于能够轻松地尝试不同的设计

For the vast majority of things, C++ is not "much faster" than C#. It certainly has benefits in various situations, particularly where you want more deterministic memory handling, but in my experience the bottleneck in most applications isn't in places where C++ would help. As spoulson says, a lot of performance is in the design instead of the exact implementation - and there, it helps to be able to try different designs easily.

为什么我们会。使用C#当它是一个的的比C ++慢?因为它一般估计(即有些不以为然:)是一个更容易开发,而不在脚下拍摄自己。

Why would we use C# when it's a bit slower than C++? Because it's generally reckoned (i.e. some disagree :) to be a lot easier to develop in without shooting yourself in the foot.

至于什么C#可用于..你将怎么做的希望的使用它呢?除非你想开发的驱动程序和内核,很可能会替你安排。 (即使OS开发具有使用C#的一些人...)

As for what C# can be used for... what do you want to use it for? Unless you want to develop drivers and kernels, it may well be fine for you. (Even OS development has some folks using C#...)

工作机会?负载。

缺点?那么,.NET本身只是在Microsoft平台上可用。有的,但它不具有相当程度相同可移植性如Java(毫无疑问,根据另一个慢的语言相同的一群人)。

Downsides? Well, .NET itself is only available on Microsoft platforms. There's Mono, but it doesn't have quite the same degree of portability as Java (no doubt another "slow" language according to the same bunch of people).

这篇关于为什么你想如果不是C ++慢用C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆