r/ComputerCraft • • 26d ago • Bravo 4

Check out this Operating System!

This is my OS called BlockOS. This was made privately for my own server with my friends. It's inspired heavily by macOS. It is fully featured that has its own app store, editor (just like other operating systems like Opus and Minux), Finder, Launchpad and many more. Inspired by Opus and Minux as well.

Features:

- Menu bar, dock, running app docs, unread badges, move and resizing windows, full screen mode, everything from MacOS

- Cool animations.

- Keyboard shortcuts: Ctrl+Shift+Space for Launchpad, Ctrl+Shift+T for a new Terminal, Ctrl+Shift+Tab to switch windows, Ctrl+Shift+L to lock, and more.

- Animated Lock Screen

- Different wallpapers, light and dark mode.

- App Store - package manager for apps.

- Brocreate - Paint tool that has fill, undo, etc. which saves its own image format called .bimg, this is just a JSON with tables that dictate what it is per line.

- Editor - Writes and runs scripts, has Syntax highlighting. Has undo/redo, find and replace, go to lines, etc. A fully fledged editor.

- Finder - Just like macOS's, except it doesn't have tags.

- bTunes - Play and search for music on YouTube, has a live visualizer that ACTUALLY plays with your songs.

- Network - as long as the server has a GPS cluster, you can see the coordinates of other computers running the OS.

- Messages - rednet messaging tool, has rooms that you can create.

- Notes - Just like macOS's.

- Print - Allows printing to pages of .txt files.

- `server` - Supports a thing called BlockDrive, Minecraft Shared folders. Ran on a computer with 100 disk drives attached. This is just like Google Drive. This is a whole rabbit hole and too long to talk about.

- Automatic software updates.

- Terminal - CraftOS terminal inside the OS.

- Clocks, Reminders, Calculator, DiskCopy (similar to Opus' DiskCopy), Devices, Recorder.

Only supports Advanced Computers and Advanced Turtles.

This is an OS mostly for myself and for our server. But if you guys want to try it, try it yourself.

This video doesn't do it any justice but they are way more in this OS that I don't have listed.

Some of it are of the help of AI assistance but most of the code is written by me. The AI assistance in question was me asking questions about how to do things that is all. This isn't vibe-coded. (also helped me make the building tool to compile it as an installer, and the README.md file)

It also did the server edition and BlockDrive of the OS exclusively. You can see how it did on the server branch. That one's vibe-coded.

This runs on CC: Tweaked at Fabric 26.2.

Try it here:

wget run https://raw.githubusercontent.com/tamayaren/BlockOS/main/install.lua

Repository:

https://github.com/tamayaren/BlockOS

561 Upvotes

22 comments sorted by

59

u/ItsBlonk No AE2? Not for long. 26d ago

Well I dunno what I expected.

At least it's super cool looking.

23

u/Facci_ 26d ago

It is indicated that some of it have been AI-assisted, yes. Though this is not fully vibe-coded.

12

u/ALostMagic 26d ago

we can now reply to most posts in r/feedthebeast with "at least it's cool looking"

cus yea there are made partially or mostly or entirely with ai, but, AT LEAST, its cool looking...

i don't know if that should be considered a good or a bad thing

-10

u/No-Boysenberry6511 25d ago

ai is good, so it's definitely not bad

2

u/popcornman209 24d ago

What

0

u/No-Boysenberry6511 24d ago

This is the only way up it could have ended

0

u/MrPixel92 23d ago

ai

Claude*

If it's a new vibecoded mod, it 99% chance made with Claude.

1

u/popcornman209 21d ago

Not inherently Claude specifically, there are plenty other good coding models out there and with opencode just about any of them can code well, so many individual people will pick them over Claude for lower prices or other reasons.

With that said, yeah generally Claude is the most popular.

2

u/ALostMagic 26d ago

How did you build that?

I mean how long did it take you to build this???

🔥🔥🔥 ❤️ ❤️ ❤️

10

u/Facci_ 26d ago

A month. The speedup was me not having to think too hard about how to implement features, I had a planner from AI and I just have to code myself. I think the harder part of this was the animation system itself, the screensaver (sine waves because I didn't wanna do perlin noise), the actual desktop environment. I also derived some other operating systems' structure and how they do things, however this one is very monolithic so some features are built in one singular Lua script each.

The initial mostly human part was 1.0.0, before animations was added because I had to rewrite the renderer, so I got lazy and had it assisted.

This was essentially just a simple OS for myself but turns out CC's API is pretty limited (no mouse hover system, Lua VM they use has a limit on how many variables you should have)

The kernel/internal side was human made, some applications were AI (Brocreate, the BlockDrive, the Visualizer part in bTunes).

7

u/PaoDeBatata5008 26d ago

boy that is so cool

1

u/ChrisofCL24 23d ago

Are the passwords salted and hashed?

1

u/Facci_ 23d ago

Salted on SHA-256 hashes. Currently no actual user permissions system yet. Well, the user account system is primitive.

1

u/Accomplished-Fox9220 23d ago

Is this an actual OS or more like a desktop interface + some apps? I.e. does it have scheduling, memory management, file system, permissions, etc, etc, etc?

1

u/Facci_ 23d ago

It's more or less a desktop interface or userland than an OS. We do have some sort of scheduling to track running applications where each window is coroutine, that's the closest to a scheduling feature found on actual OSes.

No mem management since there's really no memory to allocate to (CC's just a Lua VM with its own garbage collector).

I decided it that way since CraftOS itself already has a robust API to use so might as well build with it. If I were to fully develop an OS, it would probably clog up the limited disk space of the computer, so there's no room to scale on top of it. (Unless we use some compression tech like Opus OS lzwfs)

2

u/Shot_Cat_3044 25d ago

This is awesome

2

u/MiniMuleNZ 25d ago

Super cool project! I always wanted to make something like this, but never had the time of the focus

2

u/TheLuckyCuber999BACK 24d ago

Pretty cool, although this is just a userland, not an OS.

1

u/Techn0Tast1c 24d ago

I'm already somewhat comfortable with Arduino IDE's tweaked C++

But how do I actually learn Lua?

I wanna do cool stuff too :(

1

u/Complete_Designer_99 23d ago

honestly if you have an understanding of programming constructs like methods , if statemensts , loops youre probably able to just go for it just lookup lua constructs and structuring as you go its how i did it (given i had experience from roblox development) but if youve worked with arduinos which is 10 times more complicated imo youll be fine, learning a new language isnt really about re-learning programming just learning how to morph your skills to fit another languages structure

1

u/kiochikaeke 23d ago

The only thing I don't like about Lua is that it sells itself as a barebones super simple language which it is but then starts doing all kinds of random things and tricks to replicate things like classes, so you end up with something that looks like a regular language with funky syntax except half of the code is syntactic sugar that gets abstracted away and under the hood is some incomprehensible mess of metatables.

1

u/Artiom_RUS 22d ago

Так та OS которую я делаю вообще хуйня постная