5 ms·
there are all kinds of random shitty pages on c2.com. Emacs is an editor extensible in Lisp. Nothing more. Just like Autocad is a cad program extensible in Lis
by lispm 13y ago
there are all kinds of random shitty pages on c2.com.
Emacs is an editor extensible in Lisp. Nothing more. Just like Autocad is a cad program extensible in Lisp. Autocad is also no Lisp OS. Just like Quicksilver is a publishing program extensible in Lisp. It's still no OS. Just like Audacity is a sound editor extensible in Lisp. Still no OS.
An OS is Movitz. Written in Lisp. Runs on Intel and talks to the hardware. Talks to the graphics card. Keyboard. Network card.
Please, not every shitty Lisp interpreter which can print to the screen and take user input is an operating system. Not every Lisp program which can send mail is an operating system.
How do you know that some Lisp is actually an operating system? A good rule of thumb is this: Is the network stack talking to the ethernet interface written in Lisp? Is the file system and the block level interface to the disk written in Lisp? Is the routine which formats the disk written in Lisp? Is the routine which puts a file system onto a blank disk written in Lisp? If that's the case, then you have a winner. Then it looks like it is a Lisp OS.
- LukeShu 13y ago> Emacs is an editor extensible in Lisp. Nothing more. I disagree. > Please, not every shitty Lisp interpreter which can print to the screen and take user input is an operating system. Not every Lisp program which can send mail is an operating system. I agree with that point. Calling Emacs an OS is dubious, it certainly isn't a general purpose OS, and won't run on real hardware. But, let me make the case that Emacs is an OS. Emacs has two parts, the C part, and the Emacs Lisp part. The C part isn't just a Lisp interpreter, it is a Lisp Machine emulator. It doesn't particularly resemble any of the real Lisp machines. The TCP, Keyboard/Mouse, display support, and filesystem are done at the hardware level (the operations to work with these things are among the primitive operations provided by the hardware). Of these, the display being handled by the hardware isn't particularly uncommon, historically; the filesystem is a little stranger. The Lisp part of Emacs is the operating system that runs on that emulated hardware. It's not a particularly powerful OS, it not a multi-tasking system. It has many packages available for it (though not until recently was there a official package manager). It has reasonably powerful IPC mechanisms. It has shells, mail clients (MUAs and MSAs), web browsers, web servers and more, all written entirely in Emacs Lisp. My might say "but a lot of that is being done by the host operating system!" Sure, some of it is, but all of it is sufficiently low level. If you wanted to share the filesystem with another OS running in a VM, you might do it by sharing it as a network filesystem; this is necessary when the VM OS is not designed around running in a VM. However, because Emacs OS will always be running in the Emacs VM, we can optimize it by having the Emacs VM include processor features mapping the native OS, and have the Emacs OS be aware of them. It would be slower and more code to do that all over the network.
- fhd2 13y agoConsidering that you can't even write an OS kernel in pure C (Linux has a lot of inline asm IIRC), writing one in Lisp seems like a fairly unrealistic, slightly weird dream. But "Operating System" is being used ambiguously. Can Emacs be an OS kernel? Um, no. Can Emacs be a shell/UI replacement? Yes, I think so. The discussion appears to be partly about that.
- klibertp 13y ago> writing one OS in Lisp seems like a fairly unrealistic, slightly weird dream. It's not - it actually was done[1]. There were OSes written in other high-level languages, like Smalltalk and Forth (which may not be "high-level", but at least it's higher level than C). [1] http://en.wikipedia.org/wiki/Lisp_machine http://en.wikipedia.org/wiki/Lisp_machine
- jfb 13y agoI'm not sure I'd classify Forth as higher level than C; in many ways, it operates on abstractions more akin to assembler. In every way, it's really, really strange.
- JulianMorrison 13y agoAgreed. Typeless, completely unsafe, treats RAM as a contiguous byte array with a dictionary growing one way and data stack growing the other, allows using the return stack as scratch space... it's very asm-ish.
- evincarofautumn 13y agoIt is a very good way of managing complexity, though, at the level you would write a program in assembly. And higher-level stack languages (such as Factor) bring that same degree of complexity management to application-land.
- DrewAllyn 13y agoIt might not be the best or most efficient way, and you might not be able to access all the features of your hardware but its certainly possible to write an OS kernal in pure C. We even did in our Operating Systems class. We did use exactly one GCC extension to C that made things a lot easier for us, but we could have used setjmp/longjmp instead if that extension hadn't been available. Since the machines that real Lisp OSes were made for were often designed as a Lisp target, I don't see any reason they couldn't be pure Lisp.
- brudgers 13y agoA nitpick: AutoLisp is far less powerful than elisp - e.g. AutoLisp has no macros. It also ceased being enhanced many years ago, while elisp rolls ever onward to the point where it now includes lexical scoping. A remark because writing my nitpick got me going: The degree to which Emacs is an OS depends on a person's definition of OS - if it is the primary means of interacting with the computer from the user's chair then Emacs looks more like an OS. On the other hand, if we start from a more formal stance, then it looks less like one. Pretty pictures aside, how much more or less of an OS is Emacs than Chrome, and if different, in what fundamental ways? How different is Chrome running on a VM on a Linux box from Emacs running on the same box?
- lispm 13y agoSo for someone who is writing office document, Microsoft Word is the OS? I think your definition attempt renders the term Operating System useless. We have pretty good definitions of 'operating system' already, no need to invent new useless ones.
- brudgers 13y agoThe popular packages are properly described as "GNU/Linux." That we deem their combination to be an operating system is a matter of convention. When an Emacs user greps from Emacs why is this less blessed than my grepping from Bash? Is it considered blasphemy against vi? Yes, I see that Bash is not the OS and vi is not the OS and neither of course is grep, for the OS is the turtle upon which these things rest and it is turtles all the way down until you get to microcode. Just because someone calls themselves "a computer scientist" it does not make their abstractions are any less metaphysical. It is when we use an human centered definition of "operating system" rather than a machine centered one that Emacs can be seen in a different light. It is not that either group is failing to develop a scientific model. It is that each model has orthogonal metrics.
- chriswarbo 13y ago"So for someone who is writing office document, Microsoft Word is the OS?" If the computer is never used for any other application, then that's an arguable position.
- sonupundir 13y agoTo be fair, if you are going this route then you should note that the most of the things you describe in the last paragraph of your post are part of the kernel as opposed to the OS. By the way I don't consider Emacs to be an Os, it is just a convenient and advanced (as far as the user programs go) interface to the facilities provided by the OS/kernel along the lines of Shell (in this regard).