473,795 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What has managed code achieved?

Hi

What are the advantages actually achieved of managed code? I am not talking
of theory but in reality.

Thanks

Regards
Oct 20 '08 #1
66 3378

"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality.
http://en.wikipedia.org/wiki/CLI_Languages
<http://it.toolbox.com/blogs/paytonbyrd/day-1-introduction-to-managed-code-and-the-net-infrastructure-6588>

Oct 20 '08 #2
On Oct 20, 3:06*am, "John" <i...@nospam.in fovis.co.ukwrot e:
Hi

What are the advantages actually achieved of managed code? I am not talking
of theory but in reality.

Thanks

Regards
Check these out:
http://en.wikipedia.org/wiki/Managed_code
http://www.datadirect.com/developer/...tage/index.ssp
http://en.wikipedia.org/wiki/Microsoft_.NET

As your managed code runs under supervision of CLR, it's well-
maintained for .NET framework and the concepts what .NET includes such
as performance, compatibilty and security.

HTH,

Onur Güzel
Oct 20 '08 #3
If you think about VB 6.0, which was not managed, developers had to write
lots of extra code that didn't necessarially have anything to do with the
programming problem. Developers had to write extra code to ensure memory
was managed correctly (set x = Nothing) and if they didn't, the program
would develop memory leaks. Developers also had to write addional code to
handle certain security and performance issues as well.

In the managed environment of the .NET CLR, much of this work is
automatically managed by the CLR through its code access security, garbage
collection, & MSIL.

The real, tangible advantages are that less code is written and that the
resulting programs are more robust and cross-language compatible.

-Scott

"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality.

Thanks

Regards


Oct 20 '08 #4
John,

What do you think?

Cor

"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality.

Thanks

Regards

Oct 20 '08 #5
re:
!What are the advantages actually achieved of managed code?

Imho, the greatest achievement for managed code is: it gets rid of "dll hell".

There's also automatic memory management, platform-neutrality, and cross-language integration.

Performance benefits are gained from executing all code in the CLR.
Calling unmanaged code decreases performance because additional security checks are required.

Other performance advantages are available through the use of the Just-In-Time compiler,
with gains in built-in security by using code access security and the avoidance of buffer overruns.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"John" <in**@nospam.in fovis.co.ukwrot e in message news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi

What are the advantages actually achieved of managed code? I am not talking of theory but in reality.

Thanks

Regards


Oct 20 '08 #6
But have we traded one kind of DLL hell for another? How many versions of
the Framework are loaded on your system? How is COM-based DLL management any
different than GAC-cached modules that can be replaced without retesting the
consumer applications? Since we now must wait while the code is compiled
before it can be executed, the performance argument might not hold water for
some applications. Notice how long it takes to launch the Report Manager...
I expect that managed code has managed to disenfranchise a lot of perfectly
good COM developers...

--
_______________ _______________ _______________ _______________ ______________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
_______________ _______________ _______________ _______________ _______________ _______________ __

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:OJ******** ******@TK2MSFTN GP04.phx.gbl...
re:
!What are the advantages actually achieved of managed code?

Imho, the greatest achievement for managed code is: it gets rid of "dll
hell".

There's also automatic memory management, platform-neutrality, and
cross-language integration.

Performance benefits are gained from executing all code in the CLR.
Calling unmanaged code decreases performance because additional security
checks are required.

Other performance advantages are available through the use of the
Just-In-Time compiler,
with gains in built-in security by using code access security and the
avoidance of buffer overruns.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
>Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality.

Thanks

Regards


Oct 20 '08 #7

"Juan T. Llibre" <no***********@ nowhere.comwrot e in message
news:OJ******** ******@TK2MSFTN GP04.phx.gbl...
re:
!What are the advantages actually achieved of managed code?

Imho, the greatest achievement for managed code is: it gets rid of "dll
hell".

I think this depends on whether or not your regard the problems with the GAC
as another type of DLL hell,as it sounds like both I and Bill do. ;-)

For most, however, this is a definite advantage, as most do not use the GAC
much and those who do know how to version (maybe?).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

*************** *************** **************
| Think outside the box! |
*************** *************** **************
Oct 20 '08 #8
Less Blue Screens by junior developers. ;-)

Realistically, from my COM days, the biggest real world advantage is not
having to register everything and the pain associated with registering
development builds to properly test.

Of course, if you use MTS, you had the option of dropping the running
process and droppping a new COM DLL over the old DLL. But this was thinking
WAY outside the box. You also ended up having to add the weight of MTS to
your app. Not too bad with web apps, which already had most of the weight.
Not as exciting for other apps.

With .NET, however, you can do this without a kludge. So that is a real
world advantage.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

*************** *************** **************
| Think outside the box! |
*************** *************** **************
"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality.

Thanks

Regards


Oct 20 '08 #9
Juan T. Llibre wrote:
re:
!What are the advantages actually achieved of managed code?

Imho, the greatest achievement for managed code is: it gets rid of
"dll hell".
Replaces it with assembly-hell, and since most assemblies still end in .dll
....
>
There's also automatic memory management, platform-neutrality, and
cross-language integration.
Ok.
>
Performance benefits are gained from executing all code in the CLR.
Calling unmanaged code decreases performance because additional
security checks are required.
That's "enabling partial trust scenarios", not improving performance.
Native performance is still better.
>
Other performance advantages are available through the use of the
Just-In-Time compiler,
Like? Sure, the JIT *could* use information about the hardware environment,
such as cache size or availability of extended instruction sets. But that's
more theory than reality.
with gains in built-in security by using code access security and the
avoidance of buffer overruns.
JIT doesn't avoid buffer overruns, bounds checking does. And precompilation
does a lot better job of reasoning about bounds checks at compile time and
optimizing them away than the JIT.

Almost all runtime performance gains from .NET are the fact that memory
allocation from a stack is a LOT cheaper than from a heap. In most cases
that actually pays for all the inefficiencies of .NET so managed code comes
out even with native on average, on many apps managed is a little faster,
for some native is a lot faster.
>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"John" <in**@nospam.in fovis.co.ukwrot e in message
news:%2******** **********@TK2M SFTNGP04.phx.gb l...
>Hi

What are the advantages actually achieved of managed code? I am not
talking of theory but in reality. Thanks

Regards

Oct 20 '08 #10

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

Similar topics

67
1982
by: John | last post by:
Hi What are the advantages actually achieved of managed code? I am not talking of theory but in reality. Thanks Regards
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10436
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3722
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.