leifericf

leifericf

Warning: Half-baked shower-thought follows. High probability of ridiculousness.

Suppose you wanted to write an operating system on top of the BEAM in Elixir. How would you design it and what do you think would be the biggest challenges?

What kind of unique features could it enable?

Let’s call it BeamOS.

I imagine each application within the operating system running as supervised processes, with some unique possibilities of running across several machines in a cluster. Perhaps even some kind of peer-to-peer-ish networking features, where one could share one’s hardware with friends and family.

Maybe I could run my word processor on your hardware.

I also imagine the possibilities for distributing applications through some kind of built-in app store/package manager thingy. Sort of like APT or Homebrew, but OS-native.

I suppose one of the biggest challenges of implementing an operating system in a language with immutable data would be running out of memory due to copying of data. Drivers, compute-heavy operations and GUI code would also need to be implemented as NIFs in C, I guess.

This is probably a silly idea, but I think it’s fun to think about.

Feel free to contribute to my fantasy, if you find it entertaining :slight_smile:

Showing Posts 1 to 10

sneako

sneako

Definitely a fun idea and you aren’t the first to think of it. Check out these slides on the HydrOS project: http://www.erlang-factory.com/static/upload/media/1498583896660864samwilliamshowtobuildanoswitherlang_awhistlestoptourofhydros.pdf

Here is their official site, that i’ve visited before, but appears to be down right now :confused: http://hydros-project.org/

leifericf

leifericf OP

That’s really cool, @sneako —Thanks for sharing those links!

rvirding

rvirding

Creator of Erlang

One limitation is that in an Erlang/Elixir node you can only have one version of module. This makes it difficult to run multiple applications if they happen to both use the same name for different modules. The confusion would be truly wonderful. :wink:

When we were designing Erlang and the basic ideas of how to use the language features we were thinking more along the lines of operating systems rather than of applications. I tend to think of it not so much as a language with concurrency but more of an operating system with a languages.

Have a peak at the GRiSP.

14
Post #3
leifericf

leifericf OP

Thank you for your input, @rvirding! It’s very interesting to hear some thoughts and point of view about this topic from one of the originators and designers of Erlang.

That looks interesting!

I think it makes sense to use Erlang and the BEAM for embedded, where you’d want to distribute new versions of your code to a large number of devices without inconvenient downtime. Devices could get notified of new software versions and pull updates at convenient times, etc.

It’s one of the areas where hot code swapping might be a good solution.

I haven’t done any embedded programming yet and I’m looking forward to checking out Nerves at some point. Now that I know about GRiSP, I’ll check that out as well.

jasonmjohnson

jasonmjohnson

I really wish there was a BeEmacs.

leifericf

leifericf OP

It’s worth creating if only for that awesome name :smile:

leifericf

leifericf OP

@rvirding - Is it OK with you if I snag that as a quite for a presentation I’m putting together? :slight_smile:

bottlenecked

bottlenecked

Not quite the same but it made me remember the Midori, Microsoft’s take on how a message passing OS could look like

rvirding

rvirding

Creator of Erlang

No worries, go ahead. :smile:

leifericf

leifericf OP

Awesome, thanks!

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
maennchen
:warning: Security advisory: Decimal DoS vulnerability A vulnerability has been published for decimal where very large exponents can cau...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews