Limit of C# versus languages like Java?

A

Albert

There's tons of articles on the net that say that java works on
solaris, windows, mac etc. Does this mean Microsoft's C# is limited to
Windows? But if not, what limits does it have? Would everyone need
the .NET Redist. to run WEB applications? Is it any faster?
 
M

Michael Nemtsev

Hello Albert,

A> There's tons of articles on the net that say that java works on
A> solaris, windows, mac etc. Does this mean Microsoft's C# is limited
A> to
A> Windows?

No, it's not. There are several opensource .NET FW for the nix and macOs
like Mono or ROTOR.

A> But if not, what limits does it have?

They are slightly different from the MS FW and are step back from the latest
..NET FW features. For example MONO is only starting supports .NET 2.0/3.0
FW features

A> Would everyone need the .NET Redist. to run WEB applications?

Only on the server, where ASP.NET hosted

A> Is it any faster?

Over what?


---
WBR, Michael Nemtsev [C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
J

Jon Skeet [C# MVP]

Michael Nemtsev said:
A> There's tons of articles on the net that say that java works on
A> solaris, windows, mac etc. Does this mean Microsoft's C# is limited
A> to
A> Windows?

No, it's not. There are several opensource .NET FW for the nix and macOs
like Mono or ROTOR.

Not quite. There are several open source common language runtimes.
That's not the same as ".NET frameworks" - .NET is Microsoft's
implementation of the CLI spec, along with extra libraries. .NET
contains more than what's required for a CLR - and many if not most
programs designed to run on .NET will require some of those features.

I realise you acknowledged some of this in the rest of your post, but I
felt it was worth highlighting the difference between "CLR" and ".NET".

A> Is it any faster?

Over what?

Java, presumably - and the answer is "Yes, in some situations - and no
in some other situations".

My experience is that Java and .NET are largely equal in performance,
but some situations will favour one platform and some will favour the
other.
 
A

Albert

Not quite. There are several open source common language runtimes.
That's not the same as ".NET frameworks" - .NET is Microsoft's
implementation of the CLI spec, along with extra libraries. .NET
contains more than what's required for a CLR - and many if not most
programs designed to run on .NET will require some of those features.

I realise you acknowledged some of this in the rest of your post, but I
felt it was worth highlighting the difference between "CLR" and ".NET".




Java, presumably - and the answer is "Yes, in some situations - and no
in some other situations".

My experience is that Java and .NET are largely equal in performance,
but some situations will favour one platform and some will favour the
other.

Will I need to create my own web server to host my own site if I'm
using C# along with ASP.NET? Because I've got a site from my gmail
account that's free. How would I be able to incorporate the .NET code
into that? For that issue, I'm considering making a Java Applet.
However, the java kit isn't 'dragging and dropping' buttons and making
event handlers.
In other words, I want to use ASP.NET using the Web Developer Express
with C# which would be easier than Java but it might be rather
troublesome putting it onto my google page unless I created or
borrowed my friend's web server.
 
J

Jon Skeet [C# MVP]

Albert said:
Will I need to create my own web server to host my own site if I'm
using C# along with ASP.NET? Because I've got a site from my gmail
account that's free.

To use ASP.NET you would indeed have to have an appropriate web server.
There are commercial hosting options, however.
How would I be able to incorporate the .NET code
into that? For that issue, I'm considering making a Java Applet.
However, the java kit isn't 'dragging and dropping' buttons and making
event handlers.

Well, that's a different matter - that's writing *client-side* code.
There are ways of doing that in .NET too - in particular, have a look
at Silverlight 1.1.
In other words, I want to use ASP.NET using the Web Developer Express
with C# which would be easier than Java but it might be rather
troublesome putting it onto my google page unless I created or
borrowed my friend's web server.

What's the bigger picture here? Are you looking to learn a server
technology, or do you just want to accomplish a particular web site
goal?
 
A

Albert

To use ASP.NET you would indeed have to have an appropriate web server.
There are commercial hosting options, however.


Well, that's a different matter - that's writing *client-side* code.
There are ways of doing that in .NET too - in particular, have a look
at Silverlight 1.1.


What's the bigger picture here? Are you looking to learn a server
technology, or do you just want to accomplish a particular web site
goal?

I'm looking for the 'best' way to create a computer program for the
Victorian Science Talent Search (in Australia). I feel that I need to
talk to people about the factors into deciding the programming
language and tools to achieve that goal. The past two times I entered
STS in Computer Programs - Games and Simulations, I created simple
simulations along with a tutorial on the general science topic that I
decided on using Visual C# Express Edition (a Windows application).
Now, I reckon I can move away from standalone programs to ones on the
Web, for a main but very convincing advantage that you need to worry
less about the UI and let the browser shape that and that it is easier
to make it 'portable'. I want to enter STS next year but I'm getting
bored of C# standalone applications.
 
J

Jon Skeet [C# MVP]

Albert said:
I'm looking for the 'best' way to create a computer program for the
Victorian Science Talent Search (in Australia). I feel that I need to
talk to people about the factors into deciding the programming
language and tools to achieve that goal. The past two times I entered
STS in Computer Programs - Games and Simulations, I created simple
simulations along with a tutorial on the general science topic that I
decided on using Visual C# Express Edition (a Windows application).
Now, I reckon I can move away from standalone programs to ones on the
Web, for a main but very convincing advantage that you need to worry
less about the UI and let the browser shape that and that it is easier
to make it 'portable'. I want to enter STS next year but I'm getting
bored of C# standalone applications.

Well, I'd start off by experimenting with ASP.NET on your own box - I'm
sure you can find somewhere to host it later on if you need to.
 
A

Albert

Hello Albert,

A> There's tons of articles on the net that say that java works on
A> solaris, windows, mac etc. Does this mean Microsoft's C# is limited
A> to
A> Windows?

No, it's not. There are several opensource .NET FW for the nix and macOs
like Mono or ROTOR.

A> But if not, what limits does it have?

They are slightly different from the MS FW and are step back from the latest
.NET FW features. For example MONO is only starting supports .NET 2.0/3.0
FW features

A> Would everyone need the .NET Redist. to run WEB applications?

Only on the server, where ASP.NET hosted

A> Is it any faster?

Over what?

---
WBR, Michael Nemtsev [C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

Sorry, but what do you mean by 'only on the server'? I don't know a
great deal about networking other than it is usually dry and I should
know more than I currently do. Does it mean that if I ran Internet
Explorer and directed it to my site that I would need the Framework?
 
A

Albert

Well, I'd start off by experimenting with ASP.NET on your own box - I'm
sure you can find somewhere to host it later on if you need to.

Does ASP.NET only work on Windows?
 
A

Albert

Well, I'd start off by experimenting with ASP.NET on your own box - I'm
sure you can find somewhere to host it later on if you need to.

Can ASP.NET itself create graphics, simulation, animation? Or is it
just an 'extension' to web pages that allows it to be more 'dynamic'
or 'interactive'? Because I don't want to have to learn DirectX or
install a heap of extensions just to get going. The advantage of Java
is that you can directly code graphics and user interfaces, you just
need the defined classes and it all comes in one package, the NetBeans
IDE. However, it's considerably harder and longer since you can't
'click and drag'
 
P

Patrice

ASP.NET is a server side technology and is the part of .NET that provides an
infrastructure for common web programming tasks.

As it runs server side you don't need the framework client side to be able
to *browse* an ASP.NET site (that finally just sends HTML, CSS, javascript
to the browser).

---
Patrice

Albert said:
Hello Albert,

A> There's tons of articles on the net that say that java works on
A> solaris, windows, mac etc. Does this mean Microsoft's C# is limited
A> to
A> Windows?

No, it's not. There are several opensource .NET FW for the nix and macOs
like Mono or ROTOR.

A> But if not, what limits does it have?

They are slightly different from the MS FW and are step back from the
latest
.NET FW features. For example MONO is only starting supports .NET 2.0/3.0
FW features

A> Would everyone need the .NET Redist. to run WEB applications?

Only on the server, where ASP.NET hosted

A> Is it any faster?

Over what?

---
WBR, Michael Nemtsev [C# MVP].
My blog:http://spaces.live.com/laflour
Team blog:http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and
we
miss it, but that it is too low and we reach it" (c) Michelangelo

Sorry, but what do you mean by 'only on the server'? I don't know a
great deal about networking other than it is usually dry and I should
know more than I currently do. Does it mean that if I ran Internet
Explorer and directed it to my site that I would need the Framework?
 
P

Patrice

As said in an other response this is the part of the .NET framework that
provides an infrastructure for web applications and that finally renders
HTML, CSS, Javascript code to the browser (you could do simple anitmations
with this).

Depends the kind of animation you want to do but you could use Flash,
Silverlight, WPF, DirectX etc.. depending on your needs.

IMO your best bet is to google a bit before going back here to post
unresolved questions you may still have then....

For ASP.NET see :
http://quickstarts.asp.net/QuickStartv20/aspnet/Default.aspx
For SilverLight :
http://silverlight.net/
For Flash :
http://www.adobe.com/products/flash/
For WPF :
http://msdn2.microsoft.com/en-us/netframework/aa663326.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top