|
When notions on C# and .NET came out to people last year, I thought that I have to move to C# cause MS stands up the language.
(But also MS claims that they will support C++ too, but I feel it's temporary faking. C# is the most spotlighting than any other language by MS. Supports for C++ and VB in .NET lacks much I guess.)
Anyway, I felt C# is superior to past languages and tailored to .NET.
So I decided to move to C# and found it's very modern. It reflects many demands of modern software engineers.
(I would not point the details cause it's already discussed too much on almost every developer's comminity sites.)
Sometimes I feel very lost when found myself confuses with C# and C++ and when I feel I'm getting away from the system, OS and from other subsystems.
But it's bearable until now, I'm happy with ASP.NET and XML Web Services.
And today I feel very surprised to see that C++ holders are little much than C# meeters.
I felt that I had decided too easy to use C# on .NET.
Just a thought.
Regards,
Ryan
|
|
|
|
|
I´m just about to start a new project with VS.NET. The software will be graphic intensive and math intesive. I intend to use C++, not C#. What do you guys think about that ? Would you start it in C# or C++ ?
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
|
|
|
|
|
Mauricio Ritter wrote:
The software will be graphic intensive and math intesive
C++ by all means. I would even consider FORTRAN for this.
I vote pro drink
|
|
|
|
|
Why not write the GUI stuff in C#/C++/VB and the math stuff in Fortran?
One thing that puzzles me a little.. how good is Fortran.NET? Fortran compilers usually generate really really tight and fast native code, which gives it the blazing speed. But what happens in the .NET case? Does the runtime optimize differently for Fortran code? If the outcome in Fortran.NET isn't much better than C++.NET or C#, then why bother using Fortran?
Sonorked as well: 100.13197 jorgen
|
|
|
|
|
Jörgen Sigvardsson wrote:
One thing that puzzles me a little.. how good is Fortran.NET? Fortran compilers usually generate really really tight and fast native code, which gives it the blazing speed. But what happens in the .NET case? Does the runtime optimize differently for Fortran code? If the outcome in Fortran.NET isn't much better than C++.NET or C#, then why bother using Fortran?
I can't answer your question, but if everything is converted to IL under .NET my assumtion is it will not matter greatly what lanquage you use, the result will always be similar. And if using the JIT it will be trqanslated to give the same result.
Just my 2 cents
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
If you can't dazzle them with your brilliance, baffle 'em with your bullsh*t P J Arends
0 = ( ( x^2 - (x-1)^2 ) + (x-1)^2) * ( (x-1)^2 + ( x^2 - (x-1)^2 ) ) - x^4
x != 0
0 = sqrt( x^2 - (x-1)^2 ) - 5
|
|
|
|
|
C++ for sure. I'm yet to see anyone claim that C# is as fast as C++.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
I have a question...
I'm pretty experienced MFC programmer(at least I think so...lol)...
OK, I want to find out from those who had/has experience in C#:
I'm investigating possibilities of converting currently pretty complicated MFC Container Appplication into C#...
It's not WebControl based (eventhough Web Control can be ControlItem in it)...
Just, SDI(MDI) Automation Server with possibility of Windowed Controls Insertion + Persistence...
Maybe, somebody can point me into directions, how and where to start...
Or maybe some sample exists?...
Or maybe it's impossible or hard?...
Or maybe the whole idea is wrong and I should live with my current MFC implementation?...
Please, some views, experiences or ideas!!!...
Thank you very much...
I
|
|
|
|
|
What's your reason for wanting to change it ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Christian Graus wrote:
What's your reason for wanting to change it ?
Good question. Don't fix it if it ain't broken.
I vote pro drink
|
|
|
|
|
Nemanja Trifunovic wrote:
Don't fix it if it ain't broken
Somebody should have told that to Microsoft before they came up with the new look MSDN library
And the new installer used by VS.NET - what were they thinking?
Michael
|
|
|
|
|
Michael P Butler wrote:
Somebody should have told that to Microsoft before they came up with the new look MSDN library
And the new installer used by VS.NET - what were they thinking?
What's wrong with it? I didn't have any problems with either the installer or the MSDN library. In fact I love the new help system, since I can once again dock it in the IDE. A feature I've missed since VC++ 4...
Sonorked as well: 100.13197 jorgen
|
|
|
|
|
Maybe he wants to sharpen it up.
*groan*
________________
David Wulff
http://www.davidwulff.co.uk
"I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg
|
|
|
|
|
David Wulff wrote:
Maybe he wants to sharpen it up.
*groan*
Hard joke David.........
Hard on the nerves, that is...
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Or make a hash of it
Michael
|
|
|
|
|
C# is slow, Java is slower.
Speed of execution is noth either language's strong point.
So why do people compare a weak point.
Do we compare the batting skills of McGrath with that of Danny Morrison [the two worst batsmen in world cricket today, ignoring Prasad who cant hold a bar properly]
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
The comparison goes well beyond speed. Are you saying that if you looked at a C# program and a Java program, had no way of comparing their speed to each other and an equivelant C++ program, you wouldn't notice any similarity ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Picture the daffodil. And while you do that, I'll be over here going through your stuff.
|
|
|
|
|
Christian Graus wrote:
The comparison goes well beyond speed
It should. But a thread below is titled something like C# is faster than Java. That's crazy. They are both slow. IL and ByteCode. Both slow.
Christian Graus wrote:
Are you saying that if you looked at a C# program and a Java program, had no way of comparing their speed to each other and an equivelant C++ program, you wouldn't notice any similarity ?
Huh? I'd expect the C++ program [normal C++, not the managed one] to run a lot faster if it is a complex enough program with respect to speed of execution.
But both the C# written prog and the Java prog would be slow enough, for me to even think of using it in a time-complex situation.
I'd use java and c# in places where speed is not a constraint where the program by its nature is slow-executing. Thus the programs would run at the same speed.
It's like this :- take a floppy disk. Whether you are using a P-4 1GHz or a 486 DX2 the floppy disk access is gonna be at the same speed huh?
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Agreed. But there is always an option of "JITTING" C# code the right way. So you could take a C# code and instruct the CLR to convert it to host machine language (your interpreted program would then essentially become a compiled one) - thus the first time the program would take longer to startup -- but after that it would run at speeds comparable to a native application. No commercially available JVMs (to the best of my knowledge) give you so much flexibility with the JIT, as is given by CLR.
So you can make your C# program run at varying speeds depending upon how you want CLR to "JIT" it.
However thereis still no comparison with the good-old C code. Hay thant's the price you pay for going totally object-oriented & Machine independent
- just my two cents
-kashif manzoor
|
|
|
|
|
Hello kashif
I am not very sure of this. But my Linuxite friend says that the new GCC compiles java programs into native code.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
gcc is for compiling C code. The whole point of Java is gone if it is compiled.
--
Andrew.
|
|
|
|
|
|
Andrew Peace wrote:
gcc is for compiling C code.
Well it compiles java too.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
My mistake - I apologise . I presume it doesn't produce native code though - otherwise what would be the point in Java?
--
Andrew.
|
|
|
|
|
Andrew Peace wrote:
My mistake - I apologise . I presume it doesn't produce native code though - otherwise what would be the point in Java?
The assumption is incorrect. GCC compiles Java to native code. I dunno what's wrong with that as long as GCC can do it for every platform the program is supposed to run on.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Yeah but if it's delivered over the 'net that kinda thing can't be used, so in that context I guess Java becomes more like C++ expect different syntax. I am no Java expert as you've guessed - not a big fan to be honest. I don't even have the VM installed for IE .
--
Andrew.
|
|
|
|