11 ms·
Serenity: x86 Unix-like operating system for IBM PC-compatibles
- Narishma 8y agoWeird title. Made me think this was for the original IBM PC and its clones but it seems to require at least a 686 (Pentium Pro). By that time the term IBM PC compatibles was already obsolete.
- DC-3 8y agoThis person has made their own fully fledged OS. Discuss that instead of bikeshedding about terminology.
- jchw 8y agoThat would be nitpicking not bikeshedding :) (They do have a point though; IBM PC compatible implies it would run on an IBM PC...)
- DC-3 8y agoIt's a form of bikeshedding, in that it involves discussing the superficial details that are easy to form an opinion about.
- TallGuyShort 8y agoOh my God they're literally bike shedding bike shedding.
- deleted 8y ago[deleted]
- DC-3 8y agoI'm obviously gunning for inclusion in webshit weekly :-)
- jchw 8y agoI mean, the term bikeshedding was created to describe a specific phenomena where people in an organization tend to put disproportionate consideration into trivial design issues. Particularly, as an example, the color of a bikeshed. Here someone is just pointing out a semantically incorrect or misleading statement. And we can say that's nitpicky, to a degree. It lacks some of the other nuance of the term 'bikeshedding,' though. If anything that was nitpicking also was bikeshedding, then what's the point of inventing such a term? And yes, I'm being nitpicky about the term bikeshedding, and proud of it :p (P.S.: As far as comparing the word nitpicking to bikeshedding, I think nitpicking already implies disproportionate attention to small details; hence the 'nit' part of it.)
- dTal 8y agoI don't think it's an unreasonable point to raise. I would however reply that, in a world where most people's primary computer is some form of SOC with peripherals soldered to it in god knows what way, the term "IBM PC-compatible" to refer to an x86 system with a BIOS and VGA graphics and the rest of it is still meaningful and useful. The "IBM" part simply means the standard that IBM created, and doesn't have to imply that the software runs on an original IBM PC - rather, it implies that software that could run on an IBM PC also runs on such a machine. Hell, DOS still runs on bare metal on a modern machine.
- Narishma 8y agoThis is hardly a fully fledged OS. It's just the beginnings of one.
- dehrmann 8y agoThe 686 part reminds me that I was able to get the latest version of Debian to boot on a Pentium II with minimal work. 686 and onward has had 20+ years of support.
- ch_123 8y agoFWIW I can think of at least two non-IBM-PC compatible x86 platforms (the NEC PC-98 series, and SGI's Visual workstations) manufactured past 1996.
- kej 8y agoTangential curiosity: what was different about them that made them incompatible?
- Narishma 8y agoThey didn't have an IBM-compatible BIOS and used a different system bus than what came to be called ISA. They also had different and incompatible video and sound hardware, among other things.
- tom_ 8y agoPsion's Series 3 was a non-PC x86 device still available in the late 90s: https://en.wikipedia.org/wiki/Psion_Series_3 https://en.wikipedia.org/wiki/Psion_Series_3 Microsoft released a non-PC x86 device in 2001, the Xbox: https://en.wikipedia.org/wiki/Xbox_(console) https://en.wikipedia.org/wiki/Xbox_(console)
- mysterydip 8y agoThis is excellent. I was expecting to see a screenshot of a command prompt and was pleasantly surprised to see GUI and applications. "the goal here is a marriage between the aesthetic of late-1990s productivity software and the power-user accessibility of late-2000s *nix" That sounds right up my alley. Will give this a try!
- rubyfan 8y agoSerenity Now!
- tcbawo 8y agoAlso of note, it appears to be a mostly (if not entirely) C++ codebase.
- 0815test 8y agoThat's too bad. Needs more HolyC! (Rust would also do, in a pinch.)
- fernly 8y agoThe README here is a model (or perhaps a superfluity) of modesty. This person has, apparently, written a complete OS from the metal up to a usable GUI, single-handed, AND done it in about 6 months -- at least, the oldest commit in the Kernel branch is October 2018. Well, I'm impressed, anyway.
- shric 8y agoModesty in the comments too :) https://github.com/awesomekling/serenity/blob/master/Kernel/kmalloc.cpp#L1-L4 https://github.com/awesomekling/serenity/blob/master/Kernel/... /* * Really really really Q&D malloc() and free() implementations * just to get going. Don't ever let anyone see this shit. :^) */
- tntn 8y agoSorry, what is "Q&D?"
- akling 8y agoOops, I forgot that comment in there huh! I keep postponing writing a better malloc because every time I run into trouble with this thing, I spend 5 minutes optimizing away whatever the current problem is and buy myself another month of not having to write a better malloc. Someday though.
- cseelus 8y agoThis might actually be the most impressive thing I‘ve seen here in a while.
- 8y ago
- akling 8y agoHey guys, I'm the author of this project. Surprising to see it on HN but life is surprising sometimes! I actually made a little demo video about this system just yesterday if you'd like to see it running: https://www.youtube.com/watch?v=hE52D-zbX3g https://www.youtube.com/watch?v=hE52D-zbX3g
- jchw 8y agoThis is some seriously intense stuff to build from scratch. I barely was able to get into x86 protected mode before I decided OS dev was too intense of a hobby for myself :) I'd say congratulations but I'm not sure what to congratulate as there's numerous accomplishments here worth doing so for. Compositing windowing? Complete and functional network stack? Seriously, kudos.
- chalst 8y agoNice, easy to read code from what I've looked at, and impressive to have assembled it so quickly. Were there any ideas you wanted to prove with your implementation?
- akling 8y agoThanks! I didn't really have any big ideas starting out other than "I don't know what my computer is doing 99% of the time, what if I could drastically change that number?"
- mythz 8y agoJust want to add a +1 this is incredible how much you've managed to do in such a short amount of time - a seriously impressive feat of engineering to even attempt, yet you've managed to come out with a working demo already.
- efiecho 8y agoThis is just amazing, I'm very impressed with your OS. This also inspires me to begin creating things that at first thought might seem impossible. How did you gain the knowledge to implement all these subsystems? Did you use any specific resources? Just building a kernel and networking would have been awesome, but a GUI and all the applications is just mind-blowing cool. Submissions like this is why I read HN. There are something intriguing about projects like this, that are small enough for you to have a chance of understanding how every part works.
- ianai 8y agoVery awesome. Love that it’s a new take on a modern OS - including a GUI. I didn’t think I’d see even an entrant into that sphere from a non-corporate entity again.
- novocaine 8y agoThis seems pretty incredible as a learning resource just as it is. I can't quite believe how much is here and how concise it seems - has anyone gotten it to run? I really hope the author or someone else writes sone high level documentation! Just knowing the design decisions would be great!
- akling 8y agoThanks. The design is mostly "discovered" through iteration. I tried making a few diagrams at one point but in a week they were already outdated, so I've given up on trying to document until things slow down.
- nn3 8y agoIt appears to be extremely bare bone. For example the TCP socket is like UDP with hard coded IP addresses. It won't handle any packet reordering or lost packets. I haven't checked other parts, but if they are like that it would be more a very elaborate demo than something actually usable. Still impressive even for a demo.
- benj111 8y agoHow would you bring up an OS? Implementing the bare minimum for each subsystem until everything is working and you're happy with it, seems preferable to spending 6 months on TCP sockets, then having to rewrite when it doesn't fit in with anything else.
- akling 8y agoYour observations are of course accurate: many parts of the system are indeed quite bare-bones. I've been trying to bring up a huge number of subsystems in parallel by building enough of the scaffolding and infrastructure in each area for a larger system to grow around. Now for the rest of my life, I will always have something to hack on. :)
- acqq 8y ago> it would be more a very elaborate demo than something actually usable. Depending of the definition of "usable." It's surely usable for anybody who wants to learn the basic ideas. It's written from the scratch, and just a small part of the whole system. To get the idea how the networking stack were introduced to the famous systems see, for example, how may people were involved in creating the Windows networking stack with TCP/IP, at the moment the already had other kinds of networking, and as Berkeley sockets already existed for years: "The idea for Windows Sockets was first proposed by JSB's Martin Hall at a Birds Of a Feather session at Fall Interop in San Jose in September 1991. Around 40 companies were formative members of the Windows Sockets group. Representatives from these companies gathered in Seattle in December 1991 to debate and resolve the basis of Windows Sockets. Considerable effort between then and January 1993, which involved a substantial amount of Internet-based email discussion, together with several meetings and 2 interoperability testing sessions (WinSockathons) led to version 1.1 of the Windows Sockets specification which is the definitive reference point for Windows Sockets today. WinSockathon II proved that Windows Sockets 1.1 is a viable standard for application/network implementation interoperability."
- snvzz 8y agoThe author has discussed his system for months in 4chan.
- enthdegree 8y agowhat board/generals?
- patrickmcnamara 8y agoThe /g/ daily programming threads.
- cryptokernel 8y agointeresting. https://coincircle.com/l/50VVxbObg3 https://coincircle.com/l/50VVxbObg3
- eismcc 8y agoHaving worked on the Windows kernel team, I can say this impressive stuff. It seems early enough to pick a specialty for this OS that it could do well that others may not.
- hrvach 8y agoRespect! This is a very impressive achievement for a single person and requires a lot of knowledge about operating systems.
- pushpop 8y agoI remember when home computing was full of neat hobby OSs. It was fun. Then somewhere around the last 20 years everyone stopped writing kernels and just built Linux distros instead (and these days you don’t even see that much variety in Linux any more either). Anyhow, this project looks really inspiring. At least from a quick cursory glance. Looking forward to digging a little deeper tonight.
- fooblat 8y ago> (and these days you don’t even see that much variety in Linux any more either) I beg to differ! While I do see that there are a a handful of very popular distros, there are tons more out there! Spend a few minutes poking around DistroWatch[0] and see if you don't agree. 0. https://distrowatch.com/ https://distrowatch.com/
- pushpop 8y agoI'm not on about quantity of distros, I'm on about variety. A thousand Ubuntu derivatives doesn't add much variation. systemd hasn't helped much here either because there used to be a lot of variety in how distro's would implement sysv. There even used to be distros that rolled their own file system hierarchy. Some might see the grand unification a good thing for interoperability and developers - and I don't disagree with them. But it was fun looking at the different ways different distros would solve the same problem. Whereas now the biggest difference between a lot of distros is a great deal more superficial.
- fooblat 8y agoI agree that the majority of distros are based on debian/ubuntu/fedora but there are still some significantly different ones out there. The most interesting/useful of these for me lately has been void linux[0]. It is based around runit (instead of systemd) and has a very nice native package manager as well. 0. https://voidlinux.org/ https://voidlinux.org/
- pushpop 8y ago
- simonsays2 8y agoThis would be quite an accomplishment for one person in six months. I am skeptical.
- charliebrownau 8y agoLooks interesting but without support for an HTML5 web browser and VLC/Smplayer and various other programs, whats the point Whats the advantage of ReactOS or Linux
- charliebrownau 8y agoI do like how nice and simple the IRC client and text editor look
- rambojazz 8y agoIf, like other people said, this was done in merely 6 months by a single person, let me bring some skepticism into the thread here. From writing a bootloader up to a functional UI with various functional user programs is not a 6-months job, unless you take many shortcuts.
- pjc50 8y agoIt appears to have been done full-time, and a lot of shortcuts have been taken. I would say the main achievement is maintaining determination for that period of time without doing so as part of employment or a course of learning.
- andyjpb 8y agoI've seen it done (multiple times). I worked for a set top box manufacturer where the lead engineer wrote an OS and a GUI system, from scratch, for our platform in less than a year. It had a bunch of syscall personalities. One for vxworks so we could port stuff from our existing platform and one for Linux so that people could write drivers for it based on the O'Reilly Linux device drivers book (which was current at the time). It also had a couple of others for odd things that we needed. It was incredibly well written. It only took me a couple of weeks to port it to PowerPC and the first week of that was just phaffing getting my cross compiler working properly. In contrast, we had another couple of programmers trying to write a web browser for that platform. After a year they had something that could render primitive web pages but there was still a good chunk of the web that didn't work "quite right". After two years they were still in a similar position. Operating systems are a dark art, and the person who wrote Serenity is very talented, but OSes are, at least, a tractable and well defined problem.
- chaoticmass 8y agoAre there any pre-built distributions I can just plug into QEMU?
- akling 8y agoHere's what I can offer right now: unpack this in serenity/Kernel/ and then run "./run" in the same directory. Or just start QEMU manually with qemu-system-i386 -kernel kernel -hda _fs_contents https://drive.google.com/file/d/1954ki8wzHT6axoj9vbFKj8XxFK5DdE4z/view https://drive.google.com/file/d/1954ki8wzHT6axoj9vbFKj8XxFK5...
- chaoticmass 8y agosweet, thanks! and it works! Boots in like .1 seconds. Very neat. One strange thing, in QEMU, the mouse is all crazy and I can't control it in a usable way. Jumps around.
- akling 8y agoThat's weird! Maybe it's some confusion between the PS/2 mouse and the PS/2 keyboard both using the same I/O port.. Does it help if you give it a little keyboard input before the mouse input? What OS are you running QEMU on?
- chaoticmass 8y agoI tried giving some keyboard input before using the mouse, no change. I am using Debian Stretch. If there is a more appropriate venue where you'd prefer continue this conversation, let me know.