News for hackers. Stuff that matters.
Re:Squeezing a Little More Performance Out of Bytecode Inter... by astrobe_ on Sunday June 18, 2023 @03:29AM (#36378093)
> Our results suggest that it can give large improvements when training for a specific benchmark.

> improved the execution speed of the program for which the order was optimized between 0.8% and 23.0% with 7.7% on average.

Single-digit speedup is not worth it IMO, and the wide range (<1% - 23%) probably means that you specialize for some tasks at the expense of other types of tasks, which is not for everyone's interpreter.

One use I can see for it is to compile multiple inner loops and have the interpreter switch between them (probably manually), if that can get us the yummy 20% speedup. Core primitives and dispatchers are usually not the biggest part of interpreters, after all. Maybe in this scenario the core primitives could also benefit from small semantic changes, like no bounds checking for instance.

Re:Squeezing a Little More Performance Out of Bytecode Inter... by _a_a_a_ on Sunday June 18, 2023 @07:28AM (#36379195)
> Single-digit speedup is not worth it IMO

would you reject a single-digit pay rise? :)

Re:Squeezing a Little More Performance Out of Bytecode Inter... by 13of40 on Sunday June 18, 2023 @08:23AM (#36379591)
Well, to continue the analogy, they might be asking me to do 10% more work for 2% more pay.

Owning and maintaining a trainer in your build system would be a form of technical debt.