Page 1 of 2

QB64

PostPosted: Tue Dec 17, 2013 1:20 am
by S3KshuN8
Is anyone here familiar with this project? http://www.qb64.net/

Re: QB64

PostPosted: Tue Dec 17, 2013 1:25 am
by pam
Nope, but seems very interesting. I had done some qbasic programming and written a small game...16 years ago.

Any partcular reason for the mention?

Re: QB64

PostPosted: Tue Dec 17, 2013 1:50 am
by S3KshuN8
It has a small following around the world, and I'm one of those people. Like every work of art, it is not entirely finished, only improved from time to time. BASIC is my language of choice, despite its limitations. What QB64 does is convert BASIC to C++ and then assemble that into executable form.

Re: QB64

PostPosted: Tue Dec 17, 2013 3:00 am
by pam
Its the easiest language to program in, like ever. More easier than learning python, html etc etc. :yesno

Re: QB64

PostPosted: Tue Dec 17, 2013 5:31 am
by S3KshuN8
To be perfectly honest, the reason I am switching over to linux is to continue working in QB64.
(I have to get it compiled first.)

Re: QB64

PostPosted: Wed Dec 18, 2013 2:49 pm
by S3KshuN8
I should have Ultimate Edition 3.8 installed within the next couple of days. Does it have g++ or a C compiler for g++ to use? Does it have any SDL libraries? Aargh! The wait is killing me. I already have the ISO downloaded now all I need is a blank DVD which I should have tomorrow evening...

Re: QB64

PostPosted: Sun Dec 22, 2013 11:39 am
by S3KshuN8
After finally getting a good backup last night, I now have a dual-boot laptop ready to use. QB64 is slow as molasses on linux, at least the IDE is, something about how it processes the file as a single string, so nothing to do with U E. I hear it's better to use a regular text editor and just use the IDE to compile.

Re: QB64

PostPosted: Mon Dec 23, 2013 12:35 am
by pam
I guess its using only a single core of your sandybridge. Alone, one core is pretty weak.
Check the wiki: http://www.qb64.net/wiki/index.php/Main_Page

Re: QB64

PostPosted: Mon Dec 23, 2013 2:40 am
by S3KshuN8
It's discussed at some length here: http://www.qb64.net/forum/index.php?topic=11563.0
I'll check again, to be sure.

Re: QB64

PostPosted: Mon Dec 23, 2013 3:03 am
by S3KshuN8
The basic problem with the QB64 IDE is how it's set up to begin with.

Your BAS program is held in a single string variable (idet$), with the size of each line appended before and after each string... So a program like the following...

PRINT "Hello World"
END

... is stored in memory as basically:

19PRINT "Hello World"193END3

The IDE then parses that string to move forwards and backwards from the current line.... Imagine you're down on line #200 of your program.... Even though your display is only showing lines 200-230, QB64 has to process ALL the lines prior to the lines which relate to the screen where you're at, just so it can process them.

The longer the program, the more the lag increases....