Message from JavaScript discussions

September 2017

— I shared it with him in the other group 👍

— 

Phew, this is really hard. Taking baby steps, divide & conquer problem solving... splitting the large problems like process time analysis, added to scheduling and time slicing, into smaller subproblems. One big thing I came up with to make it easier is a process API. So far it's not very complicated, but I decided to make it encapsulate the whole event and signal system, as well as the IPC system

— Oh damn

— Keep going

— I'm rooting

— 

const Application = new Process(function* () {

while (true) {

  console.log(args[0]);

  args[0]++;

  yield;

}, 0);

Application.exec(); // Something like:

Scheduler.start();

Scheduler.exec(Application);

Message permanent page

— Application.kill();

— 

Application.eventWait(pid);

— I decided to run the entire system in two processes too, Supervisor and User

— All user processes will be spawned as children to User, and all system processes under Supervisor.

— Something like PID 0 and PID 1

— New Process(generator, pid) ?