<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="95948" data-post-id="95948">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="emacstheviking" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/emacstheviking/120/9462_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  emacstheviking
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s more than entertaining, it’s enticing!<br>
Having written OS-s for standalone embedded systems many years ago I think “BEAMOS” sounds awesome. My initial thoughts would be things like writing an ETS term-store to manage EEPROM for example . The BIOS events could post to system processes that manage a piece of hardware; keyboard!{} sort of thing. Where would be draw the line between Elixir and underlying driver code that would just have to be written in C/Assembly as well??</p>
<p>Given the nature of supervision trees and OTP this could be a very very resilient OS indeed!</p>
<p><img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji only-emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="95948" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-95948" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="95948"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="95956" data-post-id="95956">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="leifericf" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/leifericf/120/39367_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  leifericf
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Cool! Yeah, I also imagine it could be a great OS for IoT devices and heterogeneous nodes in the context of edge computing. I don’t have sufficient skills to make it a reality, though (yet).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="95956" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-95956" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="95956"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="95970" data-post-id="95970">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="emacstheviking" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/emacstheviking/120/9462_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  emacstheviking
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Well…there’s enough of us out there…I guess the first thing would be to create a bootable image, I’ve seen a few articles on how to do this but they all ended with “Don’t!” as it’s utterly pointless! LOL</p>
<p>But… I was a big fan fan of Squeak Smalltalk many years ago and they had SqueakOS, a similar idea.</p>
<p>I mean, taking it one step at a time, what would we need? A position independent build of elixir and libraries bundled into a bootable disk image…just enough to boot to the iex console ??</p>
<p>Stop there I think…I can feel an oppressive amount of thought queuing up…</p>
<p>It would be fun though…</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="95970" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-95970" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="95970"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="95972" data-post-id="95972">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="leifericf" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/leifericf/120/39367_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  leifericf
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="emacstheviking" data-post="14" data-topic="16345">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/emacstheviking/48/9462_2.png" class="avatar"> emacstheviking:</div>
<blockquote>
<p>[…] they all ended with “Don’t!” as it’s utterly pointless!</p>
</blockquote>
</aside>
<p>Sounds like a challenge to me! <img src="https://forum.elixirforum.com/images/emoji/apple/laughing.png?v=15" title=":laughing:" class="emoji" alt=":laughing:" loading="lazy" width="20" height="20"></p>
<blockquote>
<p>[…] taking it one step at a time, what would we need?</p>
</blockquote>
<p>I would’t even know where to begin.</p>
<p>I guess I’d have to read a book on operating system design first.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="95972" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-95972" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="95972"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="96045" data-post-id="96045">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="emacstheviking" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/emacstheviking/120/9462_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  emacstheviking
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s all about onions. That and mapping what you want onto what you have. Thinking back to my 8085 project (yes, that long ago) we designed “the ideal machine” for what we wanted to do (real time telemetry gathering, mass reading of digital I/O, analog cards etc) and then we looked at what the 8085 could do along with the supporting stuff 8255-s. 8259, etc (programmable I/O and interrupt controller respectively) and gradually wrote software that supported co-operative multitasking, provided an “API” for all bespoke software to use etc etc it was dead interesting as it was my first real job and I still remember like it was yesterday!</p>
<p>So, I guess we’d first have to figure out an initial set of goals; maybe keyboard I/O and basic tty style I/O and go for it. There’d have to be a “BIOS Layer” where Elixir code (via NIF code) can make calls to the BIOS and then process the return data to do something.</p>
<p>I’d start some processes in memory and then have an ISR (interrupt service routine) post the raw keyboard event to an Elixir process and what happens from there is anybodies guess! Likewise for terminal I/O, a buffer can be populated with outbound data (like an asynchronous UART queue or something) and an Elixir process can “receive” character data and then make the relevant BIOS call to output some text.</p>
<p>I still think the Squeak Smalltalk is a good one; that runs on more platforms than the JVM and that is still the case last time I looked.</p>
<p>It would come down to isolating those places where I/O is required and start simple. Once you could do basic keyboard and screen work then you could turn your attentions to the persistent storage model..hell I’d be so bold as to map DEFSTRUCT-s onto physical disk structures and leave it at that. Imagine treating the hard drive as a relational database and that’s all you needed to know…I mean it works like that anyway but it goes via a backend database driver…so all you’d need is a “raw disk” abstraction layer instead and that should be enough.</p>
<p>I am sure I could spend a lot of time thinking about this but…</p>
<pre><code>- is it worth it other than for pedagogical reasons?
- who would use it?
- how would you maintain it?
- is it worth it? and
- is it worth it ??
</code></pre>
<p>Moving on…for now <img src="https://forum.elixirforum.com/images/emoji/apple/wink.png?v=15" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96045" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-96045" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96045"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="96225" data-post-id="96225">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="vasspilka" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/vasspilka/120/2026_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  vasspilka
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I just came here to say it can’t be done!!</p>
<p>(hopefully now someone will make it)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96225" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-96225" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96225"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="96226" data-post-id="96226">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="leifericf" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/leifericf/120/39367_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  leifericf
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="vasspilka" data-post="17" data-topic="16345" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/vasspilka/48/2026_2.png" class="avatar"> vasspilka:</div>
<blockquote>
<p>I just came here to say it can’t be done!!</p>
<p>(hopefully now someone will make it)</p>
</blockquote>
</aside>
<p>LOL! Yeah, that’s how the story goes. It’s like how the police officer in an action movie cannot solve the case until after he or she gets taken off the case and/or gets fired.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96226" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-96226" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96226"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="96228" data-post-id="96228">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="erikp33" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/erikp33/120/4587_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  erikp33
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>That’s what the Nerves project does more or less.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96228" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-96228" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96228"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="96229" data-post-id="96229">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="leifericf" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/leifericf/120/39367_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  leifericf
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/emacstheviking" rel="nofollow">@emacstheviking</a> - It definitely seems like you’ve got way more hard-core/low-level programming experience under your belt than I have, based on that story. It sounds… deliciously complicated.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96229" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-96229" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96229"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="96230" data-post-id="96230">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="leifericf" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/leifericf/120/39367_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  leifericf
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="erikp33" data-post="19" data-topic="16345" data-full="true">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/erikp33/48/4587_2.png" class="avatar"> erikp33:</div>
<blockquote>
<p>That’s what the Nerves project does more or less.</p>
</blockquote>
</aside>
<p>Yeah, I’ve been thinking about that recently! I haven’t really checked at Nerves yet (still learning the basics of Elixir and Phoenix right now), but this has made me want to check it out even more. I enjoy tinkering with hardware as well (although I’m not particularly good at it).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="96230" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/beamos-lets-imagine-an-operating-system-written-in-elixir/16345/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-96230" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="96230"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/16345/load_more?page=3">Load more posts (4 remaining)</a>
</div></template></turbo-stream>