Cool project, have you considered the various performance implications of custom byte code, some of these or most are pass through optimizations. But check this out "Loops that have fewer than 300 instructions are eligible for JIT-compilation. Loops larger than that are too costly to compile. When the loop has executed 16 times, the script is JIT-compiled in the background. When the JIT-compilation completes, execution is transferred to the compiled code."
Quote:
|
https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/performance/script-authoring-considerations?view=powershell-7.6
|
So my guess is virtual execution will not scale well for big loops e.g. a compression/encryption of a file or such use cases at least very easily. But then I was thinking if there were a way to forward the whole loop to the original engine probably it would be okay. Anyway, not sure how common big loops are in PS scripts.
I like the logo too BTW.