| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 51 online users. » 1 Member(s) | 48 Guest(s) Bing, Applebot, KennethFem
|
| Latest Threads |
ZScript
Forum: Discussion
Last Post: z-s
Yesterday, 03:31 AM
» Replies: 0
» Views: 24
|
I think that no more Smal...
Forum: Discussion
Last Post: eddylo
01-20-2026, 11:02 PM
» Replies: 0
» Views: 19
|
Small Basic Coder-A New G...
Forum: Discussion
Last Post: AbsoluteBeginner
01-17-2026, 07:57 PM
» Replies: 1
» Views: 416
|
ZS Small Basic Coder GPT.
Forum: Discussion
Last Post: z-s
01-13-2026, 03:32 AM
» Replies: 4
» Views: 132
|
3D maze in browser contro...
Forum: Discussion
Last Post: stevantosic
01-08-2026, 12:51 PM
» Replies: 128
» Views: 33,306
|
ZS Extension.
Forum: Extensions
Last Post: AbsoluteBeginner
01-04-2026, 02:50 PM
» Replies: 109
» Views: 28,278
|
Happy New Year!
Forum: Discussion
Last Post: AbsoluteBeginner
12-31-2025, 10:08 AM
» Replies: 0
» Views: 71
|
Six different 8-bit emula...
Forum: Discussion
Last Post: stevantosic
12-28-2025, 06:02 PM
» Replies: 2
» Views: 87
|
Challenge-Command Line GW
Forum: Challenges
Last Post: WhTurner
12-22-2025, 06:24 PM
» Replies: 7
» Views: 2,263
|
Google Search Terminal SB...
Forum: Standard Small Basic
Last Post: z-s
12-17-2025, 09:09 AM
» Replies: 1
» Views: 337
|
|
|
| Small Basic super slow ?? |
|
Posted by: Elzaimer - 06-04-2025, 08:39 PM - Forum: Standard Small Basic
- Replies (27)
|
 |
Hello everybody,
I found this QBASIC program on Facebook :
DIM SHARED pi, r, t, u, v, x
DIM i AS INTEGER, j AS INTEGER
DIM px AS INTEGER, py AS INTEGER
DIM rr AS INTEGER, gg AS INTEGER, bb AS INTEGER
SCREEN 12
RANDOMIZE TIMER
pi = 4 * ATN(1)
r = 2 * pi / 235
t = 4 * RND
x = 0: u = 0: v = 0
CLS
FOR i = 0 TO 249
FOR j = 0 TO 249
u = SIN(i + v) + SIN(r * i + x)
v = COS(i + v) + COS(r * i + x)
x = u + t
px = INT(320 + 108 * u)
py = INT(240 + 108 * v)
IF px >= 0 AND px < 640 AND py >= 0 AND py < 480 THEN
rr = (i * 3) MOD 256
gg = (j * 3) MOD 256
bb = (255 - (i + j) \ 2) MOD 256
LINE (px, py)-(px + 1, py + 1), _RGB(rr, gg, bb), BF
END IF
NEXT j
NEXT i
SLEEP
I tried it on https://qbjs.org/ and as it was nice I converted it to Small Basic (PSGZ709.000) to compare the performances.
The difference is incredible : 6 seconds on SB and less than a second on QBJS.
Somebone has an explanation ? is my convertion bad ? is there a way to get better performances ? Would Svb be faster ?
|
|
|
| Request for command extension LitDev |
|
Posted by: martmen - 05-27-2025, 06:12 AM - Forum: Extensions
- Replies (2)
|
 |
Hello LitDev,
could you please create a command that generates the contents of the current window as a PDF?
It should also be possible to save it afterward.
Thank you very much for your great extension.
Best regards,
Martin
|
|
|
| ZS DIALOG ERROR |
|
Posted by: martmen - 05-19-2025, 10:03 PM - Forum: Extensions
- Replies (4)
|
 |
Hallo ZS,
Ich habe ZSDialog.ShowColorDialog() mit HWHS868.000 getestet. Warum wird das Dialogfeld hinter dem Fenster angezeigt? Können Sie den Dialog in den Vordergrund bringen? Tritt dieses Problem bei allen Dialogfeldern auf?
Alles Gute
Martin
P.S. Gebe ich den Text in englisch ein, wird er sofort ins deutsche übersetzt
|
|
|
| The OpenSB Project - reusable Small Basic code |
|
Posted by: sm4llprogrammer2008 - 05-17-2025, 12:58 AM - Forum: Discussion
- Replies (8)
|
 |
OpenSB.
Freedom. For. Beginners
I'm aiming for a project where any SB programmer, even beginners, can share snippets that each other can use.
But honestly, to address copyright problems, add this line before reusing a snippet (replace [username] w/ the username of the creator of the snippet):
Code: 'This code was shared and copied from [username]. Brought from OpenSB.
OpenSB project
|
|
|
| Few questions |
|
Posted by: sm4llprogrammer2008 - 05-13-2025, 10:21 PM - Forum: Standard Small Basic
- Replies (1)
|
 |
1. Can we share our own extensions in the "Extensions" thread?
2. Can we share pre-compiled binaries of our SB programs?
3. Can we share OneDrive links to zipped SB projects incase they need more files to depend on?
4. Will there be a "Porting to Small Basic" thread? Because I'm doing an effort to find a way to port JavaScript to Small Basic and vice-versa.
5. Can we have a "Small Basic HTTP Testing" thread? I'm testing HTTP communications between Small Basic and a Python http.server.
|
|
|
|