VOGONS

Common searches


First post, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

The QBasic project's code:

https://github.com/PeterSwinkels/QB-Brainf_ck-Interpreter

I am running into speed and memory issues and can't see a straightforward solution, so if anyone feels like having a look and offering suggestions let me know.

If anyone replies I will post more details, otherwise I will just forget about this thread.

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 1 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

Hmmm, noone? Okay, then I will try solving my issue using VBDOS. Which imho is still similar enough to QBasic to meet my purpose of having fun writing an interpreter in a classic BASIC language.

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 2 of 12, by wierd_w

User metadata
Rank Member
Rank
Member

Keep in mind, you are using an interpreted language, to run an interpreted language.

Consider using QB7.1, and "Compiling" it. This removes the "Interpreter" overhead handling QuickBasic.

Also, "Print" commands are.... Abysmally slow. A math loop can execute dozens of times in the same clock cycle it takes to do a single print statement. Try VERY hard to avoid using Print to write to the screen. Basically *ALL* of QB's graphics functions are painful slow. This is why many 3rd party libraries with inline assembler exist for it. 😜

Reply 4 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

If I felt like I had the time and energy to learn Forth I might actually feel tempted to do it just to prove a point. 😀

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 5 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

QB 7.1 eh? If vbdos doesn't work out that is a possibility.

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 6 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

Okay, the interpreter has been ported it to vbdos. Memory management has improved. However it is still slow! 😀

Link:
https://github.com/PeterSwinkels/vbd...ck_Interpreter

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 7 of 12, by gerry

User metadata
Rank Oldbie
Rank
Oldbie

with a quick look - its lots of string things in QB and likely slow for reasons relating to QB itself, interpreted or compiled

with smaller programs i sometimes try to implement the same approach with another tool, for instance c in this case, partly to test the tool and partly to see if doing it again yields any insights i missed first time. it's a thought anyway

Reply 8 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

Well, I am going to try porting to PowerBASIC this time. (When I feel I have the time and energy and other priorities don't get in the way.)

With pb's quirks this is gonna be fun! 😀

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 9 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

https://www.vbforums.com/showthread.php?90243 … 298#post5630298

The last post by me in that thread has an early PowerBASIC conversion attached. 😀

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 10 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

Okay, so now it has become the second to last post... Anyway just look for the post with *.bas files attached...

See ya.

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 11 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

If anyone knows about dynamic arrays (REDIM PRESERVE) in PowerBASIC:

https://www.vbforums.com/showthread.php?90243 … 396#post5630396

Please see if you can help me out, thank you! 😀

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels

Reply 12 of 12, by Peter Swinkels

User metadata
Rank Oldbie
Rank
Oldbie

I am closing this topic for the time being. 😀

Do not read if you don't like attention seeking self-advertisements!

Did you read it anyway? Well, you can find all sorts of stuff I made using various programming languages over here:
https://github.com/peterswinkels