Home | Reviews | GUIpedia | Forum | Fun500


agumaHigh-level language
What's a good way to make a high-level language that will compile into a stack-based language? More specifically, what's the best type of language that can easily compile into my scripting language for Spark? Since it's stack-based you wouldn't be able to do variables (except maybe writing them to a file and then retrieving them later...SLOW!!!) so what would you suggest?
2009-03-128:57 PM

pharoahRe:High-level language
Well one thing you could do is to add a heap to your stack based langauge or a dictionary. Almost all of them have at least one of these. Basically it's an array in memory that you can randomly access and resize. In forth it's a dynamically resized, non-garbage collected integer heap and the commands are: HERE
2009-03-1312:17 AM

agumaRe:High-level language
Wow that was thorough! I keep coming up with questions, and then erasing them once I find that you've already said the answer in your post :P.
2009-03-132:13 PM

pharoahRe:High-level language
Being a bit of a lazy programmer myself, I have embarked on a long journey to find more minimalist solutions to problems to minimize my own work in coding. That's how I found out about stack based languages, and then I delved deeper into reading about the way they work. I've also lately figured out how to use pointers, which are pretty necessary. Anyway I haven't forgotten my promise to write some kind of quick example. I will do that soon.
2009-03-133:34 PM

GUIs


2021 Brandon Cornell