Proof of Concept: Self updating scripts

Well, if Hola commits any amazing revisions I suppose you could revert them, make the release and then re-commit them. Right?
 
So... I guess the upshot of all this would be that any ash implementation of script auto updates would be considered a security flaw?
Ok, so here is a new solution that may be useful.

Since a script is loaded into memory before running, It wouldn't really matter where it loaded from right? So what if a .ash file could simply contain a single line
<LoadFrom=URL>, then the script could be loaded into memory from a file hosted on the web somewhere? Possibly creating a local cached version and only updating that cached version when the url's change date is updated?

Hah, actually this can already be done with just ash
ash cli_execute("ash "+visit_url("http://www.paragon.net84.net/Kol/src/smlib.ash"))

But the simple example above has the drawbacks that 1) Libraries referenced need to be on local machine, 2) No caching
 
Last edited:
Back
Top