Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a TON of source code and projects archived from PlanetSourceCode.com
#26
(09-07-2022, 02:46 PM)aurel Wrote: QB64 have only one ugly feature..it is slow in compilation
when FreeBasic and OxygenBasic can compile 5000 lines of code in less than second
:
Well, QB64 inherits from C++ which is notoriously slow compiling because of all the syntax rules and other stuff inherited from C such as having to catch multiple errors in one pass. Not like Turbo Pascal which was designed to complain at the first thing it disliked LOL.

In addition, QB64 has to create a bunch of code snippets and helper text files and figure out how to put it all together into command lines for "g++", "ld" and programs like that. Recently I discovered "DATA" statements are enrolled into a text file which is parsed by this certain program, now forgot what it's called, and that program produces a file with extension "dot-o" which then gets linked along with the QB64 source code and libraries.

One thing to add is that QB64 allows a programmer to never declare variables before using them, could always do a$, i&, bigu&&, point%& and stuff like that and must be done while defining a "FUNCTION" anyway. Freebasic forces the programmer to declare variables without exception which could contribute to its better speed. But how about if those 5k lines had nothing to do with OOP? If the preprocessor (more complex than that of QB64, eg. supports macros) is included in the speed tests then the speed of Freebasic is impressive.
Reply


Messages In This Thread
RE: a TON of source code and projects archived from PlanetSourceCode.com - by mnrvovrfc - 09-07-2022, 05:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VS Code and Qb64 pe Unseen Machine 6 755 09-03-2025, 09:42 PM
Last Post: grymmjack
  has anyone had ChatGPT write QB64 code yet? madscijr 13 2,993 08-23-2025, 09:15 AM
Last Post: doppler
  liquid code experiment madscijr 3 510 06-20-2025, 07:26 PM
Last Post: madscijr
  [split] Lines of Code bplus 20 3,127 01-25-2025, 05:11 PM
Last Post: Pete
  QB64 GPT Just Rewrote My Code SpriggsySpriggs 17 2,916 05-30-2024, 06:50 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)