Now i had the basic exec developed in Javascript (Tasks and message ports), other things like memory management are not necessary since JS and the browser do it, now i am studying how implement the task scheduler in JS, it's a difficult point because JS isn't multithreading, it work basically with events (onmouseover, onmouseclick, ...), and you can't pause the execution of a function, but i think i found way to manage the frequency for each task function, and have something similar to multitasking, you can have something similar with setinterval in javascript, but with a kernel controlling the execution, it will be more efficient. The events of javascript, will be something similar to a interrupt, and 4 special functions:
open() - Initialise the application.
step() - All operations for the app, is similar to enterFrame event of ActionScript.
draw() - All drawing operations.
close() - Close the application.
I decided to make two functions (step and draw) instead one (eg. run) because then task scheduler can have more possibilities to merge the execution of tasks, remember that JS can't pause a function.
Another thing to be developed are devices, i don't know if it could be usefull on a web based desktop, but it can be an interface for every device, keyboard, sound, ...
What do you think about this crazy project? :crazy: