Home | Reviews | GUIpedia | Forum | Fun500
Jason | GUI ProgressHallo, 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-09 | 9:29 AM |
ksr | Re:GUI ProgressLooks 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-09 | 2:42 PM |
HorvatM | Re:GUI ProgressMaybe $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-09 | 3:08 PM |
Jason | Re:GUI ProgressI was just thinking that rnd doesnt need any variable. atleast it will be easier to develop for, unlike something like gimi | 2010-05-09 | 6:31 PM |
trolly | Re:GUI Progresswhy 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-09 | 6:49 PM |
Jason | Re:GUI Progressi could release a kernel and compiler in the future which does that. or do you mean the syntax is asm? | 2010-05-10 | 1:57 AM |
trolly | Re:GUI Progressi mean you could do a kernel that read flat binary files and parse the opcode. | 2010-05-10 | 1:59 AM |
Jason | Re:GUI Progressso 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-10 | 4:04 AM |
2021 Brandon Cornell