Home | Reviews | GUIpedia | Forum | Fun500
aguma | Spark GUI v0.3 Demo 2!Well I added a bunch of other commands and the stack-based language is actually really fast and easy! The only thing is that now it takes a while to load all the controls because my script got bigger (lol). Anyway tell me if there's something wrong with it or something like that! :)
P.S. Brandon, it's dos compiled now so you can stop saying windows dos guis. So hah! lol [file name=demo2.zip size=118325]http://theguiblog.com/images/fbfiles/files/demo2.zip[/file] | 2009-03-07 | 3:52 PM |
Brandon | Re:Spark GUI v0.3 Demo 2!Impressive, I guess GUI Awards '09 might be interesting :) MWAHAHAHAHAHA | 2009-03-07 | 5:20 PM |
pharoah | Re:Spark GUI v0.3 Demo 2!This project is moving along amazingly quickly. I like how everything seems to work well, without any weird glitches also.
One thing you might not be aware of, the traditional way to do jumps and the like in a stack based language is to define new words rather than using GOTO type things. so in FORTH defining a word that prints Hello World looks like this:
[code]: HI ." Hello, world!" ;[/code]
In your language it might look like this
[code]DEFINE HI
PSTRHello, world!
PRINT
END
[/code]
or something. You'll notice that define is special and doesn't take all its arguments (or even any, in this case) from the stack. You may want to try your hand at making a nicer syntax. it actually isn't hard at all to parse out space separated words (one scripter I wrote was , | 2009-03-07 | 5:49 PM |
aguma | Re:Spark GUI v0.3 Demo 2!Well, my idea of it was to have the scripting language as fast as possible, and then make a compiler to compile some sort of more easy-to-figure-out language into the scripting language. That way it's still possible to use, but not deathly slow (DUN DUN DUN...) Also, the fact that I didn't do GOTOs traditionally was for two reasons: 1. Because it's not supposed to be entirely a stack-based language, and 2. I didn't really know that was how they did it (lol :laugh: ).
Since I'm starting to sound really defendant of my code, I'm going to stop there. :P | 2009-03-07 | 8:51 PM |
pharoah | Re:Spark GUI v0.3 Demo 2!Basically the difference is between using GOTOS and defining subs/functions. Faster implementations (your processor) use GOTOS, but languages designed for people tend to use functions.
I like your idea of compiling to your script code. | 2009-03-07 | 10:51 PM |
GUIs
2021 Brandon Cornell