PC Review


Reply
Thread Tools Rate Thread

C# is Better Than VB ?

 
 
=?Utf-8?B?RGFuaXlhbA==?=
Guest
Posts: n/a
 
      29th Sep 2005
Hello!!!
I have heard that C# is better than VB because of optimization and standard
of Microsoft .NET development?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFuIE5lZWx5?=
Guest
Posts: n/a
 
      29th Sep 2005


"Daniyal" wrote:

> Hello!!!
> I have heard that C# is better than VB because of optimization and standard
> of Microsoft .NET development?


That depends on which VB you mean. It's better than VB6 for the reasons
you've listed, but VB.NET uses the identical framework and compilation
routines which makes the two equivilant. Langauge differences make some
constructs more natural to do in each langauge. The same is true of any
other language using the CLR.
 
Reply With Quote
 
Bob Powell [MVP]
Guest
Posts: n/a
 
      29th Sep 2005
Strange as it may seem, especially as I am a big C# user that really can't
stand VB on moral grounds ;-)... There are some instances where the VB
compiler generates neater and demonstrably faster code than the exact
equivalent C# code.

However, I only say this as a demonstration of my impartiality.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Daniyal" <(E-Mail Removed)> wrote in message
news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
> Hello!!!
> I have heard that C# is better than VB because of optimization and
> standard
> of Microsoft .NET development?



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      29th Sep 2005
Bob Powell [MVP] <bob@_spamkiller_bobpowell.net> wrote:
> Strange as it may seem, especially as I am a big C# user that really can't
> stand VB on moral grounds ;-)... There are some instances where the VB
> compiler generates neater and demonstrably faster code than the exact
> equivalent C# code.


Interesting - do you have any examples? I've seen the exact reverse,
where the VB.NET compiler generates fewer IL instructions, but bigger
ones, such that the size of a method in bytes is bigger for VB.NET than
for C#. In cases like that, it's possible for the size to go over the
inlined/not-inlined boundary and make the C# code faster. The chances
of that being significant are absolutely miniscule, of course - but I
hadn't heard about the reverse situation.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
clintonG
Guest
Posts: n/a
 
      29th Sep 2005
Well, when all is said and done we might all consider that Vista has been
developed using C#.
There must be at least some valid reasons for that choice so let's see,
could it be because VB.NET has also been developed using C#? Hello?

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


"Daniyal" <(E-Mail Removed)> wrote in message
news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
> Hello!!!
> I have heard that C# is better than VB because of optimization and
> standard
> of Microsoft .NET development?



 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      29th Sep 2005
Hmm... , VISTA the OS, is unmanaged C++ and some assembly code only(still
under development). Guess you are talking about something like Avalon and
Indigo.

Willy.

"clintonG" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Well, when all is said and done we might all consider that Vista has been
> developed using C#.
> There must be at least some valid reasons for that choice so let's see,
> could it be because VB.NET has also been developed using C#? Hello?
>
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>
>
> "Daniyal" <(E-Mail Removed)> wrote in message
> news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
>> Hello!!!
>> I have heard that C# is better than VB because of optimization and
>> standard
>> of Microsoft .NET development?

>
>



 
Reply With Quote
 
William Stacey [MVP]
Guest
Posts: n/a
 
      29th Sep 2005
As an interesting side note, MSR created a research OS (Singularity) using
managed C# to see if they could do it and experiment with ideas. I guess
the perf is much better then they expected. Interesting piece of work.
http://geekswithblogs.net/umesh/arch.../21/40165.aspx

--
William Stacey [MVP]

"Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hmm... , VISTA the OS, is unmanaged C++ and some assembly code only(still
> under development). Guess you are talking about something like Avalon and
> Indigo.
>
> Willy.
>
> "clintonG" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Well, when all is said and done we might all consider that Vista has been
>> developed using C#.
>> There must be at least some valid reasons for that choice so let's see,
>> could it be because VB.NET has also been developed using C#? Hello?
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>>
>> "Daniyal" <(E-Mail Removed)> wrote in message
>> news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
>>> Hello!!!
>>> I have heard that C# is better than VB because of optimization and
>>> standard
>>> of Microsoft .NET development?

>>
>>

>
>



 
Reply With Quote
 
clintonG
Guest
Posts: n/a
 
      29th Sep 2005
That's not what a Microsoft VP was quoted as stating in one of this week's
trade journals (eWeek or Information World as I recall). I think it was the
VP they call Soma who controls the developers group and they were discussing
the reorganization. It was stated that Vista has been developed from the
ground up using C# with a marginal use of unmanaged code in the kernel.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/




"Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hmm... , VISTA the OS, is unmanaged C++ and some assembly code only(still
> under development). Guess you are talking about something like Avalon and
> Indigo.
>
> Willy.
>
> "clintonG" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Well, when all is said and done we might all consider that Vista has been
>> developed using C#.
>> There must be at least some valid reasons for that choice so let's see,
>> could it be because VB.NET has also been developed using C#? Hello?
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>>
>> "Daniyal" <(E-Mail Removed)> wrote in message
>> news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
>>> Hello!!!
>>> I have heard that C# is better than VB because of optimization and
>>> standard
>>> of Microsoft .NET development?

>>
>>

>
>



 
Reply With Quote
 
Bob Powell [MVP]
Guest
Posts: n/a
 
      29th Sep 2005
My March 4th blog entry at http://bobpowelldotnet.blogspot.com explains one
concrete instance.

I think that certain for-each for-next loops are more efficient in VB.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jon Skeet [C# MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Bob Powell [MVP] <bob@_spamkiller_bobpowell.net> wrote:
>> Strange as it may seem, especially as I am a big C# user that really
>> can't
>> stand VB on moral grounds ;-)... There are some instances where the VB
>> compiler generates neater and demonstrably faster code than the exact
>> equivalent C# code.

>
> Interesting - do you have any examples? I've seen the exact reverse,
> where the VB.NET compiler generates fewer IL instructions, but bigger
> ones, such that the size of a method in bytes is bigger for VB.NET than
> for C#. In cases like that, it's possible for the size to go over the
> inlined/not-inlined boundary and make the C# code faster. The chances
> of that being significant are absolutely miniscule, of course - but I
> hadn't heard about the reverse situation.
>
> --
> Jon Skeet - <(E-Mail Removed)>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too



 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      29th Sep 2005
Well, they are wrong (the trade journals ), no single MS VP would ever say
such a thing (ps. the VP of the Developer Division is Somasegar ).
All that's written in managed code (take care, I'm not saying C#, because it
would be wrong also) is Avalon and Indigo (now WPF and WCF), this added to
the upcomming v2. framework is called WinFX, but this is not the OS.


Willy.

"clintonG" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> That's not what a Microsoft VP was quoted as stating in one of this week's
> trade journals (eWeek or Information World as I recall). I think it was
> the VP they call Soma who controls the developers group and they were
> discussing the reorganization. It was stated that Vista has been developed
> from the ground up using C# with a marginal use of unmanaged code in the
> kernel.
>
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>
>
>
>
> "Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hmm... , VISTA the OS, is unmanaged C++ and some assembly code only(still
>> under development). Guess you are talking about something like Avalon and
>> Indigo.
>>
>> Willy.
>>
>> "clintonG" <(E-Mail Removed)> wrote in
>> message news:%(E-Mail Removed)...
>>> Well, when all is said and done we might all consider that Vista has
>>> been developed using C#.
>>> There must be at least some valid reasons for that choice so let's see,
>>> could it be because VB.NET has also been developed using C#? Hello?
>>>
>>> <%= Clinton Gallagher
>>> METROmilwaukee (sm) "A Regional Information Service"
>>> NET csgallagher AT metromilwaukee.com
>>> URL http://metromilwaukee.com/
>>> URL http://clintongallagher.metromilwaukee.com/
>>>
>>>
>>> "Daniyal" <(E-Mail Removed)> wrote in message
>>> news:03144AF7-D843-49D0-943E-(E-Mail Removed)...
>>>> Hello!!!
>>>> I have heard that C# is better than VB because of optimization and
>>>> standard
>>>> of Microsoft .NET development?
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:24 AM.