Slashdot Mirror


Programming Languages Will Become OSes

Anonymous Coward writes "A couple of months ago, at the Lightweight Languages Workshop 2002, Matthew Flat made a premise in his talk: Operating systems and programming languages are the same thing (at least 'mathematically speaking'). I find this interesting and has a lot of truth in it. Both OS and PL are platforms on which other programs run. Both are virtualizing machines. Both make it easier for people to write applications (by providing API, abstractions, frameworks, etc.)"

68 of 456 comments (clear)

  1. Programming languages become OSes? by Anonymous Coward · · Score: 5, Funny

    Already happened: Microsoft BASIC ==> Microsoft Windows

    1. Re:Programming languages become OSes? by RetroGeek · · Score: 4, Interesting

      You are closer to the truth that you suspect.

      The original IBM PC's would start up with ROM BASIC if no other OS was present.

      --

      - - - - - - - - - - -
      I am a programmer. I am paid to produce syntax not grammar. Deal with it.
  2. Oberon anybody? by sofist · · Score: 5, Informative

    Just remember the past. Oberon was an OS an a PL at the same time and I think most of the readers didn't ever heard about it...

    1. Re:Oberon anybody? by CoolVibe · · Score: 4, Informative
      Oberon? Smalltalk! Now there's something you could turn into an OS.

      Although, Oberon is not the past. It's still being actively developed, in both it's OS and PL incarnation.

  3. TRS-80 by Anonymous Coward · · Score: 2, Interesting

    my TRS-80 had BASIC as the OS

  4. Use Emacs by aridhol · · Score: 4, Funny

    If you use Emacs, you have a programming language, OS, and editor all in one happy package.

    --
    I can't say that I don't give a fuck. I've just run out of fuck to give.
    1. Re:Use Emacs by SquadBoy · · Score: 5, Funny

      Yea but you would have to port VIM to get a *good* editor.

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
    2. Re:Use Emacs by NetRanger · · Score: 4, Funny

      Perhaps, but VIM doesn't include free pshyciatric help for after you've used it. Think about it.

      --
      -- We live in a world where lemonade is artificial and soap has real lemon.
    3. Re:Use Emacs by bperkins · · Score: 5, Funny

      Found in someone's sig file:

      Emacs: It's a nice OS, but to compete with
      Linux or Windows it needs a better text
      editor. - Alexander Duscheleit

    4. Re:Use Emacs by Jason+Earl · · Score: 2, Interesting

      It's actually pretty easy to migrate your email to another client because Emacs will happily create mbox files. Fire up info on GNUS and read the bit about "Incorporating Old Mail" and simply do it in reverse.

      The short but sweet synopsis is that you enter the group that you want to export, type 'M P b' to process mark all article, and then type 'B r' to respool those articles. When it asks for the backend to use choose 'nnmbox'.

      Don't forget to make backups of your email first (I have had problems with really large groups).

      As a side note have you tried some of the Vi-emulation modes in Emacs. Vim is pretty good stuff, but it doesn't do everything that Emacs does. Vi-style keystrokes on top of Emacs is the best of both worlds (IMHO).

    5. Re:Use Emacs by Jason+Earl · · Score: 2, Informative

      Assuming you are on a Linux box with Emacs (and info) properly installed you might be able to simply type 'info viper'. The info file included with viper is pretty darn good.

      Or you can just start up Emacs and type M-x viper-mode. viper-mode has a start-up message that is pretty handy, it should get you started without too much trouble. If you set the viper-expert-level variable low enough Emacs will act just like vi.

      If you are really interested in using Emacs, however, I would suggest learning to use Emacs' built in info browser. There is a ton of functionality built into Emacs that is not immediately apparent. I have been using Emacs for years now, and I still find amazing new functionality on a regular basis. Time spent reading the documentation will pay for itself quickly.

  5. Happened before... by meringuoid · · Score: 4, Insightful

    ... the home computers of the early '80s didn't really have OSes, they had programming languages. You'd boot a BBC Micro and it would fire up into BBC Basic - with a few * commands for file system manipulation. Or you'd boot a Spectrum and you'd get the same: the name of the system and a prompt to begin typing your program.

    --
    Real Daleks don't climb stairs - they level the building.
    1. Re:Happened before... by Transient0 · · Score: 4, Interesting

      Yes, and interestingly, the article isn't even really saying that OSes and programming languages are the same thing. What it is saying is that any programming language worth it's salt has the potential to become an OS and that it will probable eventually do so for security reasons. Then he tacks on "There will perhaps be new PL's designed with isolation as one of their main goals--or current PL's might be improved/redesigned--so hopefully this requirement of having a 'multiuser PL' will be fulfilled in the future." as his last line.

      The bulk of his argument is sound and has convincing precedent in the examples you give(Micro, Spectrum, etc.) and I could add a few of my own, not to mention the modern example of Java. As for his ad hoc specualtion at the end that programming languages will eventually replace OSes. I'm prepared to call that bullshit until he presents some evidence. I don't see it happening, who wants to code on a machine that can only use one language?

      Of course, the response is that new language will be written to run inside the OS-Language and that coders can work in either these sub-languages or the OS-level meta-language. But really how would this be any different than the current situation with many languages vs. assembler as meta-language only with an additional obfuscating level of go-between.

      my two cents.

    2. Re:Happened before... by dillon_rinker · · Score: 3, Insightful

      who wants to code on a machine that can only use one language?

      The Feds. They've done it before (Ada) and, I'm sure, wouldn't mind doing it again.

    3. Re:Happened before... by -dhan-101 · · Score: 4, Insightful

      your machine can already only use one language, machine language. fortunately, on top of this, humans have made a bunch of aliases and shortcuts for various commonly used sequences of operations, which developed into "higher level languages" like assembly and then C and then ...

      if people want to use the machine (or OS), but don't like the language it understands, they will build translators from whatever made up language they like to the language the machine does understand (i.e. compilers and virtual machines).

    4. Re:Happened before... by WatertonMan · · Score: 2, Interesting
      I'm not sure Java's virtual machine counts as a full operating system. I do think that Microsoft's .net strategy is much closer. In the .net languages (C#, managed C, VB.net, ASP.net) you really do start to blur the lines between the language, the class library and the OS. It hasn't gone all the way, of course. Further the fact that there are multiple languages undermines the idea of a language as the OS. With .net it is multiple languages.

      There are excellent reasons to go this route though. While I'm definitely no Microsoft lover, I do think .net is pretty cool. Even if figuring out what they mean by that is more than a tad confusing.

      Of course in practice the distinction between language and OS has always been somewhat blurry. Take Unix. At what point to you separate Perl, gcc, and the shell from the OS? In a way, in the older versions of Unix it was even more pronounced. Using LaTex involved many shell scripts and custom programs and even writing in it was in effect programming.

      Even early versions of LISP were their own OS and one could argue that UCSD Pascal was as well. (Especially the version for the old Apple II)

      So this is hardly a new thing. The only time I think we can truly make an OS - language distinction is when people start trying to make languages portable and make it used for development. The move to do everything in C for all platforms in the late 80's is a great example of this. This lead to many companies using C instead of Pascal for development and also pushed ANSI C and then the C++ standards. Class libraries tended to be quite separate from the language. However lets be honest. All of this was more of a short blip in the history of languages rather than the typical situation.

      Even going back to "prehistoric" times, when people wrote Fortran code with punch cards could they tell what was the program and what was the OS easily?

  6. Really? by teetam · · Score: 4, Insightful
    While this may be conceptually true, there are different considerations involved when picking an OS and a language. A programming language is more like a tool that is selected because it is good for a particular operation.

    A single machine could have multiple languages co-existing for different tasks. Some of these tasks require quick and dirty scripting, some require high performance and some other application programs might concentrate on object oriented features and such.

    The operating system, on the other hand, is typically only one per machine and performance and stability might be the major considerations (other than compatibility with the popular applications around!)

    --
    All your favorite sites in one place!
    1. Re:Really? by l0ss · · Score: 2, Interesting

      What about development platforms like .NET? These unifeid environments aim to resolve many programming languages, and resources in a unified bundle. This has been a long standing goal for many development environments. We've seen all kinds of Java and C++ wrappers emerge that allow integration into various other languages, platforms, and environments. That said, I think there is a alot to be said about how similar OSs and PLs really are.

    2. Re:Really? by Brown · · Score: 2, Interesting

      "A single machine could have multiple languages co-existing for different tasks."

      Just as quite a few computers 'round here have multiple OS's installed.

      On this machine, I currently have 2 different installs of Linux, and one of Win2000. They are used for different things; one of the Linux instances is for my desktop machine - customisation, and my 'feel' is important. Another is for testing/playing with, while the windows install is for any apps I need which still aren't around on linux (practually none that I use these days actually).
      I'd suggest that this kind of arrangement is analogous to having differnt languages for different purposes, and is quite common amongst computer hobbyists.

      I'd also hope that performance, stablity/security and compatibility are important criteria when selecting programming languages as well as OS's!

      - Chris

    3. Re:Really? by jgerman · · Score: 3, Funny

      A lot of comments that are being made here seem a little funny to me


      Ahem. That's because they're jokes.

      --
      I'm the big fish in the big pond bitch.
    4. Re:Really? by kin_korn_karn · · Score: 2, Funny

      Spock! Is! That! You?!?!?

      "A joke.. is a story with a humorous climax?"

  7. C64 by dardem · · Score: 2, Funny

    Glad I didn't throw out my C64!

    --

    "Ceilean Súil an ní ná feiceann..."
  8. Behind the times? by Mordant · · Score: 3, Informative

    I guess Mr. Flat (what a name!) hasn't ever heard of the LISP Machine..

  9. Re:Well I think.... by captain_craptacular · · Score: 2, Funny

    Gee, I didn't realize mozilla was a programming language. I'm going to go now and arrange my tabs into a lexographic sequence and get them to do something new, maybe say hello world.

    --
    They who would give up an essential liberty for temporary security, deserve neither liberty nor security
  10. And all this time by pete-classic · · Score: 3, Funny

    I though web browsers and OSes were the same thing.

    -Peter

  11. Bah by p3d0 · · Score: 3, Insightful
    That's like saying doctors and scalpels are really the same thing because they both perform surgeries.

    OSes and programming languages have some superficial features in common, but they are totally different concepts. This is so manifestly obvious that I'm not even sure how to argue the point.

    However, Mr. Flat's suggestion that languages need better isolation capabilities is a good one. It all goes back to Fred Brooks' point that one in ten programmers is a superstar. I think isolation facilities in a programming language allow the superstar to set the rules that the other nine programmers must follow, making the system more coherent by the guidance of one mind.

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  12. FORTH by turgid · · Score: 4, Interesting

    FORTH was and still is such a combination. It's compact, easy to implement and incredibly fast and felxible.

    1. Re:FORTH by jbolden · · Score: 2, Interesting

      Forth gets some speed back by being 100% untyped (no run-time or compile-time type checking), but this is a very dubious "feature" when the rest of the computing world is moving towards more secure environments.

      I don't think the typing battle is anywhere near over. After C/C++ and Jave the 3rd most popular language on /. is Perl which is very weakly typed. There was recently a thread on Microsoft X# which is true would mean Microsoft is bring out a weakly typed language. SQL is weakly typed and has completely taken over the more strongly typed languages for database access....

  13. That's why MS is so afraid of Java by rmayes100 · · Score: 3, Insightful

    Microsoft is always pretty quick to recognize new products that could threaten windows dominance. In some ways platform independent languages (most scripting languages, Smalltalk, Java) already implement their own OS on top of the OS they're already running on.

  14. don't think so by jacquesm · · Score: 3, Insightful
    This is *not* going to happen.
    For one the wall between OS space and user space is there for a good reason (security) and second different people like to use different languages, and you'll lose a good part of your developers by forcing them into the straightjacket of a single language for a certain os.


    it's been tried before (smalltalk, java) and failed, for these and a whole bunch of other reasons.

  15. Idealism by PourYourselfSomeTea · · Score: 3, Insightful

    Actually you see this reflected in modern systems designs such as Cocoa/OC or Java. They are in themselves virtualized operating systems. Adding classes in these adds reusable functionality to the overall system, much like adding functions in Lisp adds functionality to the system.

  16. This is especially true of the VM languages by UpLateDrinkingCoffee · · Score: 3, Interesting

    Like java... I think a likely evolution will be towards a single VM that runs all your programs instead of the one VM per app generally used now. More and more of the process switching and memory management will be built into the VM's probably to the point one day where java VM's become operating systems in their own right and only need the underlying OS for drivers to talk to the hardware.

  17. The 2008 Operating System Review by wackybrit · · Score: 3, Funny
    In the future, when all programming languages will become operating systems, there'll be a lot of competition. Choose the operating system that works the best for you:

    C OS - Every single task you want to achieve has to be split into fifty bite size actions.

    COBOL OS - The literati's dream OS! No longer must you click and drag, but instead type bizarrely syntaxed English to do your work! PROGRAM OPEN CALCULATOR AS NEW PROGRAM

    Perl OS - An open source OS worked on by a bunch of extremely crazy (but clever) bearded anoraks. You can do EVERYTHING in one click or one line of code. Oh, face it, it's just the future of Linux.

    PHP OS - This OS was originally the shell for Perl OS, but some wimps who couldn't work out the Perl way of doing things decided to turn it into their own 'paint by numbers' OS. Unfortunately you can only access the Internet with PHP OS, no off-line facilities are available.

    C++ OS - A simple upgrade to C OS. Still just as complicated, but the ++ makes it cooler to use and adds a host of useless features that are non standard across all implementations. Besides, C OS is for old fogeys.

    Python OS - Supposedly this exists, but since no-one cares, we won't go into it.

    Ruby OS - EVERYTHING is an object. Want to open your calculator app? calculator.open; please. Need to enter some numbers? calculator.buttons[8].press; It's long, tedious, but at least it makes logical sense.

    BASIC OS - Joe six pack's answer to operating systems. This is Microsoft XP in the future. Anything can be done with point and click, but it's slow, crashes a lot, and is totally lame. Oh, I'm already talking about XP here aren't I?

  18. Funny he did not mention .NET by watzinaneihm · · Score: 3, Interesting

    If any programming language/framework has a chance it will become an OS it is .NET.
    And Java is half an OS already, it has its own threading moodel, has memory management etc. Though frankly I believe this paradigm of PLs becoming OSes will be first be seen on handhelds etc. Note that many Cellphones run Java etc. (though now sybian is more commoon).

    --
    .ACMD setaloiv siht gnidaeR
    1. Re:Funny he did not mention .NET by Schnapple · · Score: 3, Insightful
      If any programming language/framework has a chance it will become an OS it is .NET.
      Which, if it turns out to be true, explains why Microsoft is not only doing .NET but why they went out of their way and hired Corel to port the CLI and C# compilers to FreeBSD, Mac OSX, and (apparently) Linux (the Rotor project). It's been theorized that in the grand scheme of things .NET is helping Microsoft prepare for the day in which Operating Systems are irrelevant or at least not the way they're done today. And of course the complete class libraries the .NET framework relies upon will only run on Windows, and even when/if the open source reimplementations of them ever catch up, they'll still (in theory) always run best on Windows, to say nothing of the Visual Studio .NET tool always running in Windows.

      Of course the other reason MS might be pushing .NET so much is the money they stand to make off of the hundreds of books they've written on the subject.

      Note that .NET is not a programming language (and I've already seen it used this way in this thread). .NET is a platform (the CLI is like the Java VM) and a framework (the class libraries) but it's not a language. C# is a .NET language, VB.NET is a .NET language, (language).NET is a language, but .NET isn't a language.

      Tip: If you ever ask someone what they're writing their app/web site in and they say ".NET" and can't say anything else (like C# or ASP.net) then they don't know what they're talking about (and I should know - I used to do it myself).

  19. Sure, the distinction is artificial/arbitrary... by dpbsmith · · Score: 4, Interesting

    ...the partitioning of computer environments into applications, OS, "drivers," "libraries," etc. etc. is arbitrary, cultural, traditional, etc. To some extent it's also based on modularity considerations, and to some extent on marketing/commercial considerations. There's no fundamental logic to "the way things are."

    A few decades ago, MANY environments blurred the distinction between OS and language: FORTH, MUMPS, SMALLTALK, and, indeed, most early versions of BASIC, to name four.

    The traditional textbook discussion of an OS ("provides four interfaces, to the filesystem, to devices, to applications, and to users") is just a discussion of what IBM evolved in the sixties or thereabouts.

    Incidentally, the very name "operating system" indicates the original rationale and function of these pieces of software. They were intended to automate the functions that previously required the manual services of an "operator," thus increasing utilization and decreasing payroll.

    Another example of the arbitrariness of the term "OS" is the way in which various applications programs are now considered to somehow be part of the OS. In Digital's glory days, these were sometimes referred to as "CUSPS"--Commonly Used System Programs. Is grep "part" of UNIX? Is Windows Explorer (not Internet Explorer, but Windows Explorer--the application that displays directory contents and that "start" button at the bottom of your screen--Windows' graphical "shell") part of Windows?

    At one point Apple said Hypercard was "systems software." Perhaps iTunes is "part of" OS X?

  20. Re:what I want by Xiarcel · · Score: 2, Informative

    Have you seen The Tunes Project?. It sound like what you claim to want, even if it's still a work in progress...

  21. Re:Smalltalk as OS by tpr · · Score: 5, Insightful

    It so happens that I know a bit about Smalltalk so perhaps I can help a little.
    Smalltalk was originally the entire system on the original hardware. Indeed, Dan Ingalls said back then (paraphrasing, I don't have the exact quote handy) "An operating system is a collection of things that don't fit into a programming language. There shouldn't be one".
    The reality of commercial machines caused those of us interested in using Smalltalk to accept the limitations (and it must be said, benefits) of OSs. Even so, there have been several occasions where an attempt has be made to use Smalltalk as the entire system: the Active Book and the Momenta machines for example and more recently the Interval Research MediaPad (where the RTOS was written in Smalltalk).

    These days I'd be inclined to 'soften' Dan's statement to something like "An OS is a collection of things underneath the language. There shouldn't be any way to tell the difference". That is to say, the language ought to be able to make full use of anything available without having to burden the programmer with wierd crap.

  22. In other news by interstellar_donkey · · Score: 2, Funny

    Steering wheels and tires are the same thing.

    Both are required for the succesful opperation of a car. Each require steel in their construction for structural reinforcement. In a pinch, and with a little engineering, theoretically one could be used to replace the other.

    But most striking in their simularities: Both are round.

    --
    The Internet is generally stupid
  23. Re:Lisp by Anonymous Coward · · Score: 2, Informative

    Don't spread misinformation. Lisp is often interpreted, but in production use it is always compiled. GCL, for instance, is most assuredly a compiler.

    The point is not that the code to a Lisp compiler is anything like the code to an operating system; rather, it is that each advanced programming language provides its own set of high-level abstractions for what are traditionally OS-level services.

  24. Bad Titles..! by Steveftoth · · Score: 2, Interesting

    Argh, this paper starts with an interesting idea, that PLs are more like OSes then we realize it, provides some genesis for the idea, but FAILS to back it up..

    All of his examples, the bulk of the paper, are examples of how the RUNTIME system restricts the PL. He talks about the runtime system security model and somehow this is supposed to extend to the definition of the programming language? No, this is not how it works. The runtime system, the sandbox or whatever you call it, is a restriction defined seperatly from the language itself. The JVM is defined seperatly from the Java language. That's why products like JET exist that can compile Java code to something other then bytecode. Because the runtime enviroment is not defined in the language. You don't have to have a security manager, like in perl, you don't have to support a trusted mode in your perl runtime. It's a feature of the runtime, not the language.

    The runtime, by definition is like a mini-OS. Usually, a vm runtime (for perl, java, python, etc...) takes non-native instructions, parses them and translates them into some sort of binary instruction. Since there is no processor that can execute perl natively, this is how it works.

    Neat idea, bad paper.

  25. Confusion by The+Bungi · · Score: 4, Interesting
    The author of the article is confused. He almos defined the term architecture but he missed it by a hair.

    Systems architecture (and to a certain extent application architecture) revolves around creating "environments" where other applications operate, (note emphasis). Architectures provide services to these applications, which in turn may provide different services to yet more applications (components, web-based solutions, etc.). Thus you can argue that by sitting down and designing and implementing a specific or generic purpose architecture, you're creating a "mini-OS". That much is true. But the OS is simply a lower-level architecture than, say, Java or COM or .NET. It's a more complicated and extensive one, but one nonetheless. The stuff you do with a programming language (or as they like to be called these days - platforms) is essentially a higher-level abstraction than the real OS happens to be.

    So we can argue then that we're moving towards the platform concept where things are interconnected via well-defined interfaces and entry points (that's your APIs) where the OS itself is just another component.

  26. Re:JavaOS by trailerparkcassanova · · Score: 2, Informative

    Ajile Systems JEMCore and there are others.

  27. Actually by _avs_007 · · Score: 3, Interesting

    Take a look at SavaJe. It is a JVM that is also an OS.

  28. I'd like to point out... by pyth · · Score: 4, Interesting
    It is an incredibly retarded idea to integrate the programming language with the OS. Allow me to demonstrate what a PL does: make it easy to write machine code.


    The truly wise path to go is to define an OS/bytecode combination, so that (in a very LISP-like way) security is accomplished by "thought-controlling" programs rather than action-controlling (the MS/Linux model).


    What I want to know is this: Is the LISP bytecode the best, or should a more modern one be used? JavaVM?

    1. Re:I'd like to point out... by voodoo1man · · Score: 2, Informative
      Huh?

      By Lisp (no, it's not spelled all uppercase anymore) bytecode, do you mean Lisp Machine microcode? Because aside from that (and it wasn't even a standard), there is no such thing as "the Lisp bytecode." If that's what you mean, then the processor microcode won't do you any good as it's not any different from writing assembler.

      If, like you state in your second paragraph, you just want a VM sitting on top of the OS executing all the code, go buy some .Net or something. Then come back in a couple of years once everyone's realized the "thing" is incredibly slow*, and doesn't really do anything security-wise.

      Also, it's "funny" you mention that programming languages and OSes shouldn't be mixed, and then talk about Lisp. Have you actually used a Lisp environment in the past 20 years? The philosophy that the language is the OS (at least from the application's and the editor's point of view) is the pervasive paradigm for Lisp coding - and not only does it work, but it is also incredibly useful and efficient.

      * There is no such thing as the perfect (or even best) universal VM - the fact that different hardware architectures as well as different languages exist now and evolve at a rapid pace prevent it from existing.

      --

      In the great CONS chain of life, you can either be the CAR or be in the CDR.

  29. no, they won't by g4dget · · Score: 4, Insightful
    UNIX had it right: put all the isolation stuff into the kernel, and put all the programming outside of it. It's called "modularity". Yes, you do pay a performance cost for it in some cases, but the benefits in terms of simplicity of design are tremendous. Determining what a process can do in UNIX is a fairly simple affair, as is limiting what it can do.

    The best attempt at isolation at the language level is probably Java. The internal security architecture is rather complicated. And even after half a dozen years, Java still does not provide anything like "ulimit" and I wouldn't trust it to isolate arbitrary code within the same VM.

  30. The two lines summary by gmarceau · · Score: 3, Insightful

    I see alot of people getting upset at Mathhew without having read the article. For them, and for those who are reading in diagonal, I'll summarise the important point here.

    At LL2 Matthew Flat posed that, while OS's and programming languages both support application development, by providing libraries of function calls, their difference in focus fundamentaly sets them appart. OS's focus on isolation of code, for security and for stability. Programming languages focus on cooperation, and try to maximize code reuse and efficiency.

    Basicaly, OS hacker and the PL hacker have alot to learn from each each other. They would win at from cross-pollination between the two fields. Matthew then proceeded to show his implementation of what operating system concepts would look like in a programming language, by demoing DrScheme, a programming environment which can run (and debug) itself recursively.

    --
    This post was compiled with `% gec -O`. email me if you need the sources
  31. Addendum by Amsterdam+Vallon · · Score: 4, Funny

    Java OS - True object orientation meets platform-independent code. Boot once, run it on anything. However, it takes 10 seconds alone to start each application's virtual machine. Early benchmarks indicate cold program starts of the Mozilla browser approaching the 60 minute mark on a dual Pentium system. Future benchmarks are planned and will be measured using a sun dial.

    --

    Reply or e-mail; don't vaguely moderate. Ex-O'Reilly/MIT employee, now a full-time Google employee.
  32. *less* bloated OS by gosand · · Score: 3, Funny
    If you use Emacs, you have a programming language, OS, and editor all in one happy package.

    Yes, be we want OSs to get LESS bloated, not more.

    --

    My beliefs do not require that you agree with them.

  33. Doesn't anyone remember PICK? by gaudior · · Score: 2, Interesting

    Pick systems were a database, an OS, and a programming language, all in one. It was a very cool system to work in.

  34. Safety and Efficiency by e+aubin · · Score: 2, Interesting

    Modern programming languages can perform some of the safety features that operating systems provide. Many functional languages "can't go wrong". (meaning the compiler can prove a program does not access memory outside of its own space). Some languags like value Microsoft's Vault programming language can make sure an API is used properly. Check out Kernel Mode Linux for an example of how a "safe" scheme program can be speed up by executing in kernel space.

  35. Exactly by acomj · · Score: 3, Insightful

    Microsoft was threatened by the java api. You only have to use the Java VM and on that platform your software doesn't have to use the windows api anymore. Takes away the advantage of developing on a operating system with a rubust api.

  36. A Microprocessor *IS* a language Interpreter by bokumo · · Score: 3, Insightful

    When you get down to heart of the matter, all computers use just one kind of language: the processor's binary instruction set. So you could make an argument that all (Von Neuman architecture) computers are just interpreters for a particular instruction set. Operating systems and programming languages just provide abstractions which make the programmer's job easier. Making a division between operating system and programming language is an engineering decision on where you want to position your layers of abstraction to achieve a good balance between ease of use and speed. It is all just a matter of where you decide to put your abstractions.

    --
    Physicists do it with a big bang!
  37. Re:Sure, the distinction is artificial/arbitrary.. by iankerickson · · Score: 4, Insightful

    No, it's because the term "OS" is commonly used to mean "OE" or "Operating Environment". Linux, being the kernel, is an OS. sh, and all the other shell tools are the OE. You don't have to use sh for your shell or init or any other shell tools, replacing them with other valid executables. A real world example of this is the FreeVMS project. In making a free/libre version of VMS, they don't want to duplicate the work of writing drivers and developing a kernel -- they want to focus on developing analogs of DCL, TPU, the Queue manager, etc. So they're using Linux or FreeBSD for their kernel and writing their own userland.

    Same with Windows Explorer. The "My Computer" icon is part of Windows' operating environment. You can, believe it or not, use Windows without using Explorer (using the command line or a replacement shell like LiteStep). Windows just isn't designed or intended to have its core components replaced so easily. I think there was a court case about it... Anyhow, I used to run Windows NT with just cmd.exe as the shell, which was fun for a few weeks, figuring out how to set control panels from the shell. With cywin & GINA installed, you could put a nearly complete UNIX face on NT and still be able to run Win32 apps.

    Sun is one the only companies I've seen distinguish between an OS and OE. They used to (still?) call it the Solaris Operating Environment, with the SunOS kernel as the underlying OS. The truth is nobody cares. _My_ eyes are glazing over just writing about this. My sincerest condolences to your disintigrating brain. But on the bright side, without the ambiguous use of technical terms, slashdot readers would have a lot less to argue about, and this site would degrade into a competitive festival of increasingly embarrassing personal confessions on sex, drug use, music, government secrets, scams, circumventing the law, satire, and other boring stuff like they have kuro5hin. If we should be so lucky.

    --
    Democracy. Whiskey. Sexy. Pick any two.
  38. Lucent did a virtual OS - Inferno by DrSkwid · · Score: 2, Interesting

    Inferno's not an OS/Language hybrid but it is a virtualised unix like OS that will run with identical interfaces, including GUI, on differing hardware & software combinations. It will run natively on some hardware [such as my IPAQ] and hosted elsewhere - such as Windows & Linux.

    It was a project started before Java and shares many of it's aims but went that one step futher by retaining the concept of an OS where you can read and write files etc.

    Dennis Ritchie talks about Inferno and other things

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  39. What a load of BS! by Alex+Belits · · Score: 2, Interesting

    The article is an act of mental masturbation, and typically for such acts it takes one property of the unfortunate subject of such "research" and builds a whole theory based on it, regardless of its relevance and applicability.

    Languages are supposed to be designed to allow a programmer to express the implementation of his design. The OS design is supposed to give the program implemented by a programmer means to perform various actions that the programs may need. Between those two things there are libraries that include implementations of various procedures that programs perform.

    This clearly separates what is the environment common for all programs and carries no application programmer's ideas at all, what is designed specifically to be used by a programmer for his specific purpose, and what lies in between, and may be close to the specifics of application (say, SDL) or to be an interface to the OS (libc).

    In this way VMs are OS-like components that run over the OS, and the fact that many VMs are tied to their languages does not mean that this is a good design. In my opinion the fact that there are ties between OS and language beyond straightforward "OS is written in a language" and "language operates within an OS" are what I call "noosphere pollution". It's true that many people when they develop a new OS or language want to make "The Grestest Program Ever" and spill their ideas into areas where they do not belong. This is at best misguided attempt to coerce others into their model of thinking, at worst an attempt to create a system so closed and convoluted inside that no one ever will be able to affect it, leaving the initial developer the only "true expert" in the area. And unless that developer has influence of Microsoft or at least Sun, usually the response is "Screw you, and your giant blob of code!" because it's not possible that developers will happen to agree with every single idea developed by a single person, or a small group of them, even if most of those ideas are sane (do you hear me, Pike?).

    Good (or semi-good) operating systems are designed with a very clear separation between themselves and languages that are used. Nothing required Unix to be separate from C, yet if one looks at the system calls interface and libc he will see nothing that can tie the two together like siamese twins -- there is no builtin type in C that corresponds to any Unix internal structure -- no directories, files, sockets, inodes, etc, all those things are represented by language-neutral and OS-neutral integers, and only libc makes actual OS-specific primitives visible for the programmer. This is why Unix is used with many languages, and C is used with many OS, or without any OS at all.

    This demonstrates the strength of the C and Unix designs, authors were confident enough that their ideas can stand on their own so they didn't add any hidden (and not-so-hidden) strings to trap the user in a messy OS-language symbiotic monster.

    Later people started making giant libraries that LOOK like OS libraries but are tied to some environment that has nothing to do with OS, and tied to a language that they can't be separated from. This was a step back -- it wouldn't if those libraries were more modular, but one glance at monstrosity like MFC gives an idea how much Microsoft wanted "to rule them all". But no, that wasn't enough -- languages with ridiculously large and complex VMs, totally inaccessible from anything but themselves appeared, imitating the behavior of interpreted languages. Java, now C#, I am sure there will be more of this. But there is a difference -- perl has to have a complex interface inside because it is an interpreter and can't just call OS. Java chosen to have an interface deliberately different from anything else, and to build VM and libraries that implement the ideas of its creators and nothing else. And of course, control freak Microsoft didn't make anyone wait before it made its own version -- with some lip service about "multiple languages" that looks like "multiple languages as long as they have Microsoft object model rammed into the middle of them, or it will be a pure hell to use".

    So IMO the "siamese twins" designs are inferior to clearly defined and well-designed interfaces, and are the realm of hacks and control freaks -- with some exceptions for interpreters and things like Forth that are specifically designed not to scale beyond systems where any full-blown OS is too much (Forth developers may take it as an insult, but I believe that it's a good thing that such a closed system stops scaling where its applicability ends).

    --
    Contrary to the popular belief, there indeed is no God.
  40. Rational R1000 - Ada 83 as an OS by rwsorden · · Score: 2, Informative

    Back in the mid-90's, I worked for Computer Sciences Corp. (CSC) on a project that used the very-cool Rational R1000 platform for development and source-code control. In summary, the R1000 was a custom Ada-oriented development platform (even the hardware was custom-made, I believe). The operating system was fully implemented in Ada and featured a "command prompt" that required you to write snippets of Ada code (expressed as anonymous blocks) instead of shell commands. All errors were thrown as Ada exceptions. The "command prompt" editor even featured code completion and had a built-in debugger. It was even possible to auto-generate custom DOD-STD-2167A design documents (SDDs, IDDs, etc.) by embedding specialized comments in your Ada code (ala Javadoc) and using the built-in document generation modules. It was definitely cool for its time!

  41. Programming language as OS? by Fredbo · · Score: 2, Funny


    10 A$="Who ever heard of that? It'll never work"
    20 PRINT A$
    30 GOTO 20

  42. With Emacs, you really NEED psychiatric help! by Doug+Merritt · · Score: 2, Funny
    Perhaps, but VIM doesn't include free pshyciatric help for after you've used it. Think about it.

    But if you use VIM, you won't need psychiatric help, whereas with Emacs, of course you do, so of course it provides it. ;-)

    --
    Professional Wild-Eyed Visionary
  43. Re:Going Forth? by Alex+Belits · · Score: 3, Informative

    What is the standard C library except an API specification to an OS?

    Standard C library is not a standard library of C language for Unix, it's a standard library of the Unix system that is used with C language (and every other language on Unix). Of course, for applications portability purpose it was ported to other systems, however it's still not really a part of the language design -- say, variable arguments list is a part of C design, but [v[s[n]]]printf strictly speaking isn't.

    --
    Contrary to the popular belief, there indeed is no God.
  44. If you wait long enough .... by crmartin · · Score: 3, Insightful

    ... in this business you'll eventually hear everything twice (or more). If you look back to (eg) Parnas, et al, and the A-7 project, you'll discover that back in the late 70's and early 80's a key notion was that both the OS and the language were part of the "hardware hiding" layer.

    On the IBM System/3 in the later 60's and early 70's, the RPG/II compiler generted a binary that was booted onto bare iron to run. (If you were really down-scale, like I was, the compiler was a bootable 4-foot deck of punch cards and the result was a freshly punched deck of cards that was itself bootable.) This included the code for both the "program" -- the business logic -- and the "operating system" that allowed the program to control card reader, printer, and disk drive.

    On the IBM 1401, people had decks of program cards that did specialized things, like control the printer; you added them to your program. I'm sure Goldstein and von Neumann had something similar.

    What I wonder sometimes, though, is whether this repetition of the same old idea, generation by generation, proves that "computer science" is essentially a dead topic?

  45. The application becomes the shell by frovingslosh · · Score: 4, Funny
    I'm waiting for the application to bcome the shell.

    You are in a directory, there are many files here. A path leads to the the south and down labeled Mydocuments.

    > look

    There are files here labeled read.me, config.sys and autoexec.bat. A path leads to the the south labeled Mydocuments.

    > take read.me

    taken.

    > kill read.me

    You smite the file labeled read.me and it crunbles to dust.

    There are files here labeled config.sys and autoexec.bat. A path leads to the the south labeled Mydocuments.

    > South

    You move through the passage and reach the grand chamber of Mydocuments. There are many files here. Passages lead further south and down labeled Mymusic and Mypr0n. To the north is a passage leading up......

    --
    I'm an American. I love this country and the freedoms that we used to have.
  46. Throwback by dirk · · Score: 2, Interesting

    So does this mean we are returning to the days where my Radio Shack TRS80 booted into basic? Maybe we can find a great way to store data on audio tapes next.

    --

    "Information wants to be expensive" - Stewart Brand, the same guy who said "Information wants to be free"
  47. Parrot by jbolden · · Score: 2, Interesting

    The VM for Perl called Parrot so far supports: Perl 6, Quick Basic, GW Basic, Python, Ruby, Java. :Perl 6 was the target language;
    Python, Ruby were considered important add ons
    Java allows the Parrot VM to be the main VM
    The Basics were ported as a test of porting a language that Parrot was not designed to support (i.e. a test of how good a generic VM it is)

  48. Fixing bugs in the OS by regarding it as a PL by bauzeau · · Score: 2, Insightful

    A very cool instance of the duality has been under research at Stanford, in Dawson Engler's group. They look at kernel "rules" as a programming language, and then they run a compiler checker on it to catch semantic bugs.

    For example, lots of cases where locks where aquired but never released, or aquired twice in sequence in the Linux kernel were identified by considering the sequence "lock(x); ...; relase(x);" as a language construct, and then looking for device drivers or modules that didn't abide by it.

    I believe there was a Linux kernel subversion named after these guys, for finding a gazillion deadlocks and such bugs in an automatic fashion.

    Take a look at their first paper on this.

    They have a whole slew of updates to this at
    Engler's web page. I believe there's a similar project at Berkeley as well.

    Cheers,

    bauzeau

  49. Re:A Microprocessor *IS* a language Interpreter by Detritus · · Score: 2, Informative

    What is the real instruction set? The processor's user-visible instruction set may be implemented in random logic, FPGAs, microcode, traps to machine code or some combination of the above. There can be more than one level of microcode. Some processors have a writable-control-store, allowing the manufacturer and/or user to change/enlarge the processor's microcode and instruction set. Western Digital used to make a multi-chip CPU that could be a DEC LSI-11 or an UCSD Pascal p-Machine by changing the control ROMs. On an IBM mainframe, an operating system call may be implemented in machine code, microcode or hardware, depending on which model you have.

    --
    Mea navis aericumbens anguillis abundat
  50. Re:A Microprocessor *IS* a language Interpreter by TheLink · · Score: 2, Interesting

    Mod parent up.

    Seems too many people forget that "rooms, walls and controlled openings" are a good idea. The bigger the building the more important they become. Sure you can have one huge room and put everything in it, but you'll end up partitioning it anyway. And even then either you resort to separate rooms or accept that the furnishings and decorations will be inconsistent within a room.

    Me: One man's impedance mismatch is another man's layer of abstraction.

    It's more likely that someone will add yet another type of "room" than for things to merge together.

    --