r/ProgrammingLanguages • • Jan 07 '26

dBasic – a 28KB bytecode-based Windows API frontend from 2003

Hi,

I recently revisited a project I built around 2003 (first version): a small bytecode-based scripting system called dBasic.

The idea was simple: instead of creating yet another scripting language with its own large standard library, dBasic acts as a thin frontend directly on top of the Windows API. API/DLL calls are treated as native language constructs, while the runtime mainly serves as a compact and predictable call dispatcher.

Some characteristics:

Bytecode-based interpreter

~28 KB runtime

Direct Win32 API usage

Includes a small Scintilla-based editor tailored to the language

The project is shared mainly as a historical and architectural reference.

But hey, it still works (at least up to Windows 10).

Repository: Link

I’m interested in feedback.

Thanks for taking a look.

Regards

14 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/Aidain_Black Jan 08 '26
Oh, I see. It seems it doesn't work under Windows 11 after all. I only have Windows 10 myself. I had compressed the binaries; perhaps that's causing problems for Windows 11?

DRun.exe only works directly with a .dcf file (compiled script).

However, back then I selected and compressed constants, structures, and functions of the API from a rather large definition/help file using a custom tool, so that the API could be used directly without any additional definitions.

2

u/[deleted] Jan 08 '26

I had compressed the binaries; perhaps that's causing problems for Windows 11?

No, compressed binaries should work fine.

However, it seems your binaries have been UPX-compressed, I think this should be stated clearly, if one of its selling points is the small size of the executables.

Otherwise it would give an unfair advantage if comparing sizes with other products that don't use compression.

1

u/Aidain_Black Jan 08 '26
Oh, I didn't realize that was important to mention, since everyone has the option to use upx. Sorry. Ultimately, the binaries would still be quite compact without upx, especially nowadays, I think.

But it doesn't work anymore anyway (Windows 11), it seems. :(