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 ...
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.
Barring actual performance tests of my code (I'm at the design stage), what is the general consensus on interfacing C code into C#? When will it be fruitful to do so, and when would it not?
There is no simple answer.
Most of the time, the overhead of marshaling parameters into and back from methods will be negligible, and often far lower then the processing done inside the function if it's not a trivial function. However, doing it inside a tight, performance-critical loop might violate your performance constraints.
The overhead itself largely depends on type of arguments and return values of the method. It is cheaper to marshal an integer than an array containing structures which contain many strings.
It is impossible to tell without knowing your use cases.
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.
College student about to major in CS. Just want to know if it really matter what language you learn first?
Seems to me CS and the nature of our work is about problem solving. Different language seems to differ in syntax, libraries you can use, etc. etc. But when it comes down to it, if you know how to solve a particular problem in one language, you could do it in other languages as well right? I mean surely some languages are better tools and can do a more elegant job, but at the end of the day the ideas are still the same right?
It doesn't matter what language you use. The algorithm underneath is the main thing that matters.
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.
Over the last few years I have grown rather fond of python. I enjoy coding in it a lot more than in other languages. Recently, a coworker told me that he preferred C#. I am having a hard time understanding his choice. When ever I code with C# I feel like its Java but for Microsoft products only. He also added that he is very pleased with the work Microsoft has put into C#. This seems to contradict what I have been lead to believe.
Anyways, which language would you say is more expressive? Which would you use to develop an application and why? What are some of the advantages and disadvantages of using one over the other?
Thanks!
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
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 9 years ago.
BITS, the Windows background intelligent transfer service.
Looks like there are a few C# wrappers around that manage the interop to BITS, does anybody have any opinions on the best one?
I found problems with using the Managed_BITS codeproject article and I found an even better wrapper:
http://www.codeplex.com/sharpbits
http://nuget.org/packages/SharpBITS
Less code, a lot cleaner and unlike the codeproject, it did not hide away those parts of the BITS interface that I actually need to use.
Check out the following:
http://www.codeproject.com/KB/cs/Managed_BITS.aspx
http://www.simple-talk.com/dotnet/.net-tools/using-bits-to-upload-files-with-.net/