![]() |
Forum Index : Microcontroller and PC projects : QBjs....huh?
Author | Message | ||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
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 StatesPosts: 719 |
Not bad on a Tinker Board either ![]() ![]() my site |
||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 442 |
I wish it supported line numbers. ![]() Edited 2022-08-21 11:43 by toml_12953 |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Here Ya Go ! my site |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
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 KingdomPosts: 7937 |
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 KingdomPosts: 1646 |
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 KingdomPosts: 1646 |
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 StatesPosts: 719 |
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 ' ) ) ) 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 KingdomPosts: 1646 |
Oh I haven't used 'Files' since forever. These are my gotos: ![]() ![]() |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Has anyone figured out how to load bas files locally? Regards Michael causality ≠correlation ≠coincidence |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
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: GermanyPosts: 1593 |
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 KingdomPosts: 1646 |
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: GermanyPosts: 1593 |
![]() causality ≠correlation ≠coincidence |
||||
toml_12953 Guru ![]() Joined: 13/02/2015 Location: United StatesPosts: 442 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |