Creating an Operating System With 5 Lines of Code

A modularized operating system has a single job: dynamically load up and initialize its installed modules, period! Everything else your operating system does, beyond this simple function, makes it “bloatware" and monolithic in its design. Below are 5 lines of code. This is the smallest possible amount of Hyperlambda that allows you to do just that.
list-folders:/modules/
list-files:x:/@list-folders/*?name
filter:startup.hl
load-file:x:/-/*?name
eval:x:/-/*
The above code, first of all, lists all folders inside of your "/modules/" directory. Then it lists each file inside of those folders with the name "startup.hl," implying an initialization file. Then it loads these files, and evaluates them or "executes" these files.

Link: https://dzone.com/articles/creating-an-operating-system-with-5-lines-of-code?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev