17 ms·
Project Oberon
- rahimnathwani 6y agoPrevious discussion: https://news.ycombinator.com/item?id=9847955 https://news.ycombinator.com/item?id=9847955 And, of course, in the same vein: https://www.nand2tetris.org/ https://www.nand2tetris.org/
- rtlfe 6y agoI don't know anything about hardware or EE. Is this something that a person could actually build from scratch?
- kristopolous 6y agoIt's more of a statement of guided documentation than anything. With enough study and motivation everything should be pretty accessible. I've used it a bit (almost 20 years ago however), certainly still requires committed dedication, then again, just like anything else.
- dgfitz 6y agoI decided I could fix my own cars when I “realized” that ‘if someone else can do it, I can do it’ as well. Turns out I had to learn a lot, but I learned it.
- rtlfe 6y agoFixing cars is of course learnable; we all know that mechanics exist. But computing hardware is usually built by really complicated machines. I honestly don't know whether it's possible for a person to make a CPU.
- vajrabum 6y agoClick on Nana2Tetris in the link above. You'll find out a good bit about it. Modern CPUs are enormously complicated. Machines from earlier eras tend to only be of only middling complexity.
- deleted 6y ago[deleted]
- lebuffon 6y agoNow more than ever because you can define it code. Here is a CPU written in 200 lines of Verilog. https://excamera.com/files/j1.pdf https://excamera.com/files/j1.pdf
- pkaye 6y agoI think that Digilent FPGA board is discontinued so a bit more work to make it work on another board. You will have to modify the ucf file to match the pinout of another board. In particular you need a board with SRAM but a lot of newer boards have DDR memory.
- rthomas6 6y agoI suppose it depends on how you define "from scratch". Pretty much anyone can build a desktop PC from parts in a single day. That's what would make the most sense in this context as well, probably. Target a simple CPU design with a simple instruction set that you can understand. If you want to go further from scratch... Designing a motherboard wouldn't be too hard, though it probably wouldn't be very good or reliable. Same with a power supply. Designing my own CPU is something I could probably do with several months' worth of effort, as a CompE. But actually making a physical chip of it is another matter entirely. It would be expensive and you'd have to pay a manufacturer to do it. Physically making your own CPU at home is pretty much out of the question, but you could use an FPGA. I have no idea how to go about making RAM or hard drives "from scratch". Same for monitors.
- bri3d 6y agoFrom "scratch," as in raw materials, absolutely not. Even the most dedicated home-fabrication hobbyists ( http://sam.zeloof.xyz/first-ic/ http://sam.zeloof.xyz/first-ic/ ) have come nowhere near achieving the transistor density required to construct the "OberonStation's" CPU or memory, whether taped out (laid into a chip design using actual silicon gates) or built using a programmable gate array. From a circuit board etched by someone else and PCB components purchased online and soldered together by a hobbyist, certainly, without too much difficulty (the package used by the programmable gate array requires a bit of specialty equipment, but is within reach). One other point about Oberon is that I _believe_ that because the design predates open-source FPGA toolchains, a closed toolchain is still required to convert the Verilog (high-level design describing the processor logic) into a netlist (FPGA configuration), and it hasn't been taped out into a chip, either. So, the book covers the design of a computer end-to-middle - that is, without covering how the block / HDL level design becomes logic gates, and without covering how said gates are then manufactured. This is probably fine - the scope has to end somewhere. The linked NAND-to-Tetris articles cover the other end - from logic gates up to typical computing constructs (adder, registers, shifters, etc.).
- leowoo91 6y agoWhat's the next big limitation zeelof had for going smaller?
- deleted 6y ago[deleted]
- SamuelAdams 6y agoSadly this is not the same as the brew from Bells Brewery in Kalamazoo, MI.
- theamk 6y agoIt is very weird.. this code is is full of the duplicative, hard-coded constants, something which I would avoid in any software I write. For example, take a look at the display module [0] -- this 190-line program contains over 20 instances of constant "128", in lines like those: sa := base + u0*4 + sy*128; da := base + v0*4 + dy*128; What does this mean? See, there is only one display supported by this OS -- an 1024 x 768 monochrome one. Since this is monochrome, you only need one bit per pixel, and you can put 8 of them in the byte. If the pixels are sent out serially and lines follow each other in the buffer, then start of each line is (1024 / 8) = 128 bytes apart. But instead of writing something like "const LineStride = Width / 8", the code just hardcodes the value all over the place. [0] https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Display.Mod.txt https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Displ...
- deleted 6y ago[deleted]
- pavlov 6y agoMy guess is that this is meant to emphasize how the display module is truly single-purpose for this specific device. If you want a different display, they'd prefer you to rewrite it from scratch?
- AnimalMuppet 6y agoThey may prefer it, but why should I? Or they may never have thought about running on a different device. Why should I do the work to do it? This was not done with the idea of portability, maintainability, or even good engineering practice.
- bigfoot675 6y agoWhy not just say that then
- 082349872349872 6y agoExactly. Recently, when Wirth couldn't find an OS with a device driver for his favourite mouse, he built his own hw + OS + userland combination so he could keep using the mouse he got as a souvenir of his Xerox sabbatical. (I believe the monitor and keyboard were off-the-shelf.) He's not primarily a programmer, but a computer engineer. It wasn't his first computer system, and may not even be his last. The mouse stays the same size, but the computers themselves have shrunk dramatically over the years. Maybe when he turns 90 he'll ship-in-a-bottle build a computer inside his favourite mouse?
- avodonosov 6y agoAny videos of it running?
- deleted 6y ago[deleted]
- systemvoltage 6y agoI often wonder what if we decide to build a completely new, well thought out computing system (including network) that is totally separate from any legacy system and 100% backwards incompatible. Not any bit less, 100% backwards incompatible and everything would be fresh. There would be no jpeg support (it would have its own image format), it would not have standard TCP/IP stack - a new protocol and network infrastructure, new display format, new IO ports, etc. Why am I imagining this? I feel like computing systems as they've evolved, they've built stuff on layers upon layers and just like biological evolution, it is impossible (difficult) to undo because the marginal cost is too high to unwind and break backwards compatibility. We get stuck in local maxima at each layer and the critical energy required to escape out of it would be too large. I am not saying backwards compatibility is bad, far from that, I am saying that if we force ourselves to cut the cord and completely build computing systems from scratch - I feel like we would have a hindsight to design it better, faster, and cheaper.
- jamesmishra 6y agoI think it is possible to build a better system from scratch, and there are likely space aliens that have such better systems. But ultimately a computing system should do what its users want, and the market has favored backwards-compatibility for a long time. If anything, it's a little alarming how old software and hardware can quickly become useless or obsolete. For example, any web browser that doesn't support any encryption better than, say, SSLv3, is cut off from a significant fraction of the Internet.
- squibbles 6y ago> I think it is possible to build a better system from scratch, and there are likely space aliens that have such better systems. I respectfully disagree. Alien systems can be thwarted by inverting some bits. [0] I would not have believed this had I not seen it for myself. [1] After all, seeing is believing. True, the alien code seems very insecure. Perhaps aliens write their code based on the historical documents. [2] [0] https://www.reddit.com/r/movies/comments/2oi7cz/i_am_dean_devlin_writer_producer_of_independence/cmo0r1y/?utm_source=share&utm_medium=web2x&context=3 https://www.reddit.com/r/movies/comments/2oi7cz/i_am_dean_de... [1] https://www.youtube.com/watch?v=cgqswujkxPE https://www.youtube.com/watch?v=cgqswujkxPE [2] https://www.youtube.com/watch?v=lLZQz26-kms https://www.youtube.com/watch?v=lLZQz26-kms
- mark_l_watson 6y agoI think it was about 1997 when I RAN Oberon on a home computer. I thought the language was good, the OS and mostly text oriented UI was interesting. It would be good if there was a VirtualBox distribution. I looked but I saw nothing that I could use.
- cxr 6y agohttps://github.com/pdewacht/oberon-risc-emu https://github.com/pdewacht/oberon-risc-emu
- deleted 6y ago[deleted]
- Rochus 6y agoHere is a version which runs on LuaJIT: https://github.com/rochus-keller/oberonsystem https://github.com/rochus-keller/oberonsystem Just download the Oberon IDE (there are precompiled versions for Windows, Mac and Linux) and run the OberonSystem project included with the IDE.
- newbie789 6y agoThis is a lot of PDFs. Is there a basic summary of what hardware/software is involved available in HTML form? Sorry if I don't really understand what this is, but it seems like there's a production-ready hardware and software description (written in 2013?) that is applicable today in 2020? Edit: Is this meant for academic study? And if so, is a basic newbie description available?
- alexisread 6y agoThe documents outline how to build a computer, from designing the hardware in an FPGA, to the entire software layer including UI, bootstrapping itself etc. One person can understand the whole thing. What's more, this is all done with a compiled language using GC at runtime, and with a low memory overhead ie. Oberon can be used as a systems language. There are several projects moving on from this software-wise, A2: https://www.research-collection.ethz.ch/bitstream/handle/20.500.11850/147091/eth-26082-02.pdf https://www.research-collection.ethz.ch/bitstream/handle/20.... Also, following on from A2, Composita introduces a component architecture to allow managed memory without GC, and contextless switches (IMHO better than Rust) http://concurrency.ch/Content/publications/Blaeser_Component_Operating_System_PLOS_2007.pdf http://concurrency.ch/Content/publications/Blaeser_Component...
- newbie789 6y agoThank you so much! I think this is out of my scope skill-wise but it looks pretty cool! I appreciate this info!
- deleted 6y ago[deleted]
- webmunk 6y agonice <a href="https://packersandmoversindia.net/packers-and-movers-bangalore.php/">Packers https://packersandmoversindia.net/packers-and-movers-bangalo... And Movers Bangalore </a> <a href="https://packersandmoversindia.net/packers-and-movers-hyderabad.php/">Packers https://packersandmoversindia.net/packers-and-movers-hyderab... And Movers Hyderabad</a> <a href="https://packersandmoversindia.net/packers-and-movers-pune.php/">Packers https://packersandmoversindia.net/packers-and-movers-pune.ph... And Movers Pune</a> <a href="https://packersandmoversindia.net/packers-and-movers-chennai.php/">Packers https://packersandmoversindia.net/packers-and-movers-chennai... And Movers Chennai</a>
- webmunk 6y agoGetting a doorstep solution for your <a href="http://webmunk.in/ac-repair-and-service-bangalore.php http://webmunk.in/ac-repair-and-service-bangalore.php"> Ac repair and service in Bangalore </a> is a must have these days, You just need to go online and get a depth information about different services provided by them and you can easily pick a service based on your needs.
- pkphilip 6y agoSpam. Please remove
- CharlesMerriam2 6y agoThis has been done with hardware. The OLPC was a clean sheet implementation of a computer. It created ideas such as only having a few sizes of screws, shipping extra screws in the case, separating the light bar from the LED screen, innovative use of polarization, new mesh networking, and a low price tag. About half of the innovations were picked up by other manufacturers within a couple years. This was done with a programming language. Ada was designed through an iterative sequence of trials for a clean sheet implementation of a development language. It created, or popularized, ideas such as explicit module exports, tying directory and file names to classes, separate "to end of line" comments, and more. About half of the innovations were picked up by other language vendors within a couple years. Oberon gets mentioned on HackerNews every couple years. It is hard to say its really a clean sheet.
- pjmlp 6y agoMany of its ideas, and Xerox PARC workstations which is here Niklaus Wirth got his inspiration from, could be replicated via COM/XPC/D-BUS/gRPC/AIDL based desktop, however they never go to the full extent as Xerox/Oberon went, because most developers lack the understanding how it could be like and never bother to learn from history.
- tonymet 6y agono need, we already have BeOS
- non-entity 6y agoI've been mildly interested in Oberon (the language) as of late after reading about Wirth's languages. I remember reading about Pascal and the Modula family some years ago, but always didn't know Oberon was his creation as well and thought it soubded like some weird esolang. I almost wrote a compiler for Oberon when I learned how simple the language is and I needed a compiler for an old architecture. What were benefits or breakthroughs of the OS when it was created? I wish the 2013 book was available in a physical copy, I'm not a huge fan of PDFs.
- pjmlp 6y agoBasically the same as Mesa/Cedar, but in more affordable form than Xerox PARC hardware would require. http://toastytech.com/guis/cedar.html http://toastytech.com/guis/cedar.html "Eric Bier Demonstrates Cedar" https://www.youtube.com/watch?v=z_dt7NG38V4 https://www.youtube.com/watch?v=z_dt7NG38V4 About 1h video with some developers from Mesa/Cedar done by Computer History Museum. As for what breakthrough, this are full stack graphical workstations written in GC enabled systems programming language. To bring it to modern context, imagine something like Windows being fully written in .NET Native, but in the 80's.
- 082349872349872 6y ago... in the 80's, with a headcount of 2 (who had other academic duties). > "The primary goal, to personally obtain first-hand experience, and to reach full understanding of every detail, inherently determined our manpower: two part-time programmers. We tentatively set our time-limit for completion to three years. As it later turned out, this had been a good estimate; programming was begun in early 1986, and a first version of the system was released in the fall of 1988." I think of Wirth and Gutknecht as demonstrating that one need not be as far out as Terry A. Davis to do small-team end-to-end work. (compare Carver Mead's tall thin person)
- Gormisdomai 6y agoRelated and potentially interesting to HN, a short memo from the creator of the Oberon language (that backs the OS) comparing it to LISP: https://people.inf.ethz.ch/wirth/Miscellaneous/Styles.pdf https://people.inf.ethz.ch/wirth/Miscellaneous/Styles.pdf
- pjmlp 6y agoAlthough the original Project Oberon was great for its day, one should have a look at Oberon System 3 and Blue Bottle (AOS), which evolved Oberon (language) into Active Oberon (language), while offering a much more modern L&F. Some surviving info regarding System 3: https://www.drdobbs.com/architecture-and-design/oberon-system-3/184409324 https://www.drdobbs.com/architecture-and-design/oberon-syste... https://www.semanticscholar.org/paper/Oberon-with-Gadgets-A-Simple-Component-Framework-Gutknecht-Franz/7d938c17c5b759eba8b03f9f49cbe292875aeec6 https://www.semanticscholar.org/paper/Oberon-with-Gadgets-A-... https://sourceforge.net/p/nativeoberon/wiki/Home/ https://sourceforge.net/p/nativeoberon/wiki/Home/ https://www.semanticscholar.org/paper/Project-Oberon-the-design-of-an-operating-system-Wirth-Gutknecht/54588af85cafce2599ccbb8d9f3a7a0c9c0eb923/figure/68 https://www.semanticscholar.org/paper/Project-Oberon-the-des... Some surviving info regarding Bluebottle (AOS): https://os-projects.eu/oberon-system https://os-projects.eu/oberon-system https://www.linux.org.ru/gallery/screenshots/4163239 https://www.linux.org.ru/gallery/screenshots/4163239 Unfortunately the www.ocp.inf.ethz.ch seems to have been moved out of Internet. It had quite some information about Bluebottle, although there are some Github mirrors like this one: https://github.com/cubranic/oberon-a2 https://github.com/cubranic/oberon-a2 The doc directory has lots of nice info. The latest version of Active Oberon manual as of 2019: http://cas.inf.ethz.ch/news/2 http://cas.inf.ethz.ch/news/2
- non-entity 6y agoIs Active Oberon considered a canon (for lack of a better term) successor to Oberon07 or is it more like Component "Pascal" and just a spin off from an Oberon version?
- pjmlp 6y agoThe linage is more or less as follows: Oberon => Oberon-2 => Component Pascal => Active Oberon => Oberon.NET => Zonnon => Oberon-07 (multiple iterations until 2016) From features think Go (Oberon), D/C# (Active Oberon). Active Oberon provides features for manual memory management (untraced references), async/await (active objects hence the name), lightweight generics, interfaces, exceptions.
- axilmar 6y agoI don't believe in throwing out the old completely. As others have noted, the cost of completely replacing the current infrastructure is astronomical. What could be done instead would be a parallel virtual platform inside the current technology that abstracts the current technology in such a degree that many things become trivially doable.
- robertlagrant 6y agoIs jcm involved?