We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 837
» Latest member: Ascentszx
» Forum threads: 218
» Forum posts: 2,253

Full Statistics

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 ?

Print this item

  SB is actually open-source!
Posted by: sm4llprogrammer2008 - 06-02-2025, 09:07 PM - Forum: Standard Small Basic - Replies (3)

I found the SB dev team's official GitHub profile:
https://github.com/sb

Print this item

  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

Print this item

  Solution for large window issues resolved
Posted by: martmen - 05-25-2025, 10:17 AM - Forum: Extensions - No Replies

Hello everyone,

Take a look at the program MLNN747.000. It always annoyed me when I needed a large window and the buttons were displayed at the bottom—having to scroll down just to reach them.
That's why I created two windows: one at the bottom of the screen with buttons, information display, etc., and a second window with scrollbars that I can resize as needed.
I think it's great!
   
Best regards,
Martin
P.S. Translated with Copilot

New Version MLNN747.000-0

Print this item

  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

Print this item

Wink Guys!
Posted by: sm4llprogrammer2008 - 05-17-2025, 01:02 AM - Forum: Discussion - Replies (1)

Finally, you can make an actual modern browser on Small Basic 1.2.
I'm planning an extension called WV2.sb, written on VB.NET.
Since the always WebBrowser control was Internet Explorer-based and has security issues, I'm planning to use WebView2: the one that uses Chrome's rendering engine, Blink (a fork of Apple's WebKit)

Print this item

  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

Print this item

  Multi Language GUI
Posted by: martmen - 05-15-2025, 05:51 PM - Forum: Extensions - Replies (3)

Hallo zusammen,

ich habe mit der Erweiterung von LitDev eine GUI erstellt, die in unterschiedlichen Sprachen funktioniert. Der Schlüssel für das Programm zum importieren ist HDPV317.000
Der Benutzer ist "Admin" und das Passwort ist "Welcome#2025".
Beim ersten Start wird eine SQLite Datenbank im selben Verzeichnis angelegt, indem das Programm gespeichert ist.
Es wird ein privater und ein öffentlicher Schlüssel erzeugt, die in der Datenbank gespeichert werden.
Der Benutzer Admin und das Passwort wird in der Datenbank gespeichert. Das Passwort wird verschlüsselt gespeichert, damit man es nicht einfach ausgelesen werden kann.
Versuche es in Deiner Sprache.

Viel Spaß beim Ausprobieren
M[Anhang=166][Anhang=166]Artin

Hinweis:
Es wird die aktuelle Beta Version der LitDev Erweiterung benötigt.



Attached Files Thumbnail(s)
   
Print this item

  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.

Print this item

  Another question.
Posted by: sm4llprogrammer2008 - 05-12-2025, 11:06 PM - Forum: Standard Small Basic - Replies (1)

Can we share sVB programs? I have sVB 3.5.5.7 installed.

Print this item