I’m just wondering if all compilers in any language convert the code into a single language "spoken" in the guts (machine code - zeros and ones), why is it so difficult to transfer a Windows.NET application to a Mac application?
Doesn’t someone come up with a brilliant idea (I don’t have brilliant ideas since I got married 3 years ago!) And I have ... I don’t know ... the framework of machine code, therefore instead of the compiler converting to machine code , it will convert to this infrastructure, which will be installed on any platform (SuSE, fsb, Ubuntu, AIX, SCO, OS X, Windows 9x, Vista, 7, etc.).
I wonder why we cannot do so easily these days ...
Any thoughts?
In fact, this has already been done. To a certain extent, at least.
One effort is called Java, which is a cross-platform language. The Java compiler compiles the source into what is called "bytecode", which is nothing more than a machine-independent "assembly language". This “executable” is later executed by the Java Virtual Machine (JVM), which is a part that differs from platform to platform (that is, the Windows JVM is clearly different from the MacOS JVM).
- . , - - . , . , .
, , Java - , x86 x64, . , , "" - - .
, . - , , . Disc IO, IO, , , , .
, PE, Linux- ELF. . , .
( : http://software.intel.com/file/9800
, , / . , . , , .
.
. ( Fu, Magic handwaving) " ", , .
Script Script - (, Python Perl, ) : , . , , ( ), .
, " ", " ": , , , , " " , .
, Java, , : . :
-, " " ( , ) " -" ( ).
" ", , , . Apple? . .. .
, . Java. Microsoft , . Windows, .
Perl Python, . , , , . Java, Python Perl, , , , Microsoft .NET. : ?
-, , VMWare, Virtual PC .., . , (, VirtualBox Bochs, ) .
, , - . VMWare drag-n-drop , SPARC x86 SPARC, , x86 ( , Cygwin X-windows Windows.
, - .
, , , , , - OS X , smae - Windows * nix
, , , -, .
, ( JVM Python), - . , , . -, .
, . - ( ..), .
Microsoft .NET Windows. , .NET , . Mono , . .NET 2.0 , Windows.
: API-, , , . Wine Windows, . GNUstep OpenStep API Mac OS Cocoa, .
API, , . , , API-, , - .
.NET Mac?
.NET . .NET( MS) . , , .
- , Java 1:
Java -, Java (JVM)
... , python 2:
CPython Python -, .
.NET 3:
.NET Framework, Common Language Runtime (CLR). CLR
, " " - MS - :
.NET Windows
, Silverlight. , Silverlight , Microsoft, . Mono .net iPhone, , , .
Adobe Air, Java - - , - ++, : -)