Are there differences between interpreted code and managed code?

jj1984

Member
My question is quite simple I suppose.

Are there differences between interpreted code and managed code?

Interpreted code is definitely managed, right?

I mean interpreted code has to run over some sort of software layer, an interpreter, a virtual machine, etc.

Are there any examples of managed code that come from a compiler?

Java code is compiled to java bytecode, but then run over an interpreter/virtual machine.
 

Cromewell

Administrator
Staff member
Are there any examples of managed code that come from a compiler?
DotNet. "Managed code" is a Microsoft term to indicate the code runs on CLR. The concept is identical to Java or other languages that compile to an intermediary language, so you could consider Java or other languages managed. A lot of time you will see people refer to languages which manage memory for you as managed.

You can probably consider interpreted code managed. I would just call it interpreted if someone asked me in an interview, otherwise I would just refer to the language. It really does not come up in practice. "Gee, I want to use managed code here but the project is using interpreted code" is a statement I have never heard. By the same token, you do not really hear "We should use native code, not managed code"
 
Top