Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Figure a way to define a program #2

Open
dd86k opened this issue Nov 20, 2016 · 2 comments
Open

Figure a way to define a program #2

dd86k opened this issue Nov 20, 2016 · 2 comments

Comments

@dd86k
Copy link
Owner

dd86k commented Nov 20, 2016

At some point, whenever there will be a virtual filesystem, a program would be defined as an object with prototyping.

@dd86k
Copy link
Owner Author

dd86k commented Dec 16, 2016

Idea :

  1. AJAX call load e.g. notepad.js
  2. start("notepad.js")
  3. start function of those js files will contain the loading point for programs
    3a. From there people could either call a Form (with Form.*.show()) or Conhost (or multiple)

Will require a lot of research.

@dd86k dd86k added the API label Dec 16, 2016
@dd86k
Copy link
Owner Author

dd86k commented Jan 17, 2017

New idea (from my pal Kenan)

Example

load mspaint.js

  1. AJAX load "mspaint.js" into str
  2. var o = eval(str);
  3. o.pid = PID // Generate pid and assign
  4. Programs.add(o);
  5. Programs[PID].init( argc, argv );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant