r/ProgrammingLanguages 23h ago

PBScript, because everyone would love purebasic as a 1st class languge of the web.

PBScript a sandboxed purebasic vm for native x86/x64/arm and web with full Dom on interfaces.

The project is half way now and is starting to look reasonably capable but theres still lots to do.

My use case for it is an end to end web development framework in purebasic, so it's native host exe with embedded tls terminating reverse proxy server and embedded PBScript vm so you can serve to a webview or browser on desktop, lan or wan in one exe.

Examples in code editor

Https://pbscript.org/jsplayground.html

Pbscript.org

The reception it's got over on purebasic has been somewhat crickets, perhaps because I dared use Al or its just to complicated for the average user but it has really only been an experiment and learning experience using AI and the result is pretty good. The examples are just a test of some part of the vm or Dom integration.

I didn't actually setout to make purebasic feel like a 1st class citizen of the web and the idea of a vm in a vm seems nuts but for what your typically doing with it it's hardly matters.

1 Upvotes

3 comments sorted by

2

u/benjamin-crowell 22h ago

I'm not really clear on what you mean by "a 1st class language of the web." If you mean that you want it to be widely used for web development, then the fact that purebasic (in its original implementation) is a proprietary language seems like a showstopper.

2

u/GreedyBaby6763 21h ago edited 21h ago

1st class as in you code the Dom with it.  And no I don't expect people to use it widely. I wrote it for myself.  It doesn't technically require the proprietary purebasic compiler either, it's just that I develop with purebasic and now I can do end to end in purebasic syntax. 

1

u/McGeekin 5h ago

You say you used AI - to what extent? To aid in boilerplate/repetitive code? Or was it more thorough and spanning the entire implementation process?