Home | Reviews | GUIpedia | Forum | Fun500


JasonGUI Progress
Hallo, I'll show an example of my ... language for ... my GUI.  Is it still a scripting language if it has to be compiled?  And I'm still working on a name, I'm up to programming the kernel.  My expectations for myself are high, like usual, but it has been a long time since a GUI of mine: 2008 Cobra 2K-9 Beta 1.  In 2.5 years time i have learnt a shit load of stuff, be prepared Brandon, for ... my GUI.   init(
$true = -1;
$false = not $true;
$_windowx = 0;
$_windowy = 0;
$_windoww = 400;
$_windowh = 300;
$_windowtitle = "Hello World!";
$_windowresize = $false;
include $_initwindow;
imagestore $_windowx, $_windowy, $_windowx + $windoww, $_windowy + $_windowh;
fontfamily "Arial", "15";
); :this closes init:
imagerestore $_windowx, $_windowy, $_windowx + $windoww, $_windowy + $_windowh;
$red = $rnd * 255; :these 3 lines:
$green = $rnd * 255; :generate a:
$blue = $rnd * 255; :random color:
print $rnd * 400, $rnd * 300, "Hello World", @rgb[$red, $green, $blue], @rgb[255 - $red, 255 - $green, 255 - $blue];
include $_updatewindow;   And the compiled version: INIT
(
$
TRUE
=
-1
;
$
FALSE
=
NOT
$
TRUE
;
$
_WINDOWX
=
0
; Etc.......... Tell me your thoughts! dank!
2010-05-099:29 AM

ksrRe:GUI Progress
Looks interesting. Just one question: from what I can see, $rnd and @rgb are both functions, so why the different notation? Also, technically you aren't compiling, you are tokenising, which is a step before actually compiling or translating.
2010-05-092:42 PM

HorvatMRe:GUI Progress
Maybe $rnd is a special variable. Oh, and from what I know, he isn't going to translate it any further - no bytecode or anything.
2010-05-093:08 PM

JasonRe:GUI Progress
I was just thinking that rnd doesnt need any variable. atleast it will be easier to develop for, unlike something like gimi
2010-05-096:31 PM

trollyRe:GUI Progress
why not make a opcode parser and write your app in ASM and compile it to a flat binary file? the parser would only have little things to store (the register) when the op code parser detect an int instruction, it mean that the app call a kernel function variables could easy be stored in the binary file, and readed with a simple seek and get call
2010-05-096:49 PM

JasonRe:GUI Progress
i could release a kernel and compiler in the future which does that.  or do you mean the syntax is asm?
2010-05-101:57 AM

trollyRe:GUI Progress
i mean you could do a kernel that read flat binary files and parse the opcode.
2010-05-101:59 AM

JasonRe:GUI Progress
so files are stored in memory, the images are stored in xms, i could compile scripts on when loading them... i dont care how long it takes to load a file.
2010-05-104:04 AM

Other


2021 Brandon Cornell