Re:Scriptisto: "Shebang interpreter" that enables writing sc...
by UncleOxidant on Wednesday February 07, 2024 @01:40PM
(#39292428)
It looks like it invokes the compiler every time the script is run? That's nice if you've changed the file, but takes extra time if you haven't. It seems neat at first, but I guess I don't see the advantage over just compiling to an executable and then running that.
[ Parent
| on HN ]
Re:Scriptisto: "Shebang interpreter" that enables writing sc...
by ComputerGuru on Wednesday February 07, 2024 @01:43PM
(#39292466)
I don't want to spam the link, but I actually just posted a top-level comment to a version of this I published back in 2020 that does caching and cache invalidation, using the hash of the script as the key for the compiled output path.
EDIT:
Actually, that was how the original version worked, but it had the limitation that once the script changed you could no longer determine the path to the previous executable output to delete, so you could end up accumulating a lot of defunct binaries. Now the hash is stored alongside the target.
Re:Scriptisto: "Shebang interpreter" that enables writing sc...
by actinium226 on Wednesday February 07, 2024 @01:46PM
(#39292506)
There was some mention in the wiki about caching the result and rebuilding it on change, so it seems well thought out from that perspective.