Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:59 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : QBjs....huh?

Author Message
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 08:27pm 20 Aug 2022
Copy link to clipboard 
Print this post

This increments a variable to 100_000_000 in less than 5 seconds on my Android tablet.  


 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 10:30pm 20 Aug 2022
Copy link to clipboard 
Print this post

Not bad on a Tinker Board either  



my site
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 442
Posted: 01:41am 21 Aug 2022
Copy link to clipboard 
Print this post

I wish it supported line numbers.




Edited 2022-08-21 11:43 by toml_12953
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 02:22am 21 Aug 2022
Copy link to clipboard 
Print this post

  toml_12953 said  I wish it supported line numbers.





Here Ya Go !
my site
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 03:52am 21 Aug 2022
Copy link to clipboard 
Print this post

I'd say it is incrementing TWO variables from 1 to 100000000.
B and i.
Visit Vegipete's *Mite Library for cool programs.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 06:22am 21 Aug 2022
Copy link to clipboard 
Print this post

Yeah - I can't understand the logic behind having B at all.  <confused>
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 06:38am 21 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  Yeah - I can't understand the logic behind having B at all.  <confused>


An empty for-next can be misleading.

For example, the ByPic executes ~400,000 lines/sec but an empty for-next runs 1,280,000 times/sec.
Edited 2022-08-21 16:40 by Tinine
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:30am 21 Aug 2022
Copy link to clipboard 
Print this post

  hitsware2 said  Not bad on a Tinker Board either  




Those things look pretty bada$$.

Are you running Linux or Android?

Easy to get up and running or did you need to jump through hoops?
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 08:22am 21 Aug 2022
Copy link to clipboard 
Print this post

  Tinine said  
Are you running Linux or Android?

Back & forth ( TinkerOS Linux mostly )
The Android is pretty much limited ...
( Seems to me ( but I know little
( cannot seem to get to ' files '
to save my ' favorites ' ) ) )
  Tinine said  
Easy to get up and running or did
you need to jump through hoops?

No hoops . I ' ve had it a long time ,
but didn ' t use it because it wouldn ' t
run Sonic Pi .... I ' ve relegated a 3 B +
to sound now , and do not like the 4 B ,
so here we go .....
my site
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 08:59am 21 Aug 2022
Copy link to clipboard 
Print this post

Oh I haven't used 'Files' since forever.

These are my gotos:





 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1593
Posted: 11:08am 21 Aug 2022
Copy link to clipboard 
Print this post

Has anyone figured out how to load bas files locally?

Regards
Michael
causality ≠ correlation ≠ coincidence
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 03:28pm 21 Aug 2022
Copy link to clipboard 
Print this post

  twofingers said  Has anyone figured out how to load bas files locally?

Regards
Michael


Seems to be cut/paste right now.
Not sure what it's purpose is - a code generator for use elsewhere(?)

I had a go with Droidscript...not a good experience but if the code could be created in QBjs and pasted to Droidscript...Dunno.

I think that for my Android stuff, B4A and RFO BASIC! are hard to beat.

Craig
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1593
Posted: 03:39pm 21 Aug 2022
Copy link to clipboard 
Print this post

  Tinine said  Seems to be cut/paste right now.
Not sure what it's purpose is - a code generator for use elsewhere(?)
Thanks!
Well, the demos are impressive and it's 40 times faster than MMBasic for DOS.
Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 03:57pm 21 Aug 2022
Copy link to clipboard 
Print this post

A search for javascript vs Web assembly brings up some interesting links. I didn't provide any particular one because there are so many.

I'm really liking this QBjs because I'm always armed with an android device and it's great to be able to play with ideas and the syntax is close enough to MMBasic.

Craig
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1593
Posted: 03:59pm 21 Aug 2022
Copy link to clipboard 
Print this post

  Tinine said  I'm really liking this QBjs because I'm always armed with an android device and it's great to be able to play with ideas and the syntax is close enough to MMBasic.

Craig


causality ≠ correlation ≠ coincidence
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 442
Posted: 01:00am 22 Aug 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  Yeah - I can't understand the logic behind having B at all.  <confused>


Using the Microsoft optimizing compiler (PDS) with an empty FOR-NEXT loop just sets the index variable to the final count+1. It doesn't actually count through the numbers since there's no need.

FOR i%=1 to 1000
NEXT i%

does something like this:

mov _I%,03E9

so it's important for PDS and similar compilers to actually do something in the loop if you're benchmarking a routine on different machines.
Edited 2022-08-22 17:00 by toml_12953
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025