Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of "Runtime Environment" and of "Software framework"?

Tags:

I have heard of several things, quoted from Wikipedia:

  1. "Java Runtime Environment",

    A JVM is distributed along with a set of standard class libraries that implement the Java application programming interface (API). Appropriate APIs bundled together form the Java Runtime Environment (JRE).

  2. "Adobe Integrated Runtime"

    Adobe Integrated Runtime, also known as Adobe AIR, is a cross-platform runtime environment developed by Adobe Systems for building Rich Internet Applications (RIA) using Adobe Flash, Adobe Flex, HTML, and Ajax, that can be run as desktop applications.

  3. ".NET Framework"

    The .NET Framework (pronounced dot net) is a software framework for Microsoft Windows operating systems. It includes a large library, and it supports several programming languages which allows language interoperability (each language can use code written in other languages). The .NET library is available to all the programming languages that .NET supports.

As described above, if I understand correctly, the first two seem to be related to "runtime environment", but there is no related Wikipedia to explain what "runtime environment" is.

The third is said to be a "Software framework", which has a Wikipedia article as:

a software framework is an abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code, thus providing specific functionality. Frameworks are a special case of software libraries in that they are reusable abstractions of code wrapped in a well-defined Application programming interface (API), yet they contain some key distinguishing features that separate them from normal libraries.

So my questions are:

  1. Are "Runtime Environment" and "Software framework" the same thing? If not, how do they differ, and do they belong to some common category?
  2. Are they all programming libraries/APIs that can be used by programmers to develop their own software?
  3. The three examples are often required when installing some software. Do they belong to the concept of virtual machine? If not, what category do they belong to? How is that category different from virtual machine?

Thanks and regards!

PS: I don't know if this post is more suitable for superuser or for stackoverflow, as the three examples are often required when installing some software, and they are also seem to be providing API for software developers.

like image 974
Tim Avatar asked Mar 21 '11 01:03

Tim


People also ask

What is a software runtime environment?

What Does Runtime Environment (RTE) Mean? The runtime environment is the environment in which a program or application is executed. It's the hardware and software infrastructure that supports the running of a particular codebase in real time.

What means software framework?

In computer programming, a software framework is an abstraction in which software, providing generic functionality, can be selectively changed by additional user-written code, thus providing application-specific software.

What is software framework example?

Examples of frameworks: Web application system, Plug-in manager, GUI system.


2 Answers

  1. No. A runtime environment basically is a virtual machine that runs on top of a machine - provides machine abstraction. It is generally lower level than a library. A framework can contain a runtime environment, but is generally tied to a library.

    Java, AIR and .NET (in this case the Common Language Runtime) has each its own runtime in a certain byte code that runs on top of the operating system. It allows the code to be quite portable without recompilation to do it this way.

  2. Libraries and APIs are used for making new programs. A runtime environment is where the programs run.

  3. A runtime environment does coincide with the concept of a virtual machine, albeit not as complex as VMWare or otherwise. They both share the goal of abstracting the underlying systems to a point that other software can run on it.

like image 70
Daniel A. White Avatar answered Oct 11 '22 09:10

Daniel A. White


Are "Runtime Environment" and "Software framework" the same thing? If not, how do they differ, and do they belong to some common category?

No, not really. The "runtime environment" is typically referring to the core technology that actually executes the code itself. In Java, this would be the JVM - in .NET, the CLR. The "framework" typically refers to the suite of libraries that are distributed by default.

Are they all programming libraries/APIs that can be used by programmers to develop their own software?

This is more of the "framework" - the "Framework" provides the APIs available by default.

The three examples are often required when installing some software. Do they belong to the concept of virtual machine? If not, what category do they belong to? How is that category different from virtual machine?

A Virtual Machine is a form of "runtime environment" - this is what Java and C# uses for their runtime environment.

The confusion arises since you typically install both things together - as a runtime environment is of little use without some basic libraries (the framework), and a framework does nothing without a runtime environment (since the latter is required to execute code based on the framework).

like image 29
Reed Copsey Avatar answered Oct 11 '22 07:10

Reed Copsey