r/visualbasic • u/miku_claus • Sep 28 '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)
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!
14
u/Mayayana Sep 28 '26 •
I don't understand these kinds of projects. VB6 still works on all Windows versions. It's a highly functional IDE. It compiles to native code. I still use it regularly. The runtime is 1MB and it's pre-installed since XP. So there's effectively no runtime dependency. Pretty much the only thing that VB6 can't do is shell extensions on 64-bit. So why do people keep re-inventing it... And if you're in high school, how is it that you remember "the good old days" of VB6 heyday? Microsoft started trying to pushing VB6ers to .Net around 2008. And that was just us holdouts. For the partyline MS fans, .Net started in 2001. By my calculations you would have been about -2 y.o. to -10 y.o. during that timeframe.
8
u/thondat Sep 28 '26
instead of vibecoding something that already exists in a mature form, why don't you at least vibecode something new?
2
u/tastygames_official Sep 29 '26
did YOU write it or did AI write it?
also, there already exists VB6 projects that run on modern computers. So unless this was an exercise in seeing if you could do it, then your efforts woud have been better used in helping make an existing project better.
4
u/EconomySerious Sep 28 '26
Nice, but we have freepascal
1
u/stovenn Sep 29 '26
Can we see a demo on youtube showing someone building a form using the graphical form designer, with buttons, dialogs, and a picture box that allows the end user to create polyline pictures with their mouse. Also I'd like to see the IDE editor in use with breakpoints being used to debug the program while running in interpreter mode. Also a view of the pull-down menus in the IDE.
3
u/ChiRho84 Sep 29 '26
You're getting dragged for vibe coding this, and I don't care: this project fills a niche that's been unserved for decades.
I will say that unfortunately until you have a drag-&-drop IDE like the original VB6 you haven't got a usable product though. Your target audience is not coders who think in terms of source code but office professionals who can imagine a GUI and just need to wire it up.
I'll be watching this with interest.
7
u/zero_dr00l Sep 28 '26
dude nobody cares about your vibe-coded garbage.
1
u/thegeekiestgeek Sep 28 '26
I wish people who vibe coded wouldn't make any claims that they built anything. I have a 13 year old daughter who is more than capable of having Claude or cursor building apps like this and they hate computers.
2
u/mladenmacanovic Sep 28 '26
I absolutely loved VB6 25 years ago.
2
u/Nm_Redditer Sep 28 '26
Dude, I understand you. If you are doing this purely out of passion and don't care if people use it or not, I appreciate you. But if you actually hope people will use it, sorry that's highly unrealistic. I was once a VB6 developer, but ever since I switched to C#, I didn't want to go back to VB. But I wish there was a proper C# that compiled to native code. I know AOT exists, but it's half baked. Work on something like that, or even something like a memory-safe C++, like Rust. People genuinely miss those!
Btw, does it have an IDE with designer?
2
u/antonation Sep 29 '26
Consider sharing to r/AiProgrammingLanguage and r/VibeCodedLanguages
edit: typo
1
u/jd31068 Sep 29 '26
Sweet! I really do love all these projects popping up. Thanks for sharing. I appreciate you wanting to keep VB6 alive. Everyone of these projects has to remind MS just how loved VB is.
1
u/chatoeusou Sep 29 '26
Algumas das minhas interações com o Gemini inteligência artificial do Google a respeito de varios assuntos inclusive Microsoft Visual Basic 1.0 ao 6.0 mas também sobre Delphi, Lazarus+Freepascal, tecnologia SaaS, PC/Desktop First, etc
https://share.gemini.google/iUo2gXOjdIjY
https://g.co/gemini/share/20f1e2614058
https://g.co/gemini/share/96f9ed04b48b
https://share.gemini.google/84r5O6VOiTgi
https://share.gemini.google/P5qRBw9hfgjr
1
u/HeracliusAugutus Sep 30 '26
VBX, more like vibeslop
1
u/lmg1337 Sep 30 '26
Hey guys, I'm a person that is young and should still be inexperienced, but did something impressive.
Yeah, tell it to your mom, she's the only one believing you did this without AI. You can't even write the post for reddit yourself.
1
u/0xKJ Oct 03 '26
Looks like you got some idea from Nim.
Yes, just translate anything to C then use compiler!
1
u/DragonfruitWeak9216 Sep 28 '26
Vb6 , ad oggi funziona ovunque....
0
u/shantired Sep 28 '26
What are the system requirements?
Most VB6 programs in industrial automation were deployed on 32-bit SBCs in the PC104 form factor.
Will programs developed in VBX happily run on 386’s?
If we move to the modern era, can you confirm whether programs will run on ESP32-P4 (MCU with MMU).
1
u/[deleted] Sep 28 '26
[removed] — view removed comment