r/Basic • • Oct 03 '26

I’m a high school student, and I built VBX — an open-source, compiled successor to Visual Basic 6 (written in Go, transpiles to C99 with -O2)

0 Upvotes

Hey everyone! Like many who grew up loving the simplicity and instant joy of Visual Basic 6 (dragging buttons, writing readable code, and getting an instant .exe), I felt that modern programming has become overwhelmingly complicated. So, as a project I built late at night after school, I created VBX (Visual Basic X).

What is VBX?

It's not an interpreter or a Python toy. It’s a native compiler written in Go that transpiles clean, human-readable Basic syntax directly into standard C99, compiling with -O2 optimizations via GCC/Clang.

Key Features (v0.1.0-alpha):

  • 🚀 Zero runtime dependencies: Outputs single, standalone native executables.

  • 🪟 Native Dialogs: Built-in cross-platform MsgBox and InputBox using native OS APIs.

  • 🧘 Classic Syntax + Modern Inference: Dim, Sub, Function, While...Wend, Do...Loop, Select Case, Exit For/While/Do, and 1D Arrays with automatic type inference.

  • 🔤 Built-in Essentials: Native & string concatenation, string functions (InStr, Trim, Replace, Mid, Len), Math functions, and File.Write/File.Read.

  • 🛡️ Memory-Safe: Uses an internal ring-buffer pool for intermediate string routines.

  • 📜 License: GPL v3 with a Runtime Library Exception (your compiled software is 100% yours). We also created editor support for VS Code (VSIX available), JetBrains, Sublime Text, Notepad++, Vim, Neovim, Emacs, and Micro. Repository: https://github.com/M5Devs/vbx Editors Repo: https://github.com/M5Devs/vbx-editors As Linus once said: Just a hobby, won't be big and professional... but I'd genuinely love to hear your feedback, thoughts, or what features you'd like to see next!


r/Basic • • Feb 25 '23

Sprouting Cog Things (source code below the running program)

Thumbnail
basicanywheremachine.neocities.org
0 Upvotes

r/Basic • • Jan 21 '22

New BASIC oriented discord. Would love if everyone got together so we can talk all things BASIC <3

Thumbnail
discord.gg
5 Upvotes

r/Basic • • Dec 30 '18

We'd like to welcome you to our technology community: the TechnoPub

1 Upvotes

Hello all! Coming from many users on here, we'd like to welcome you to the TechnoPub! It's a Discord server specifically for tinkerers, programmers, and innovators like yourself. We collaborate, troubleshoot, and combine our processing power into one big project engine- what used to be the "Mostly Quoran Techno Engine!". We span ALL areas of technology and welcome students, experts, and teams- come meet our 600+ person international group to learn, teach, and expand your skillsets!

Here's your key: https://discord.gg/2hCNqZ7


r/Basic • • Jul 19 '23

I wrote a cool short microtonal music program in QBASIC when I was 15

1 Upvotes

I forget all the specific commands but it was basically a short loop that looked for a key input like LET A$ = INKEY$ then converted it into it’s ASCII code like A = ASC(A$). So then it did some math operation to that ASCII code to make it a frequency in the audible range, maybe just multiplied by 1000. I think I did something so there would be more of a step between neighboring ASCII codes but I forget exactly how. Anyway it just plays that frequency for a quarter second and keeps looping unless the value is 32 for the space bar and then it ends. It was fun, I wish I had a computer so I could make it again. There’s probably a way to emulate QBASIC on my phone but IDK.


r/Basic • • May 27 '23

Raster Master v1.5 R82 · Sprite / Map Editor

Thumbnail self.retronick
1 Upvotes

r/Basic • • Jul 09 '23

BAM: Howdy Doody PCOPY (for dual scrolling in opposite directions) test

1 Upvotes

r/Basic • • Feb 02 '26

Tiny BASIC Compiler in Python

Thumbnail
reddit.com
1 Upvotes

r/Basic • • Jun 24 '23

Artist compared to Daniel Johnston and Roky Ericson

Thumbnail
texastoday.com
0 Upvotes

r/Basic • • Jun 10 '23

Ported my friend's visual basic program to ti-92+ basic and posted it on my github

2 Upvotes

r/Basic • • Mar 07 '24

THE SHED - Short Film

2 Upvotes

THE PLACES I HAD TO FIND TO PUT MY PHONE WERE SO HARD.


r/Basic • • Dec 02 '23

Rainy days

2 Upvotes

Do not send crypto to $chevyswipes


r/Basic • • Apr 25 '22

Arrays can be a good way to reduce the character count of BASIC code.

Thumbnail self.qbprograms
2 Upvotes

r/Basic • • Jan 02 '22

Atari 8bit Basic 5 Liner type-in program - Descent

Thumbnail
youtube.com
3 Upvotes

r/Basic • • Jan 14 '25

What version of BASIC is this?

5 Upvotes

Does anyone know what version of BASIC this is? Probably from the time of DOS. The author is no longer contactable. I was told it was BBC BASIC, but that doesn't seem to match at all, and the file extension was .BAS not .BBC. The closest I can find is PowerBASIC, but as far as I can tell that doesn't use DEF for functions. Also does anyone recognise "PW200.INC"?

Edit: some more info - it was compiled into a DOS executable (16 bit) and written between 1997 and 2001.

DEFINT A-Z
    $INCLUDE "PW200.INC"
    WIDTH "LPT1:",255

'@@@@@@@@@@@@@@@@@@ Constants @@@@@@@@@@@@@@@@@@
%False = 0
%True = NOT %False
%First.space = 2
%Word.length = 7
%Couplet.length = 7

Version$= "13.01"
Mtitle$= "Ellen"

    Coloured = %True
    Foreground% = 7
    Background% = 1
    Hi.light% = 15
    Lo.light% = 7
    Window.attr = Attr(Background,Foreground)
    Boarder.attr = Attr(0,Foreground)
    Hi.light.attr = Attr(Hi.light,Background)
    Shadow.attr = Attr(Hi.light,0)
    Title.attr = Attr(Hi.light,Lo.light)

    PUBLIC Data.drive$,_
           Window.attr,_
           Boarder.attr,_
           Hi.light.attr,_
           Shadow.attr,_
           Title.attr,_
           Foreground,_
           Background

    'Pretty bit at the start
    COLOR Foreground,background
    CLS
    CALL Front.Screen(Version$)

    Done.with.menu = %False
    WHILE NOT Done.with.menu
          Windows.open = 1
      CALL Clear.screen
        IF Proc.file.flag = %True THEN
          CALL Fsplit(Proc.file.name$,_
                      Drive$,_
                      F.name$,_
                      Extension$)
          F.name$ = RTRIM$(F.name$)
          Printable.proc.file.name$ = F.name$+Extension$
          CALL Box(18,_
                   4,_
                   "Proc File",_
                   Printable.proc.file.name$)
          INCR Windows.open
        END IF

...

'----------------------------------------------------------------------
DEF FNdec.output$ (Dec.Incoming&)
'----------------------------------------------------------------------
    local F2$,F3$,Incoming$
    Incoming$=using$ ("###.##",(Dec.Incoming&))
    F2$=LTRIM$(Incoming$)
    F3$="      "
    MID$(F3$,1)=F2$
    FNDec.output$ = F3$
END DEF

'----------------------------------------------------------------------
SUB Clear.screen
'----------------------------------------------------------------------
    COLOR Foreground,background
    CLS
END SUB

r/Basic • • Sep 03 '26

Visual Gasic — structured BASIC (VB-style) that runs on Godot, not Windows-only

6 Upvotes

I've been building Visual Gasic — a real language in the structured Microsoft BASIC line (QB/VB-style), not a toy interpreter. Syntax stays readable line-by-line; the goal is code you can actually read and fix, including AI-generated code.

Familiar if you know QB/VB-style BASIC:

  • Sub / Function / End Sub

  • Dim x As String, If … Then … End If

  • Print, loops, simple types

  • Event-style handlers if you use UI (optional — not required for console-style programs)

Example (no forms required):

Sub Main()
    Dim i As Long
    For i = 1 To 10
        Print "Square of "; i; " = "; i * i
    Next
End Sub

With UI (VB6-ish, if you want it):

Sub btnPlay_Click()
    tmrGame.Enabled = True
End Sub
Sub tmrGame_Timer()
    Dim n As Long
    n = CLng(lblScore.Caption) + 1
    lblScore.Caption = CStr(n)
End Sub

What's different on purpose:

  • Runs on Godot 4.6 (GDExtension) — 2D/3D, export, Linux + Windows

  • No COM/ActiveX/32-bit Windows lock-in

  • Verbose on purpose so code stays auditable

I'm a former VB6 person; what we lost wasn't mostly the syntax — it was platform and tooling. This keeps the readable structured-BASIC feel and puts it on something you can still ship with in 2026.

Status: public beta (5.4.x). Form designer is experimental; main path is Godot editor + .vg script tabs.

Links:

Question for r/Basic: If you still write in QB64, FreeBASIC, or similar — does this feel like a natural cousin, or too "VB/forms" and not BASIC enough? What would make you try it: a simpler console-only workflow, a standalone IDE, or something else?


r/Basic • • Oct 11 '21

basicbots, A programming game.

8 Upvotes

I have a project that is looking for contributors. It's called basicbots. You program your robot in basic to compete against other robots.

I am looking for people to playtest, contribute in code or documentation. The program is written in Go so even if you don't know Go but are wanting to learn, this would be a great place to start as wouldn't mind helping someone along.

Stop by and give it a go. Feedback is much appreciated.


r/Basic • • Dec 04 '20

EndBASIC - A modern interpreter with a retro feeling, written in Rust

Thumbnail endbasic.jmmv.dev
9 Upvotes

r/Basic • • 8d ago

pBasic for macOS • a modern Basic with a Retro vibe

Thumbnail
gallery
9 Upvotes

pBasic for macOS is a modern BASIC interpreter with a retro vibe. It allows you to easily find your way into computer programming and form a connection with the code. You will learn about Games programming, how to animate Sprites, and compose your own Functions. pBasic gives you a blank canvas in which you can realize your own creations.

pBasic provides a friendly BASIC coding experience in an environment which makes it easy to write and run code. You type commands like CIRCLE or PRINT, and the app draws shapes and text on the screen in real time. Using features like Sprite animation, it is easy to write simple games, and numerous examples are provided with the included Demos. https://apps.apple.com/ca/app/pbasic/id6789459761?mt=12


r/Basic • • Feb 21 '20

PureBasic, a powerful compiled BASIC-like language & IDE

Thumbnail purebasic.com
11 Upvotes

r/Basic • • Jun 01 '24

Dear BASIC community! Don't mean to spam, but after 12 years of development, my QB64 JRPG Whispers in the Moss is out now on Steam, GOG, and Itch.io! Check it out if you're interested and consider dropping a review too. Happy to answer any questions about the game.

Thumbnail
store.steampowered.com
14 Upvotes

r/Basic • • Apr 13 '25

List of BASIC Interpreter Prompts: History

7 Upvotes

What are the various BASIC prompts for different interpreters and/or operating systems?

Please add to the list to create a resource for everyone, such as for setting one's prompt in Bash, Fish, PowerShell, etc. to match a favorite prompt (my own is "READY", no period, to match the Atari prompt). If you know the date or version number, great, but if you don't, that OK too. If you know a way to better match how a prompt was displayed, like the thicker "]" for Applesoft, using a Unicode code point or some other technique, please share. Thanks!

Atari BASIC, 1979: READY

Commodore PET BASIC, 1977: READY.

Micro-Soft Altair BASIC, 1975: OK

Applesoft BASIC: ]


r/Basic • • Jul 17 '26

This is an interesting looking project... GitHub - CharmingBlaze/moonbasic A modern BASIC for building 2D and 3D games — write .mb source, download pre-built binaries, and run. No Go, no C compiler, no build tools on your machine.

Thumbnail
github.com
5 Upvotes

r/Basic • • Mar 19 '25

Are BASIC strings immutable? Temp buffers for string expressions?

5 Upvotes

The time has come to implement strings in my no-so-TinyBASIC interpreter/compiler.

I've only seen one forum discussion (elsewhere) that suggests that BASIC strings are anything but immutable like in [cough] Python. Certainly this would be convenient for an implementor like myself. When I used DEC's BASIC-PLUS back in 1979, I never tried anything so sophisticated as MID$(...) on the left-hand-side of the equal sign to modify a string. Is that a "thing" in modern BASICs? How about in early Microsoft BASIC before line numbers went the way of the Dodo?

Being allowed to modify the middle of a string using a statement like MID$(A$, I, 3) = "POW" would be the only way to tell if string can be modified. If strings can't be modified, then strings can be shared by assigning several variables to the same string. Like in X$ = "SHARED" followed by Y$ = X$, both variables would point to the same string. If you can't modify strings, then the programmer would never know the difference.

I personally want to be able to modify strings because I am writing a BASIC interpreter in BASIC for a course I want to teach. If strings are immutable, then doing things like removing all the spaces from a string can get pretty inefficient pretty fast.

An r/basic member commented that BASICs generally try to use the existing storage space assigned to a string variable when that variable is assigned, and that this is done by copying the new result into the space allocated to the variables existing string value. So A$ = "CAT" followed by A$ = "DOG" doesn't allocate new string memory, but B$ = "PONY" followed by B$ = "HORSE" does. And C$ = "MOUSE" followed by C$ = "RAT" would waste 3 bytes (and start fragmenting string memory).

MY SECOND QUESTION IS: How does a "good" BASIC interpreter prevent intermediate string expressions from allocating memory. Does it have a reusable buffer(s) for building up strings from the right-hand side of an expression before the assignment finally happens (or a comparison operator is called)?


r/Basic • • Feb 13 '25

Essential or Dispensable? What parts of old-school BASIC did you use yourself?

12 Upvotes

I am designing a CS course around a TinyBASIC that was cleverly written in 1,540 bytes of C source code. It supports six commands: LIST, NEW, OLD, RUN, SAVE, BYE; eleven statements: FOR, GOSUB, GOTO, IF, INPUT, LET, NEXT, PRINT, REM, RETURN, END, and ten operators: *, /, +, -, =, <>, >, <, <=, >=.

But sometimes a "tiny" or toy language is just too tiny, so I plan to give students a series of exercises in programming language design: add enough features to make it a "useable" language, which begs the questions: What is "usable"? What is a "real BASIC" as opposed to a TinyBASIC?

Here are some questions for the community: Of 1970s and 1980s BASICs with line numbers (not so much Visual Basic and the like):

  1. What BASIC statements or features were so important you could not live without them?

  2. What BASIC features were so obscure that you never used them?

  3. Did you like using multiple statements per line?

  4. What built-in functions did you use the most? (trigonometry, random, string)

  5. Did you define your own user functions (e.g. FNA)?

  6. What string manipulation syntax did you like best? (Microsoft and BASIC-Plus, Hewlett Packard and Woz's Apple BASIC, Sinclair and others, they were all slightly different).

  7. Lastly, what was your favorite BASIC dialect?

On the last two questions, I'm especially interested in hearing opinions from folks who used multiple BASIC dialects long enough to develop an informed favorite.

This is not a quiz or Google Forms. If you don't have an opinion about some of my quesiotns, don't answer. If you are inspired to answer only one question, that's perfectly fine too. Thanks.