What is the difference between managed / bytecode and unmanaged / native code?

Sometimes it’s hard to describe some things that “programmers” think are easy for non-programmers and types of controls.

So...

How would you describe the difference between managed code (or Java bytecode) and Unmanaged / Native Code for a non-programmer?

+3
source share
10 answers

Managed Code == "Mansion with the entire state or Butlers, maids, cooks and gardeners to save space"

Unmanaged code == "Where I lived at the university"

+11
source

, , , , . , .

, RAM, Hard Disk ..

, . "" - , , .

+3

, (, , ). - , .

(VM) (GC) . , , ( : ANSI Common Lisp; , , a , Mercury - , -, ​​ , Prolog).

GCed - , . ( , )? ()/ ? Slim binaries ( SafeTSA)? ? , : Microsoft Sun . , (???) (???) §/API. , Fire and Motion.

§ : , # - , .Net/Mono, hyperbole.

: S.Lott // , .

, .

, Microsoft/Sun, , . GC- - , , ( ).

2: - , , , . , ITA Software GC, :

4 - 2 , , ++ , pointerless C structs (, ..), Common Lisp, . , . C, Lisp. , , Lisp ( Lisp, C fixnum, Lisp debuggability). Lisp 250 "" .

...

9 - 10 Lisp 800 5 . . , , . Lisp , 250 meg , . , , , "cons!", 10 000 000 , prealocated reset .

3: ( ) GC, ? , , . ? , , , , .

+3

, :

  • = , (.. )
  • = (.. malloc free)
+2

, .

, , /, , "", - , , . ( , , " " , ....)

+2

:

(.NET) - (Java) .

:

(/). - , , " ", . - , () Ram/Memory, , , ; .

(Mac OSX, Windows ..), , , , , .

.NET - Java

(/) , " " . , .

(Mac OSX, Windows ..), , , Framework, , .NET Framework/Mono Java).

.NET Framework ( ) Java (-) , , /.

, - , .NET Framework , , 32-, 64-, WinXP- WinXP, WinXP 64-, WinVista 64- Windows Server - , .NET . , Mono Project, .NET Linux Mac OSX.

+1

- . , , , .

+1

- . . , . , , . , , .

, , , .

- , , , COM ( ). , , COM, , .

0

. , - . ( ...)

, , , NASCAR ...)

0

" Microsoft".

MacOS Linux, , .

The Brad Abrams " " , , ".NET Framework Common Language Runtime".

: , . , , . , , . MS.

-7

Source: https://habr.com/ru/post/1698941/


All Articles