Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding a JIT and JIT cache for static sections of source files #253

Open
skull-squadron opened this issue Oct 31, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@skull-squadron
Copy link

If going through the motions to reinvent the wheel and already having access to a parser, why not make it uniquely advantageous and practical?

One of the biggest problems with bash and traditional shells is slow execution speed of loading and interpreting constant source files.

While avoiding the moderately more difficult cases of non-constant sourcing and eval as potential interpretive "hole" sequence points, but most other bits are low-hanging fruit source transformable into machine code ahead-of-time.

References, prior art and discussion:

@reubeno
Copy link
Owner

reubeno commented Nov 1, 2024

Love the idea! Thanks for the links as well, I'll read through them.

(We've dipped our toes into memoizing simple sub-operations like tokenizing, but haven't tackled anything more interesting in that direction.)

More broadly, we're definitely open to creative ideas like this. Whether it's for the sake of performance, inspectability/security, or testing/analysis--I'd wholly agree it's worthwhile to find interesting ways to leverage our "reinventing the wheel" 🙂

@reubeno reubeno added the enhancement New feature or request label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants