So a few things that have changed since the last time I posted about jsos, https://js.lifelist.pw
- Chat is improved
- New users are automatically configured to use chat as their build
- The chat server runs all the time via a puppeteer script, though it is coded for front end
- #import pulls in other 'global' scripts
What is needed.
- People need to be able to browse other people's code.
- The editor needs to link to the overview of a user when an #import is used
- People need to see which imports are popular and which builds are popular as direct includes, as well as which imports are most foundational.
- A tutorial would be nice.
For anyone not familiar with my jsos platform, everything you see was developed in a browser as an unprivileged user. So that chat app can run on the platform, and so can anything else you write into it.
It lets you import other users' code into yours and lets you overload any function with just a single function declaration. It is meant to be an analogy for an OS. You have your globals
which are named function declarations that anyone can import. You have your build
which is a list of which globals you want to clobber together, and it has a smart system for doing that. And you have an init
for calling the functions declared in the globals.
globals
are like a lot of people writing code for an OS into a binary that can be run. build
is like configuring the source code. init
is like a bootloader that selects the entry point.
But anyways the chat is now better. It will get a lot more interesting when you can discover other users' code and read it.
Also something that is interesting to play with is the notebook user.
You can just add notebook to your build and put startNotebook() in your init. It shows use of the monaco user that provides an editor. It also illustrates the persistence system.
When you #import monaco
you can then
getmonaco(()=>{
var editor = monaco.editor.create(editordiv,{
value:data,
language:'javascript', // or 'java' or 'plain' or 'c#'
theme:'vs-light'
});
});
[–]x0x7+1 -0 points
[–]go1dfish+1 -0 points
[–]x0x7+1 -0 points
[–]go1dfish+1 -0 points
[–]x0x7+0 -0 points
[–]x0x7+0 -0 points
[–]Chungus+0 -0 points