473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

C# vs Java run on every machine?

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
Jul 22 '05 #1
9 4269

"dalewz" <da****@yahoo.com> wrote in message
news:d9**************************@posting.google.c om...
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?


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
Jul 22 '05 #2
dalewz wrote:
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?


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

Jul 22 '05 #3
dalewz posted:
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

Programming languages that depend on a virtual machine are shit.
-JKop
Jul 22 '05 #4
dalewz wrote:
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


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
Jul 22 '05 #5

"JKop" <NU**@NULL.NULL> wrote in message
news:Qj***************@news.indigo.ie...
dalewz posted:
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

Programming languages that depend on a virtual machine are shit.
-JKop


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
Jul 22 '05 #6
Jorge Rivera wrote:
.NET is a standrad by microsoft.


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

Alan
Jul 22 '05 #7
Matthew Del Buono wrote:
"JKop" <NU**@NULL.NULL> wrote in message
news:Qj***************@news.indigo.ie... <snip>
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


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
Jul 22 '05 #8
Petec posted:
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

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
Jul 22 '05 #9
JKop wrote:
Petec posted:
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

So okay, first of all it's compiled.

==TIME ELAPSES==


Hardly any time, it's extremly quick.

Program runs at speed 95% of proper code.

C# code is "proper" code.

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

No, the 95% includes JIT compilation.

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

While it may not be an "elegant" language, VB is nonetheless a real computer
language.

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

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.

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

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

-JKop


Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
47
by: Theatre Mgmt | last post by:
Sun project seeks to solve Java memory, execution issues http://story.news.yahoo.com/news?tmpl=story&u=/infoworld/20050325/tc_infoworld/58059&e=1&ncid= San Francisco (InfoWorld) - Sun...
133
by: Gaurav | last post by:
http://www.sys-con.com/story/print.cfm?storyid=45250 Any comments? Thanks Gaurav
25
by: wee | last post by:
I've been using Java for a few years now and am just amazed at how many new "technologies" or tools come out all the time (i.e., Struts, Java Server Faces, JMeter, jad, etc.). It is nigh impossible...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
14
by: mlw | last post by:
Do not take anything about this, it is not a flame or troll, while I'm not new to Java I favor C++. However, I may need to use it in a contract position, and am concerned that the restrictions it...
5
by: r035198x | last post by:
Setting up. Getting started To get started with java, one must download and install a version of Sun's JDK (Java Development Kit). The newest release at the time of writting this article is...
29
by: s0suk3 | last post by:
Hello, I was hoping to get some opinions on a subject. I've been programming Python for almost two years now. Recently I learned Perl, but frankly I'm not very comfortable with it. Now I want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.