Connecting Tech Pros Worldwide Forums | Help | Site Map

C# vs Java run on every machine?

dalewz
Guest
 
Posts: n/a
#1: Jul 22 '05
Hi,

I know that java can run on any machine. And C# is competing with
java. I just came back from book store. I found that none of C# books
state that its application can run everywhere. I am wondering if C# is
OS dependable?

Thanks. -Dale

John Harrison
Guest
 
Posts: n/a
#2: Jul 22 '05

re: C# vs Java run on every machine?



"dalewz" <dalewz@yahoo.com> wrote in message
news:d91cf76c.0405221355.4ec333e5@posting.google.c om...[color=blue]
> Hi,
>
> I know that java can run on any machine. And C# is competing with
> java. I just came back from book store. I found that none of C# books
> state that its application can run everywhere. I am wondering if C# is
> OS dependable?
>[/color]

Wrong group, this group is for C++, not C# or Java.

Try

news:comp.lang.java.programmer

or

news:microsoft.public.dotnet.languages.csharp

john


Luther Baker
Guest
 
Posts: n/a
#3: Jul 22 '05

re: C# vs Java run on every machine?


dalewz wrote:[color=blue]
> Hi,
>
> I know that java can run on any machine. And C# is competing with
> java. I just came back from book store. I found that none of C# books
> state that its application can run everywhere. I am wondering if C# is
> OS dependable?[/color]

For clarification, Java applications do not run on any machine.

Java apps and .NET apps both run inside a virtual machine - something
that runs on top of your current operating system.

The Java virtual machine has been ported to several mainstream operating
systems. The .NET virtual machine is really only prevalent on MS
operating systems.

..NET is standardized - so currently, there are a few projects porting
the .NET runtime to other platforms.


-Luther

JKop
Guest
 
Posts: n/a
#4: Jul 22 '05

re: C# vs Java run on every machine?


dalewz posted:
[color=blue]
> Hi,
>
> I know that java can run on any machine. And C# is competing with
> java. I just came back from book store. I found that none of C# books
> state that its application can run everywhere. I am wondering if C# is
> OS dependable?
>
> Thanks. -Dale[/color]


Programming languages that depend on a virtual machine are shit.


-JKop
Jorge Rivera
Guest
 
Posts: n/a
#5: Jul 22 '05

re: C# vs Java run on every machine?


dalewz wrote:
[color=blue]
> Hi,
>
> I know that java can run on any machine. And C# is competing with
> java. I just came back from book store. I found that none of C# books
> state that its application can run everywhere. I am wondering if C# is
> OS dependable?
>
> Thanks. -Dale[/color]

Java can run on any machine that has an implementation of the Java VM.

The equivalen to the Java VM in C# is the CLR, which is part of the .NET
framework. .NET is a standrad by microsoft. The only implementation
outside of Windows that I'm aware of is Mono.

All this rubbish boils down to this.

1. Neither Java nor C# run on any machine.
2. Java is supported in many more platforms than C#.
3. Ask in a Java nesgroup concerning Java, ask in a Microsoft forum for C#.

JLR
Matthew Del Buono
Guest
 
Posts: n/a
#6: Jul 22 '05

re: C# vs Java run on every machine?



"JKop" <NULL@NULL.NULL> wrote in message
news:QjQrc.133$Z14.254@news.indigo.ie...[color=blue]
> dalewz posted:
>[color=green]
> > Hi,
> >
> > I know that java can run on any machine. And C# is competing with
> > java. I just came back from book store. I found that none of C# books
> > state that its application can run everywhere. I am wondering if C# is
> > OS dependable?
> >
> > Thanks. -Dale[/color]
>
>
> Programming languages that depend on a virtual machine are shit.
>
>
> -JKop[/color]

Yeah. How much processing time do you add? Double? Triple? .... Go with a
compiled language. Then distribute the source if you want it compiled on any
system.

-- Matt


Alan Johnson
Guest
 
Posts: n/a
#7: Jul 22 '05

re: C# vs Java run on every machine?


Jorge Rivera wrote:
[color=blue]
> .NET is a standrad by microsoft.[/color]

I find that typo really amusing, considering Microsoft's track record
with standards. :-)

Alan
Petec
Guest
 
Posts: n/a
#8: Jul 22 '05

re: C# vs Java run on every machine?


Matthew Del Buono wrote:[color=blue]
> "JKop" <NULL@NULL.NULL> wrote in message
> news:QjQrc.133$Z14.254@news.indigo.ie...[/color]
<snip>[color=blue]
>
> Yeah. How much processing time do you add? Double? Triple? .... Go
> with a compiled language. Then distribute the source if you want it
> compiled on any system.
>
> -- Matt[/color]

Well-written C# code runs at 95% of the speed of equivilent well-written C++
code.
C# is a compiled language. The first time C# code is ran, it is compiled
tailored to the specific machine of the user.

- Pete


JKop
Guest
 
Posts: n/a
#9: Jul 22 '05

re: C# vs Java run on every machine?


Petec posted:
[color=blue]
> Well-written C# code runs at 95% of the speed of equivilent
> well-written C++ code.
> C# is a compiled language. The first time C# code is ran, it is
> compiled tailored to the specific machine of the user.
>
> - Pete[/color]


So okay, first of all it's compiled.

==TIME ELAPSES==

Program runs at speed 95% of proper code.


Include the first delay and you're probably looking at 80%.


Starting out in programming, I started with Visual Basic. I was weaned off
that to a real programming language, C++.


If you program in the likes of Visual Basic, Java, C#, .NET, then Yes, you
are a computer programmer, but of the lowest order.


I'll love to see someone program an ATM machine in C#, bagsy not writing the
super cool on-the-fly compiler for it.


-JKop
Petec
Guest
 
Posts: n/a
#10: Jul 22 '05

re: C# vs Java run on every machine?


JKop wrote:[color=blue]
> Petec posted:
>[color=green]
>> Well-written C# code runs at 95% of the speed of equivilent
>> well-written C++ code.
>> C# is a compiled language. The first time C# code is ran, it is
>> compiled tailored to the specific machine of the user.
>>
>> - Pete[/color]
>
>
> So okay, first of all it's compiled.
>
> ==TIME ELAPSES==[/color]

Hardly any time, it's extremly quick.
[color=blue]
>
> Program runs at speed 95% of proper code.
>[/color]

C# code is "proper" code.
[color=blue]
>
> Include the first delay and you're probably looking at 80%.
>[/color]

No, the 95% includes JIT compilation.
[color=blue]
>
> Starting out in programming, I started with Visual Basic. I was
> weaned off that to a real programming language, C++.
>[/color]

While it may not be an "elegant" language, VB is nonetheless a real computer
language.
[color=blue]
>
> If you program in the likes of Visual Basic, Java, C#, .NET, then
> Yes, you are a computer programmer, but of the lowest order.
>[/color]

Not sure what you have against such languages, but thanks for the
complement.
I must be "just" a middle order programmer, since I pick the best tool for
the job whether it be C++, C#, VB.NET, or Java.
[color=blue]
>
> I'll love to see someone program an ATM machine in C#, bagsy not
> writing the super cool on-the-fly compiler for it.
>[/color]

Windows CE .Net, a very suitable platform for an ATM machine, comes with the
..Net Compact Framework, a /very/ slightly compacted version of .Net, which
also includes the JIT compiler.

- Pete
[color=blue]
>
> -JKop[/color]



Closed Thread