As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How much of a performance penalty are you paying when going to .Net from a vanilla c++ unmanaged environment. I have heard that the difference is smaller now than what it used to be?
I am referring to a PC environment and not embedded systems
The short answer, it depends on what you are doing. There are several places to read about this.
C++ performance vs. Java/C#
Head-to-head benchmark: C++ vs .NET
C# versus C++ versus Java performance comparison
It's absolutely depends on your project.
But remember itat .Net is not designed for high performance computing, but for high productivity.
So, in cases on stressing performance it will almost always loose in front of c, c++ or say python. But if you measure time you need deliver a simple windows based application, full of modern features,, the story almost always will be inverse.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've learned I can make C# with XNA compatable with Mac/Linux through monogame but monogame is a seperately developed from C# so noone knows if they'll keep up with C#'s development?
Is it worth the risk to go with C# or should I play it safe and program in Java for crossplatform compatability?
Depends on the context in which you're developing:
MonoGame supports XNA 4, so if you're happy sticking with XNA 4 long-term then you're fine.
The two languages themselves have various advantages and disadvantages, e.g. see http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java. There's mileage in going with the one that serves your needs better now, unless you have reason to believe you'll need to keep up-to-date with the latest XNA and maintain your game over time.
Portability is a good thing (I'm generally in favour), but it's not the be all and end all. Look carefully at whether you actually need your game to be portable.
Also:
Are you working with others? Which language do they know better? What's their view?
Do you need to recruit/find more people who have experience with one language or the other? Are there more of one or the other in your vicinity?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Instead of needing something like Java, is there a way I could make a program that has a small piece of machine code to compile itself?
It is theoretically possible. But in practice, it would be a lot of work, and the result would not be a small program. In fact, it would be roughly equivalent in size and functionality / complexity to a standard JVM. Which leads to the obvious point that it is unlikely to be worth the effort.
I suggest that you just use a standard JVM, and leverage the (probably) hundreds of man-years of effort that the implementors have put into building high quality JIT compilers ...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
i need to write an web crawler and i need need which is best language for performance like memory and performance ..
Edit: Original title was "which language is optimized for speed and perfomance c++ or C#"
i need to write an web crawler
In that case, the internet traffic is probably your bottleneck, so the language does not matter at all.
I'd say that, if you know what you're doing, C++ is more likely to be efficient than C#.
On the flip side, C# is probably easier to work with and to optimize your app in.
So, since you have to ask, I recommend C# in your case. ;)
C++ virtually always offers the best performance of any language that supports modern programming techniques like generic programming and OOP. You pay a price for this though - it's substantially harder to use than C#.
Of course C++. You can manage every byte of memory there, while C# is Managed Code, where you tell the framework what you want to do and the framework does the things you usually do in C++. But if that's the main motive - don't stop at C++ and get right to machine code, Assembly.
A Google search would give you an instant answer - C++ is (generally) a better performing language.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I've been learning programming for some months now, mainly with java and C#. They seem so similar from my limited knowledge, so I'm trying to grasp an understanding of the practical differences. Could seasoned programmers please enlighten me as to which programming language is more suited for which kinds of jobs?
In what situation would you say "To create this kind of software, java is more suitable than C#" or "To create this kind of sofware, C# is more suitable than java"?
Java was originally designed to be the portable solution. If you need something to run on multiple operating systems you would probably want to go with Java.
From my experience in the financial world, the trend I see most commonly is Java being used on the backend (typically Linux servers) and C# (WPF) being used on the front end. I think this trend is here to stay until either Mono becomes widely accepted or Microsoft figures out a way to make their Server OS's free :)
I'm not saying Java is more suited for back end than C# (although I do think WPF has the edge over anything Java has for front end development) all I'm saying is that this is a very common trend in many financial/trading systems.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
Please, anybody, can you explain what the purpose of C# language and .NET platform?
What do you think about prospects of this language?
thanks in advance.
C# is a great high level language and .NET framework is a massive expandable library. And the whole purpose is to make programmers' lives easier. High level languages let programmers to put more time on solving the main problem rather than dealing with things like portability, serialization, etc.
the purpose of C# is like the purpose of java, except it is only meant for microsoft operating systems (there is a port to linux: mono, but I think you don't have the entire library).
It can be used for web development, desktop development and windows mobile development