These are chat archives for Software-js/WS.js

31st
Jul 2016
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:31
@DaniellMesquito I'm here
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:32
Since now or a old member?
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:32
I just entered.
What is the current state of WS.js? Do you have a demo running anywhere?
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:34
Wow no offense, but that is completely unusable
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:35
Click on the lockscreen.
Try removing the clock via F12.
The appending words is an bug in clock since the start of year.
And I don't know how fix.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:36
Check out my desktop. I just made you a login. Your username is Daniell, and your password is password
It doesn't have much. You can Ctrl+space and bring up a quick launch but none of the programs are actually there
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:38
This will support shortcut for Linux's native apps?
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:38
That is the plan.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:38
res.LoggedIn === false
Why?
My attempt to login have failed.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:39
Wait one. Let me check the password. I might have typed it wrong
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:39
Have you entered WS.js? Just click the lockscreen and remove the clock element.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:39
i just logged in as you. try username daniell
and no I can't figure out what the lock screen is on WS.js
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:40
Please send a print
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:40
blob
blob
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:41
This is the WS.js desktop.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:41
Oops
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:41
As I advice, user can't open apps yet.
And I've not yet implemented a windowing system.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:41
I saw that.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:41
Nice your environment, good idea to wrapp windows for a topbar.
Wow no offense, but that is completely unusable
Not completly, user can browse menu and tab menus for yet.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:42
True
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:43
And can toggle fullscreen mode
Did you see?
Click on the Control Center button.
blob
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:45
The clock you should put in a span. For example from my code:
window.Desktop.ClockWidget = function(panelElm)
{
    this.panelElm = panelElm;
    this.elm = document.createElement('div');
    this.elm.className = 'vertical-center panel-clock';
    this.elm.style['color'] = 'white';
    this.elm.style['font-size'] = '16px';
    panelElm.appendChild(this.elm);
    this.time = new Date();

    var self = this;
    var setTime = function() {
        self.time = new Date();
        self.elm.innerHTML = self.time.getHours() + ':' + self.time.getMinutes();
    };
    setInterval(setTime, 1000);
    setTime();
};
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:45
This have 2 main bugs: appending/unworking clock and background disappear when fullscreen.
Oh, thanks
I'll see it
I'm without my desktop Github, I'll try it in web.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:46
I use c9.io to work on code away from home
So does your OS plan on using native applications or do you plan on using only HTML apps
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:47
Only HTML5 apps.
But I plan a launcher for Windows to support modern apps and a Gadget Sidebar.
Ryan Riffle
@RyanRiffle
Jul 31 2016 04:56
I'm not trying to throw myself out there, but if you need a word processor my Poe might be something to help move your apps along.
blob
blob
Untitled.png
There it is :D
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 04:58
Word processor? Very beautifull :3
I can fork and implement support to my APIs/manifest.
But I advice: Microsoft don't like ribbon interface being used in apps like presentations/wordprocessors/cell editors.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:00
Yea. The only thing that will hold you back is the dependencies on Github's electron. You will have to remove the 'require()' in the code for it to run without electron. And personally Microsoft can get over it. KingSoft Word uses the ribbon, and they are doing a lot better than me IMO.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:01
I use NW.js for build desktop apps.
Which is the better, Electron or NW.js?
I'll support NW.js' APIs in WS.js
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:02
Me personally I prefer Electron. I have used both and for my tastes Electron won.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:02
Can U help me fix the clock bug?
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:02
Yea, give me a second to check out the source code, or tell me where the clock is in the source code
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:03
I'm mading Store.js for WS.js apps. Store.js will download/update apps directly from GIT repos.
Clock is here:
In this year I've created a module system for WS load all separately.
My plans for WS.js is turn its core into pure text and turn the interface into a mere addon.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:15
Oh, thank you very much.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:16
If i would suggest, I didn't fix it however that the clock should be running every 1000 ms on the setInterval. It is running twice a second right now which is a little overkill.
Also as a side note have you ever looked at OS.js?
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:17
Yes.
The two projects are very different.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:18
I was somewhat active in that project. I help rewrite the way settings are managed throughout the system.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:21
Wow, congratz. My JS knowledges aren't so much good.
I'm autodidate in JS.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:22
autodidate?
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:22
Yes.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:22
I don't understand
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:22
I'm brazillian, sorry for the bad english
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:22
Haha.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:22
Autodidata in brazil are people that learn the things without courses.
I learn in practice.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:23
That is what I am then. I have been coding for about 11 years though
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:23
My plans for WS.js is an new info platform/infra.
I'm sad of BIOS/OS/Boot managers.
This is what will power WS.js: https://github.com/Software-js/DCRS
DCRS can work as a firmware to search HTML5 systems in disks, or as a Linux Kiosk OS for run working systems.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:25
Is it still a work in progress? All i see in the repo is HTML files which are not capable of being an actual bios for a physical piece of hardware.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:25
Yes, only static HTML files yet.
I plan finish DCRS before WS.js.
Working systems will be part of the Store.js.
In DCRS users will can use Store.js to download any working system that want.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:26
Alright so when it comes to using javascript in that sort of environment: The actual core will have to be C or C++, but even C++ at that point is pushing it. I have written a kernel once in C and it was one of the most challenging things I have done.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:27
This is like "have a IBM Bios and go to Bios store and download Windows 10, then download Windows 7, and go to Win 7, hibern and can go to Win 10, with the two OS working at same time"
This is a illustrative example of how DCRS works.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:28
So it is a Virtual Machine manager?
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:28
WS.js is nothing than a mere template for who want create her own WS.
I think WS.js can be the new Linux.
DCRS is like a virtual machine manager/boot manager.
DCRS will be an OS/BIOS for run Working Systems (the new OS concept).
is very hard explain about DCRS, is confusing.
But what we today call OS, in DCRS system technically is a WS.
DCRS is the OS or can be the BIOS.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:29
That is going to take low level programming language. Do you know c? Do you plan on interfacing with kvm or qemu?
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:30
I don't want learn C because I have more important objectives, I only know HTML, CSS and very basic JS.
BIOS will be a hard work and I will need help, but DCRS as an OS won't be very hard.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:31
You are absolutely not going to be able to accomplish DCRS without knowing a lower level language. Virtualization is a very detailed task.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:31
I'll build DCRS in NodeWebkit and put in a Linux Suse Studio's build in Kiosk Mode.
But port a BIOS to use NodeWebkit will be hard for me
its not technically a virtualization
The custom BIOS will load NodeWebkit build from disk.
Then the NodeWebkit build will load DCRS, and DCRS will search all drives that contains HTML5 systems, and then list in a boot manager.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:33
Do you plan on NodeWebkit running on linux? In which linux is loaded from the disk then it loads NW.js?
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:34
I have one plan: DCRS in NW.js. And two plans for it: one for a custom BIOS, other for a Linux distro for run in top of it.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:35
I'm sure you know the process of how a computer boots but let me throw out what I am thinking. It goes from
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:35
Yes.
But DCRS as a BIOS is not a priority.
But as OS and "boot" manager, yes.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:37
BIOS -> BootLoader -> Kernel -> (memory is setup, hardware is scanned, interfaces with IRQ's) -> Then maybe then can it run a userland program like NW.js
NW.js relies on all of the things that an operating system provides and cannot be run without an OS or extreme reworking to the point that it is no longer NW.js
a linux distro will not be able to run inside of NW.js
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:38
My plans is run NW.js inside the Linux distro (this is the OS version of DCRS).
But for the BIOS version, load NW.js from disk (a custom build specially for EFI).
In the BIOS version, NW.js will never run any linux distro, but the work systems.
My plan is create a new way of work in PC, and WS.js a alternative to Linux.
Linux will only be used to make a DCRS OS simulating a BIOS/BootLoader.
Ryan Riffle
@RyanRiffle
Jul 31 2016 05:41
Roger. When you accomplish this with just JavaScript let me know, and then claim your Nobel Peace Prize.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:45
I'm pretty sure I'm clear in my explanation. Just JavaScript can't do nothing hardware-related, but with Node.js/NW.js+Linux, can do.

I never proposed do it with pure JavaScript, I don't know why:

Roger. When you accomplish this with just JavaScript let me know, and then claim your Nobel Peace Prize.

Ryan Riffle
@RyanRiffle
Jul 31 2016 05:47
I don't want learn C because I have more important objectives, I only know HTML, CSS and very basic JS.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 05:48

This is a quote war? Ok!

BIOS will be a hard work and I will need help, but DCRS as an OS won't be very hard.
But DCRS as a BIOS is not a priority.

haha
I'll build DCRS in NodeWebkit and put in a Linux Suse Studio's build in Kiosk Mode.
Please not waste my time confusing me.
I was very clear and explained all your high questions about.
Need learn C for build a NW.js executable? Need learn C for build a SUSE Studio's Linux distro? Need learn C for put my NW.js build into it?
If you think it, then who need claim a Nobel Peace Prize is you.
Daniell Mesquita
@DaniellMesquita
Jul 31 2016 06:01
@RyanRiffle