Allow source code to run, but not show it
#3
(02-11-2023, 11:57 PM)CharlieJV Wrote: That's a great question.

BASIC Anywhere Machine is just one HTML file.

It is a client-side application meant to work offline, requiring no server.

As far as I know, there is no way to hide the content of a client-side HTML file.

The usual approach is by somewhat obfuscating the code with a "minifier" tool that makes the code really hard to read.

Related reading: https://www.freecodecamp.org/news/javasc...%20results.

Something I haven't looked at much for lack of interest:  WASM.  That could be an option for creating web applications that do not reveal the source code.

EDIT:

Actually, BASIC Anywhere Machine is the result of me looking at WASM and thinking "yuck."  When I first got interested in QB64, my instant thought: "hey, it transpiles to C++ code before becoming an executable.  What if I grabbed that C++, fed that to emscripten, and created WASM?  I could have QB64 programs running on the web !

Then I realized that emscripten involved way too much of a learning curve for the amount of benefit.  So I did a hard exit stage left and went the TiddlyWiki + wwwBASIC way.
Reply


Messages In This Thread
RE: Allow source code to run, but not show it - by CharlieJV - 02-12-2023, 12:02 AM



Users browsing this thread: 1 Guest(s)