by akling · 7y ago · 0 comments
If you would like to see the system in action, I did a demo video in March[1] and one in April[2].
I’m happy to answer any questions you might have about the system. I’m not an expert on operating systems, but I can be pretty productive :)
You singlehandedly created something that took many programmers many decades to build.
The original developers had to come up with the concept of, say, a taskbar from scratch.
They understood it has to run separately from other parts of the OS in case of crashes, it should support icons that are references to the same icons that windows have, etc.
But they were also limited by the resources of their day, and had to get clever about resource allocation. That's extremely time-consuming.
But that said, 90% of this project is simply a very good creator, being incredibly productive.
The mythical 100x programmer isn't always a myth.
I'm in awe.
Serenity is an unapologetic remix/mash-up of all the things I like in software. Not just visually, but also code-wise. If you look into the sources, you'll find C++ heavily inspired by Qt and WebKit.
I remember being excited that I was able to splurge on a 486 with 4 Mb RAM.
Will it be possible at some time to compile Qt based applications in SerenityOS?
From the state a month ago, it’s very reasonable. From scratch however...
How do you even start building an OS?
I don't know if any two operating systems started out the same.. Serenity came into this world because I found myself with a lot of free time and in need of a programming project.
The first three components I wrote were an ELF parser, an Ext2 filesystem dumper, and a GUI library (on top of SDL.) They all ran independently on my Linux box. Once they worked well enough, I glued it all together with a simple x86 kernel and just kept going.
Probably not the answer you wanted, but I assume from a poc/toy bootloader. I wasn't disciplined enough to go further, but I did play around getting a toy OS working, and stopped a little bit past that part.
This effort, from a one man show, is amazing.
So far I've learned C [0], x86 asm [1], read OSTEP [2] and begun hacking on xv6 ...and I still feel like I have years to go.
[0] http://www.knking.com/books/c2/index.html
Now that you have networking and a compiler, you could build a "simple" package manager. It could be just a list of supported Git repositories that are downloaded (downloader) and built (gcc), that would at least allow people to write stand-alone applications (no libraries) for your system that others could use.
A package manager is definitely coming sooner or later. There's actually an SDL port in the works (done by a stellar contributor, not myself.) I suspect that we're gonna need some sort of ports system in the Serenity tree to be able to maintain it. :)
The bitmap sharing between WindowServer and clients is using a custom Serenity API ("create_shared_buffer") which is specifically tailored for this system. It can probably be replaced with some equivalent X11/Wayland mechanism in a few hours, if someone felt inclined to do that. :)
The inspiration for this system comes from using Visual Basic as a kid and just having fun trying to mimic the Microsoft Office look&feel of those days. It also comes from using Slackware Linux and realizing that everything can be done with text commands, and configured with text files.
Does that system only design forms, and you have to manually "glue" them to code - or is there a visual programming system behind it?
I guess what I'm getting at is that you mentioned here being inspired by VB from your youth - so I was wondering how far you have taken that particular part?
I worked professionally with VB for over a decade (from VB3 to VB6) years ago; BASIC in general, and VB as well - both hold places in my heart, since that is where I started my coding journey to a career in it (I started when I was 10-11 years old, back in 1984, using a TRS-80 Color Computer 2, which ran a version of BASIC from Microsoft).
This is a great project, something I've seen posted before here and elsewhere, but it's always worth another look when it pops up.
It would be fun to build a visual programming system in the style of VB6~, but it's not something I've started on. :)
Any plans for 64 bit?
Any plans for SMP?
The old readme mentions a gcc patch. Is it still needed? What does it do? Just the final executable's format?
Is there an FAQ somewhere that I missed? :)
The answer is basically the same for 64-bit and SMP support. Some day I'll wake up with the burning desire to implement those things, and then I'll start on it. Or someone will show up with patches. We'll see! Nothing really depends on those features, although they would certainly be huge improvements to the architecture.
Yeah we still need patches for binutils and GCC. Any custom operating system does, you can see the patches here: https://github.com/SerenityOS/serenity/tree/master/Toolchain...
It's all about setting up the executable formats, providing the system names, and telling the compiler how we like things linked, etc.
There's no FAQ but maybe I should compile one..
I hope your OS finds a stable niche to live in, and you get lots of great contributors. Thank you for writing this, its existence makes me deeply happy :)
understatement of the century