r/AmigaDisrupt • • Aug 12 '21

Amibian.js, just what the hell is it?

18 Upvotes

If you haven't heard about Amibian.js, here is a quick introduction to the project.

What would happen if someone made a re-implementation of Amiga OS, but instead of targeting x86, ARM or Risc-V, the target was WebAssembly and JavaScript? What would the benefits of such a system be? That was the question I asked 3 years ago, and the philosophical and technological implications have been both jaw dropping and exciting at the same time. As well as somewhat terrifying.

The first question when it comes to such a project is naturally, is it even possible? And the answer turned out to be yes. I spent the better part of 2018 creating a prototype where focus was to determine if something as elaborate as an operating system could be written in JS. I should underline that the term operating-system here means service-layer, desktop and application model. You cannot write a bootloader or kernel in Javascript (obviously). To bootstrap the system we use a very thin layer of Linux which covers kernel, drivers and the service infrastructure.

Amibian.js consists of 5 system services that starts when the machine boots (implemented using node.js which runs on anything, even smart TV's), running in the background, and the desktop itself. When the machine boots it loads in drivers and the standard linux sub-system (barely 20 megabytes), the services are started, and then the desktop is loaded. There is no X or Linux desktop involved here. Instead of a desktop we use Chromium Embedded which takes care of rendering the desktop in full screen (kiosk mode). The result is a desktop system that is 100% portable, that will run on any hardware capable of modern web technology, and it behaves and provides the same level of features as it's native counterparts.

If you are thinking about this as "a bunch of fake HTML", you are thinking wrong. Amibian.js creates everything by code, and it approaches the DOM the exact same way as a developer does WinAPI or GTK. Everything from filesystem, path structure, directory services, file-io etc. is implemented from scratch. The desktop exposes libraries and API functions that hosted applications can call, just like a native application calls Kernel functions and library functions. So this is not a mock desktop, but a fully OOP based ecosystem consisting of thousands of classes.

Programming language

Writing something like this in raw JavaScript would take forever. Therefore we used a object pascal compiler (same language as Delphi and Freepascal) that targets JavaScript. But we soon hit a wall since the scope of this project utterly exhausted what the compiler and RTL could deliver. I had to decide if we should quit the project, or create a new compiler and RTL capable of handling a project of this scope.

After a vote we decided on the second option, and this is where Quartex Pascal comes into the picture. This is a complete, professional development system, covering IDE, compiler, RTL, package support and much, much more. The entire purpose of "QTX" is to have a language and infrastructure capable of implementing the Amibian.js infrastructure. Quite simply because nothing like this exists out there (the closest match would be C/C++ to WASM, but the technology and libraries available are still a bit esoteric and buggy).

To fully get the scope of this, consider the following: The browser has no concept of a filesystem, nor does it have any concept of application containers, security contexts, menu system, icon services and cross container calls. Even simple things like filesystem dialogs (open file requester for example) is simply not there. All of this is implemented from scratch as pascal classes.

An application runs inside it's own window, which has a frame context. This context is provided with a message channel, and communication between the application and the desktop happens purely via message dispatching. The desktop exposes a rich set of API functions applications can call. Registering menu items unique for the application, accessing the filesystem etc. - it all happens via API calls.

Amibian.js supercomputing

When it comes to the filesystem, this is implemented over WebSocket. So the desktop communicates with the background services through a low-latency websocket connection. This opens up for some interesting use-cases, such as cluster computing, where each of the 5 services are placed on separate computers or SBC's for high-performance on cheap hardware (for example, daisy-chaining 5 Raspberry PI SBCs, or ODroid XU4s, into a mini super computer).

Since all communication happens either via message channels or websocket connections, a machine becomes both a server and a workstation. There is no difference between physically working directly on the machine, or connecting to it remotely. The experience is the same, this is why WebAssembly / JavaScript and HTML5 was chosen over a native C/C++ project.

68k support and re-implementation of popular languages

You are probably wondering, how exactly will this be Amiga without 68k support? Amibian.js operates with a re-implementation of UAE (based on the popular SAE project), which makes it possible to run Amiga software directly on the desktop. I have also added a DOSBOX application model, which makes it possible to run the thousands of DOS games and programs side-by-side with modern WASM/JS apps and 68k applications.

What is important here is, to have a future proof ecosystem that works like the original Amiga OS, yet is utterly hardware agnostic. To put it differently: Amibian.js is an operating system for the cloud and beyond. The difference is that you have full access to the code. It's not like Google cloud or Microsoft Azure, where the system itself is kept secret - and you can only rent the use of the infrastructure. Amibian.js can be used free of charge and you can install it anywhere. Access to the source-code however, requires a $300 developer license. This is to ensure continuous development so the system can survive into the future without copyright, stocks and board members (which tend to ruin everything for everybody).

Once the desktop is complete, I immediately start on the second phase, which is to implement popular programming languages to run on the desktop. C/C++ and Freepascal already exists for JS/WASM so those are already there (they need a good IDE, which will be my focus), and then you have Amiga languages like BlitzBasic, Amos Basic and E which will be fun to make. Amos has already been remade for HTML5 so it can probably be used "as is". I will have to talk with Francois Lionet about making an application container for Amibian.js. I'm pretty sure he will love the system once he sees the code.

Amibian.js end-game

The final frosting is to re-implement Quartex Pascal itself for the desktop. This means that the compiler will compile itself, and the entire ecosystem becomes 100% platform agnostic and utterly independent on Windows, Linux or Mac OS. Yet it will be able to target all of these.

The LDEF bytecode system is architected in such a way, that it can be easily converted to machine-code. So in effect, you will be able to write your next native Android or iOS app in BlitzBasic. Or just use Cordova to turn your Amos Basic application into a native app ready for the AppStore. And it can all be done from Amibian.js.

Oh, and gaming on Amibian.js is pretty cool! We can even turn old 2 player games into network games by kidnapping joystick, keyboard and mouse signals and routing them. So if 2 users are connected to the same machine (server), they can enjoy 2 player Amiga games or DOS games. Console games will also be possible via mame-wasm. So yeah, its pretty cool stuff.


r/AmigaDisrupt • • Dec 17 '20

Why is AD suddenly on Reddit?

13 Upvotes

Reddit is something that has kinda flown under my radar. I have known about it for a long time, and used it when looking for help on IoT or Linux projects, but it actually didn't occur to me that Reddit would be perfect for our community until now.

Facebook has an age limit of 12 years

First of all, Reddit has 18+ groups. Now before you jump to any conclusions, keep in mind that Facebook operates with an age group of 12 years old. So all that censoring of jokes and comments which makes Facebook so annoying, is because you are supposed to use language suitable for children. Obviously such a forum can be very restrictive for a community consisting of men in their 40s and 50s. Amiga Disrupt has been hammered by the Facebook A.I because we have a social component; we talk, laugh, share jokes and even hold on to principles that might not be popular to the vast majority (in terms of computers, what is best ect. Nothing more sinister than that). But the moment you have swear words involved, even casual ones, the age limit goes up.

Facebook does not use an A.I, but a word filter

In my case, someone posted a GIF of Cathrina Applegate's fictional character (the Al Bundy show "Married with kids"), and I replied "She was the best slut to ever grace TV". Which is a factual comment about a fictional character (she even calls herself that on the show multiple times). For this silly joke I was slapped with 3 days in FB jail for "Bullying and Harassment". Please do enlighten me on how you can bully a GIF of a fictional character.

But there is an aspect to that statement that went completely above the FB radar. You see, the word "slut" is a scandinavian word, meaning "to end" or "ending". So the double entendre in that comment was simply, it was the best ending of a show ever (meaning the show was getting boring after 900.000 episodes).

Besides, when was slut a bad thing? All things must slut .. (end. Sigh).

Reddit however, seems more aware of human nature, and offer 18+ groups for content that could be unsuitable for minors (for a variety of reasons). So 18+ does not exclusively mean porn or anything of the sorts - it simply means that a group is best suited for adults. Which is what the AD group consists of anyways, so no loss there.

Why not sell out and conform?

If Amiga Disrupt had been more like the other groups, with less socializing between its members, purely on-topic posts etc. then I suppose Facebook could have sufficed. But it would also be just another community clone. What makes AD so vibrant and fun compared to the other communities, is that we talk like old friends who meet regularly at the local pub, enjoy a pint of beer and each others company, share jokes, go off topic, and even wonder at the marvel that is woman. We have become friends after all this time. In some cases I talk more with members of AD in a week than I do with family members or co-workers (!). So naturally, humor sits easy.

So for better or for worse, let's give Reddit a try!


r/AmigaDisrupt • • Dec 16 '21

Truth

Post image
12 Upvotes

r/AmigaDisrupt • • Mar 30 '21

As a Norwegian, I concur

Post image
11 Upvotes

r/AmigaDisrupt • • Dec 26 '21

4 years of Amiga Disrupt. Here's to the Amiga! The computer that refuse to die ♥️ Cheers!

Post image
10 Upvotes

r/AmigaDisrupt • • Jan 09 '21

Pi-Storm, using a Raspberry PI as an Amiga graphics card (by Claude Schwarz). This looks awesome!

10 Upvotes

r/AmigaDisrupt • • Dec 28 '21

Amiga OS 3.2

Thumbnail
gallery
9 Upvotes

r/AmigaDisrupt • • Aug 29 '21

Happy 60th birthday Dave Haynie 🎉

Post image
9 Upvotes

r/AmigaDisrupt • • Aug 12 '21

Looks like a second article on QTX will be published. This is the front page of the first a couple of years back. Nice to see that people notice us ;)

Post image
9 Upvotes

r/AmigaDisrupt • • Jul 01 '21

CoffinOS

9 Upvotes

I really have to take my hat off to this one. I was a fan of AIAB years ago (and still am) as an out of the box setup but after playing with this for a bit I have to say “dang, dat some pretty polished shit right der!”

I don’t have a vampire (yet) but even running in UAE this is quite the impressive little image : ).

I like Apollo OS as well but have to say that this one tickles me a bit more. I am still poking at it but so far I have found very few things that did not work. And considering this is optimized for hardware I don’t have I am pretty happy.


r/AmigaDisrupt • • Mar 25 '21

Build your own A4000

Thumbnail
m.youtube.com
9 Upvotes

r/AmigaDisrupt • • Mar 12 '21

Omg i have that exact controller!

Post image
9 Upvotes

r/AmigaDisrupt • • Dec 21 '20

What is Amiga Disrupt? Spoiler

Thumbnail
retromodsblog.wordpress.com
9 Upvotes

r/AmigaDisrupt • • Jul 20 '22

Good haul !! 1200, 500 AND extra goodies.

Thumbnail
gallery
8 Upvotes

r/AmigaDisrupt • • Dec 29 '21

Lol the stories i could tell 😂

Post image
8 Upvotes

r/AmigaDisrupt • • Mar 31 '21

Ha ha!

Post image
8 Upvotes

r/AmigaDisrupt • • Mar 27 '21

My last bit of Amiga titles ♥️

Post image
8 Upvotes

r/AmigaDisrupt • • Mar 22 '21

Now THAT is retro ♥️

Post image
8 Upvotes

r/AmigaDisrupt • • Jan 29 '21

Never forget

Post image
8 Upvotes

r/AmigaDisrupt • • Dec 22 '20

Finally working properly ♥️

Thumbnail
gallery
8 Upvotes

r/AmigaDisrupt • • Feb 01 '23

Video Toaster video! With Wil Wheaton, Tony Hawk and moe

Thumbnail
youtube.com
7 Upvotes

r/AmigaDisrupt • • Dec 30 '21

All things evil, it just had to be Atari 😂

Post image
7 Upvotes

r/AmigaDisrupt • • Sep 09 '21

Understanding how the Amiga works

Thumbnail
youtu.be
7 Upvotes

r/AmigaDisrupt • • Aug 17 '21

Boing balls come in all shapes and sizes :D

Post image
7 Upvotes

r/AmigaDisrupt • • Jun 29 '21

MorphOs

7 Upvotes

Looking for opinions on MorphOs. I am looking to get a cube to run this and possibly get a license but wanted to get some feedback from others. If anyone is using it currently and wants to give some advice it us appreciated.