4 ms·
If history had gone differently, we could have had this instead of Java. Inferno was a futuristic jet to Java's stone-age wheel, but it was not to be. A perfec
by dmpk2k 12y ago
If history had gone differently, we could have had this instead of Java. Inferno was a futuristic jet to Java's stone-age wheel, but it was not to be.
A perfect example that superior design and implementation doesn't win out. Other factors are more significant.
- cgh 12y agoYou're comparing an operating system to a language specification. Not sure I see what you're getting at here.
- dethstar 12y agoFrom the site: "There's a good comparison to be made with java, as they had similar design goals: good performance (within an order of magnitude of C) cross platform / virtual machine based (WriteOnceRunAnywhere, except actually delivered this time) safe execution of untrusted code powerful network / browser focus However, they diverged in a few areas (probably to their advantage): register based byte-code (as opposed to stack based), maps well to existing processors, JIT compilation works much better supported as a native operating system (i.e., it'll easily run on bare hardware, for many values of hardware)"
- electrum 12y agoThe choice of register vs stack for bytecode doesn't make any difference for a modern JIT like HotSpot. The bytecode gets transformed into an intermediate representation (IR) and optimized before being translated to machine code. A register based bytecode like Dalvik that has 65,535 registers certainly does not map directly to hardware.
- thedigitalengel 12y agoIn any case, Java's stack-based bytecode is really a register machine in disguise. It isn't a general stack machine -- for instance, at a given "PC" the shape of the expression stack (i.e. the number and "basic" types of elements in it) needs to be constant. The right way to look at Java's bytecode stream is opcodes for a register machine with _implicit_ input and output registers. Mapping it to a compiler IR would not be easy in the general case if that weren't true.
- KMag 12y agoEdit: Michael Franz's research would seem to disagree, and I believe Mike Pall (of LuaJIT) would also disagree. As I remember, the Dis bytecode used 64-bit instructions, with a 16 bit opcode, a 16-bit address and a 32-bit address. I've heard it described as a memory machine, and also as a machine with 65,536 registers. In any case, it's easier and more efficient to perform register allocation from an intermediate language with a huge number of registers down to a small number of physical registers than it is to assign slot locations to registers. See Michael Franz's SafeTSA [1] project for an example of modifying a JVM to be able to mix and match both Java bytecode and an SSA-based bytecode in the same process. Granted SSA has some additional properties besides an infinite register set that make code generation nice. However, they found that it took less time to generate native code from SafeTSA and that the generated native code ran faster, even though the JIT backend was identical for the two bytecode formats. The disadvantage of SSA and memory machine bytecodes is they are more complicated to efficiently interpret if you're not generating native code from them. [1] http://en.wikipedia.org/wiki/SafeTSA http://en.wikipedia.org/wiki/SafeTSA
- sedachv 12y agoThat's a disingenuous - of course it makes a difference. Trying to infer an efficient allocation of registers from a chain of stack instructions involves a ton of tricks that bloat the compiler and make loading the bytecode slow and processor intensive. That's the problem Dalvik was designed to solve, and why Dalvik's successor ART is a regular compiler and not a JIT.
- SixSigma 12y agoThe beauty of Inferno is that one of the incarnations happens to be an operating system that runs on bare metal. But the very same code can be run as a command line program in Windows / OpenBSD / OSX / Linux. Or as a multi-windowed program like an MDI or a single window, or a full screen window in kiosk mode, or as a network service on IBM's Blue Gene. Inferno is used by IBM, NASA, Alcatel-Lucent, the US DoD.
- xorcist 12y agoWasn't there a JavaOS as well at some stage? Or at least planned?
- SixSigma 12y agoSun even made Java cpu's / appliances These days there's http://www.azulsystems.com/products/vega/overview http://www.azulsystems.com/products/vega/overview Bruce Ellis (one of the people who created Mark V Shaney) and one of the original Inferno developers until it was sold, has been working on a Verilog cpu to execute DIS natively but still no prototype. One of the beauties of Inferno is it will run on a platform with no hardware MMU. And the Styx protocol means it can do great things easily. It has even had servers running on Logo Mindstorm.
- stonogo 12y ago> Inferno is used by IBM, NASA, Alcatel-Lucent, the US DoD. Where?
- delish 12y agoBy mentioning "Java," the poster probably was referring to the JVM. As jwz says, "Java" refers to numerous things: there are four completely different things that go by the name ``Java'': A language; An enormous class library; A virtual machine; A security model. http://www.jwz.org/doc/java.html http://www.jwz.org/doc/java.html