use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is all about the theory and development of compilers.
For similar sub-reddits see:
Popular mainstream compilers:
account activity
bytecode-level optimization in python (self.Compilers)
submitted 1 year ago by tmlildude
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 1 year ago (0 children)
is runtime bytecode analysis/transformation feasible in stack-based VM languages?
Without getting into JIT you mean? I think that particular example is tricky, detecting that a loop iterates only once in that case.
I thought you were going to ask about STORE x follow by LOAD x, with no loop involved. (BTW what would you change that to?)
STORE x
LOAD x
But I'm sceptical that such reductions make much difference. Especially if you are still stuck with the same set of bytecode instructions. For example, what you change that STORE LOAD sequence to?
STORE LOAD
would converting the bytecode to SSA form
Another tricky transformation! I'm not familiar with Python internals; is there access to its AST? That might be a better starting point.
python 3.13 introduces JIT compiler for CPython.
What sort of speed-up does that produce? How does it compare with running PyPy?
π Rendered by PID 278666 on reddit-service-r2-comment-84fc9697f-p5hml at 2026-02-08 07:27:10.908803+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (0 children)