538 points · by luismedel · 3y ago · 198 comments
I'm always impressed when people build their own operating systems or browsers from scratch. Few of them will attain widespread adoption. That doesn't mean they aren't valuable though. Kudos to the developers.
Funnily enough, you don't get this "unity" or whatever you want to call it that I'm describing with Windows at all. They have random legacy ways of doing things, Windows is starting to look like a hacked together Linux OS with how inconsistent the main OS apps tend to be.
Edit:
Maybe if Microsoft stopped letting Marketing Teams dictate what goes on Windows, and focused more on polishing their OS. They would have an insanely fantastic OS offering.
It wasn't just that, both the founders were very big socialist/communist people who didn't really understand how to run a business. They still don't. Elementary OS turned down numerous funding opportunities, numerous partnership opportunities. They made a really really great OS. But the business aspect was just atrocious.
The "Pay what you want" model could have worked for their store. But just having a store in the beginning they didn't want one and then they pivoted to having one way late. There was big internal strife in the eOS Community amongst the developers for years, and very little conflict resolution on their part.
I wouldn't say they're an example of a failed funding model. Rather, I'd say they're an example of people who have amazing talent and ideas, but refused business help and refused to admit their failures.
Are there other alternatives to consider?
I remember an article showing the UI of Windows system apps, and as you go deeper and deeper into %SYSTEM% or whatever, you get UI from progressively older and older versions that are sort of left behind. You get an incentive to polish all the immediately user-visible stuff, but there's so much of it anyway so if the deeper-hidden stuff that a handful of people is using is still working, nobody will touch it. Look, the WMI console was probably unchanged since Windows 2000 at the time of Windows 10.
Indeed, these "reskinned"* Linux distros seem to be so common, it's easy just to make assumptions.
This (Essence) looks pretty impressive - to be built from scratch and have a nice clean (dare I say it... "non-linuxy looking") UI is even more impressive.
* "Reskinned" is probably a bit of a lazy term here - many of them are a lot more than that - but still, the point is that the value prop. is often the nicer more user-friendly aesthetics layered on top of an existing distro. What we're looking at here seems a lot rarer. Snapping at the heels of ChromeOS?
- Beautiful screenshot.
- "Essence will happily run on low-powered hardware.
It can take less than 30MB of drive space, and boot with even less RAM.
No tasks run in the background, giving your applications all the space they need."
- Amazing performance.
- All the code is made available under the MIT license.
- Demo video.
I can immediately imagine many different ways this could be popular in areas not covered by the main desktop OSes. The only other thing I guess I want to know is the developer toolchain/experience and "getting started" which is covered by Discord/Patreon links.I think it would do well to differentiate it from current desktop OSes, e.g. first class support for touch interfaces, etc. Imagine all the IoT devices needing UIs.
I bet you could compile this into WASM and get quite a good web UI with it's fake windowing system.
https://gitlab.com/nakst/essence/-/graphs/master?ref_type=he...
"Thank you. I am not working on it at the moment. But I would like to return to the project when I have more free time ;)"
He's busy with something else.
You can toss together a shitty biplane but at the end of the day you can’t make the engine or the full size fuselage and there are no mechanics or factories for your jet so nobody is ever going to use it.
times (0x1B4 - ($-$$)) nop
disk_identifier: times 10 db 0
partition_entry_1: times 16 db 0
partition_entry_2: times 16 db 0
partition_entry_3: times 16 db 0
partition_entry_4: times 16 db 0
dw 0xAA55
That's elegant, because it shows where/how the disk identifier and the 4 classic MBR partitions coexist inside of the same first 512 bytes in the boot block, with the boot code... (it is assumed that AFTER the boot block is copied to disk that the partitions will be set by an outside program (i.e., fdisk or similar program) to appropriate values... otherwise MBR partitions would be set to 0 from copying the boot block -- but that's a minor sub-point... it's elegant code -- I've seen a lot of boot block code, and I've never seen that construct before!)
If you mean a true capability-based OS, there is Fuchsia, which doesn't seem to be used yet, and RedoxOS, which is in development.
Let's say you want to buy an ice cream cone, and pay for it.
Think of permission flags as signing a "Power of Attorney" letter, and handing that over to Dairy Queen. Every time you get a cone, they just take the money out of your account. But they could also sell your house. You can't limit the side effects of the permission you give, it's all or nothing.
On the other hand, capability based security is like taking a $5 capability out of your wallet (in the US, a piece of paper with Lincoln on it), and paying directly for that transaction, one time, at the time it is needed. The most you can lose is that $5. You're not risking your home, just to get ice cream.
The OS market is deranged. Capability based security is something that's been required since persistent internet connections became a thing. Clearly blaming everything else, the users, admins, programmers, compilers, language design, hasn't worked.
[1] https://support.apple.com/en-asia/guide/mac-help/mchl211c911...
>Lord, what I would give to see Haiku gain real traction
I think the only thing we can give right now is our time and money. Porting applications, porting to different hardware platforms, spreading the word, etc.
`systemd-analyze` (in particular, `systemd-analyze critical-chain` and `systemd-analyze plot > plot.svg`) are useful to diagnose. On my system you can see that my graphical session waits for systemd-user-session.service, which waits for network.target, which waits for NetworkManager taking its sweet time, which isn't started before network-pre which waits until nftables is done loading rules, etc.
Optimizing the service order and their dependencies does wonders for boot time.
I'm more curious why my car, which is fairly recent, doesn't start in 0.3s.
https://wiki.archlinux.org/title/Improving_performance/Boot_...
I haven’t really had any issues with Linux boot times for personal machines lately. I think the people that care most about getting into the sub-second range are the ones doing cloud VM stuff, spinning up lots of micro services or whatever.
I've don't bare metal development and drawn simple graphics with a linear frame buffer, but for a UI like this or Windows, I'm wondering how the images that represent the UI components are generated.
I don't see any png files for window borders, but I do see code for setting pixels to the correct color for a theme.
Are UI components in an OS usually programmed and not created in an image editor and then tiled?
These days, it's almost always vector graphics. Used to be simple bitmaps. This OS in particular is using vector graphics.
> The user interface is completely vector-based
So these are all descriptions of how to draw the UI, as opposed to using raster images.
Essence: Desktop operating system built from scratch - https://news.ycombinator.com/item?id=29950740 - Jan 2022 (290 comments)
Tips:
(1) Add virtualization early. That way it'd be possible to run other OSes and thus familiar apps. In the long term a seamless form of virtualization similar to Parallels Coherence could be explored as a way to run foreign apps on their host OS. This would be a short-medium term solution to the 'no apps' problem that dogs any new OS effort.
(2) Limit hardware support scope by targeting a few target platforms. I'd suggest Linux-oriented laptop vendors like System76 and Framework, the Raspberry Pi, and a few other familiar things with related ethos.
(3) Look at using foreign drivers such as those from Linux or BSD via a compatibility API. This might let you support notoriously painful to support things like wifi cards.
> nakst's webpage // This site works best with JavaScript disabled
Great guy ;)
Small world.
And oddly, it would be even more impressive if they built their own Web Browser from scratch ...
https://github.com/SerenityOS/serenity/tree/master/Ladybird
I also like their Jakt programming language:
https://github.com/SerenityOS/jakt
Though I'm more enthusiastic about Redox (doing it in Rust):
On the subject, would anyone now what if there is any selenium / Webdriver support, for Ladybird?
I'm not saying Ladybird "needs to" have all this, just putting some of it into context. And it's no slight to the project either; they've managed to get a lot working with a paucity of person-hours.
I've apparently been "ruined" by functional languages because this sort of imperative mutational style of "make this object have these attributes" is just an instant turn-off. an equivalent functional style would look something more like:
> rect = Struct.merge_attr(rect, %{width: 640, height: 480})
(assuming you have the Elixir language feature of being able to re-use the same name, but underneath it's actually pointing to a new value; if not, you'd have to assign to a new name, but at least there'd be no ambiguity, and you could still continue to refer to the old name until it went out of scope)
> It can take less than 30MB of drive space
A modern display driver alone takes disk space/RAM in the class of 30MB, so Essence is really tiny. The probably downside is that it cannot utilise modern hardware.
Starting from scratch is awesome, and I'm firmly in the group that we should not strive for backwards compatibility at this stage, and instead aim to maximize intuitiveness for both developers and users.
For e.g. twitter-like streams / RSS, simple high level workflows for generic business purposes, and so on.
Browsers should necessarily not be supported. Layout options should be fixed, and totally protocol specific. (For e.g. a twitter-like stream can only be displayed in limited ways. )
> If you're interested in contributing, join our Discord server to discuss ideas with other developers.
Would be nice to have a dedicated forum (Discourse?) instead, but I get that it is too soon for this project.
I love the idea of all application windows being able to be moved into tab groups. Are there window managers that do similar things?
Haiku Stack&Tile!
https://www.haiku-os.org/docs/userguide/en/gui.html#stack-ti...
A long time ago I implemented something like it (the stack part, not the tile part) in Awesome/Lua, so that floating windows could be tabbed together. Code is lost though. It was a bit too buggy anyway, pushing Awesome to its limits.
[1]: https://www.zdnet.com/article/microsoft-windows-10-testers-w...
Good times!
Basic things like writing documents, viewing images, and (limited) web browsing using a text-based browser would probably be perfectly fine with an unaccelerated framebuffer.
It would be amazing if there was an OS agnostic driver layer
That's what things like VESA VBE are for.
Thanks for sharing!
I have NEVER seen an OS installation (and boot sequence) as fast as that - just incredible.
But yes, if you're starting from scratch, that virtually begs to do something at the language level.
A quick look at the repo suggests this is coded in C++? Too bad - a missed opportunity imho.
Otherwise a very cool project!