Home | Reviews | GUIpedia | Forum | Fun500
Brandon | GUI Dev PlanI feel that anymore I post more dev plans than actual results. This is my latest idea: Use FreeBASIC to make a scripter. It would look like MacOS pre7, but wouldn't necessarily work like it in all ways. The scripter would new, I suppose to save time parts of 4 could be used, and support arrays and other functions that a GUI needs. In 2-4, the kernel was a scripter, window manager, and object handler, where as in this idea the kernel would just be a scripter and window manager, scripts would have all the objects.
What do you think? | 2009-08-16 | 3:19 PM |
Todd | Re:GUI Dev PlanWhy use a scripter when you could write your own EXE format? Take a look at MGUI-OS 2001. It uses a BASIC-like language for making programs which all multitask but are compiled into a PE EXE format. If you try running one in Windows or DOS, it will tell you that it must be run in MGUI-OS. When run in MGUI-OS, the executables all work and can multitask as well. It's just a suggestion instead of making just scripts. | 2009-08-16 | 3:24 PM |
Brandon | Re:GUI Dev PlanI don't know how, could you make a demo? | 2009-08-16 | 3:48 PM |
Todd | Re:GUI Dev PlanI'll try. I'd have to study the code though. The author uses Assembler for the compiler and EXE headers. :P But a simpler way to do it is if you do what Java does - compile it into byte-code and interpret it in that format. Because if your script is 2 KB, you can turn the keywords into characters and interpret it from there. | 2009-08-16 | 4:38 PM |
| Re:GUI Dev PlanWhat do you mean by your own EXE format? EXE files contain machine code to be executed by the processor. Java byte-code cannot be executed by the processor. Was the MOS multitasking actual machine code, or just the java-like byte code. | 2009-08-17 | 12:10 AM |
Todd | Re:GUI Dev PlanEXEs do contain that information but also contain information to be executed by the kernel (which MGUI-OS 2002 was running). It's like when you run a Windows program in DOS mode, it will tell you "This program cannot be run in DOS mode." but running it in Windows actually does something - same concept. I believe it interpreted the byte-code EXE format but I can't be sure. You can study the code here: [url]http://qbasicgui.datacomponents.net/MGUI-OS 2002.html[/url] | 2009-08-17 | 1:10 AM |
SonicBrit | Re:GUI Dev Planso basically its a stub program, which if run from dos will display the message, but the stub is ignored by the app and the byte code is read. You could easly replicate this by creating a stub app the displays a message and exits, and your own app just skips the stub.
One extra step is to have the stub exe launch your gui with the program as the startup. | 2009-08-17 | 4:04 PM |
GUIs
2021 Brandon Cornell