Re: If it works, this might be interesting




<rhyde@xxxxxxxxxx> wrote in message
news:1180385189.431973.92990@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.openlina.com/index.html

Lina is a VM that allows one to run unmodified binaries under Linux,
Windows, Mac OS, and other OSes with the look and feel of the native
OS. Software is written to the Linux API. Don't know the details, and
I have my doubts as systems like this have come and gone in the past,
but it would be interesting to develop GUI apps that you write once
and can run on all these OSes.
hLater,
Randy Hyde


but, at what cost?...

this is a problem of nearly any VM.

nearly anything the VM does, apart from the ordinary, risks becomming a
burden, their benefit a hinderence, ...


this is why I try to write hopefully portable code, albeit with what I am
doing now (runtime assembly and compilation), this is hardly an easy task
(windows and linux are my target OSs, and x86 and x86-64 my target archs,
with linux and x86-64 currently a lower priority, but I had verified before
that at least in a trivial way, my stuff works in linux on x86-64...).

anything clearly different (such as linux on PPC), no go...
well, unless I wrote a PPC assembler, and yet another version of the 'RPNIL'
compiler (don't even have x86 finished yet, much less x86-64, or anything
really beyond that...).


oh well, at least I have part of my assembler linking and loading in itself
(note: from object files), and the ability to patch code (ie: replace old
functions with new versions at runtime, ...) is maybe interesting. an
example would be with a frontend UI, altering a chunk of C code and watching
the app's behavior change in real time, well, assuming it doesn't
segfault...

it may be useful at some point to make some provisions for a debugging
interface. at present GDB fails to say anything useful if the crash happens
to be in dynamically-compiled code (function '??').


but, will it ever amount to anything (vs, say, LLVM or TinyC?...)?
doubtful...


so, what is the cost?

like any VM, it has its own tweaks and incompatibilities. its own existence
is its weakness. sadly, existing OS's/HW hardly do much of anything to
really allow software (at least in C land) to be reflective or
self-writing/modifying.

trying to keep the overhead as low as I can reasonably do so (ie: if I need
any kind of FFI, I have already lost), but all this may well be asking too
much.

any VM is still a VM...



pointless hobbyism really though...



.



Relevant Pages

  • Re: [ANNOUNCE] Cooperative Linux
    ... NT to share resources with Linux should be unnecessary for a Linux setup. ... the code apparently assumes only two OSes. ... all hard-rt operations and another kernel take care of the soft-rt ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Does the ethernet adapter on a P5P800 work at 1000baseT?
    ... BTW) and they have what is called an endpoint for many platforms and OSes ... W2K PC to my Linux PC. ... Jean ... >>> Your speed is limited by your harddrives sustained transfer rate. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: SCO now turning on their own dwindling customer base...
    ... Changing characteristics of Linux will do *nothing* to change how the ... software builds and runs on other OSes. ... To remove SCO support, you'd have to change the parts of the code ...
    (comp.unix.sco.misc)
  • Re: If it works, this might be interesting
    ... Windows, Mac OS, and other OSes with the look and feel of the native ... Software is written to the Linux API. ... you've lost me there. ...
    (alt.lang.asm)
  • Re: Quad-boot Windows XP/2K, Suse Linux 9.2, FreeBSD 5.3?
    ... > By the way, why so many OSes? ... I do a lot of on-site work. ... Linux is my main work OS, ... > If you are mentioning the VmWare route, did you consider going VmWare (or ...
    (comp.unix.bsd.freebsd.misc)