Self Optimizing Code
Mark J Twain via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 3 12:22:05 PDT 2016
On Wednesday, 3 August 2016 at 07:36:21 UTC, ketmar wrote:
> hello, you just invented JIT compiler.
Um, no. JIT = Just in time compilation. The code is already
compiled and in binary form. The only differnece is that hard
coded values = literals in the binary, become variables. There is
no recompliation. The variables are simply updated by an
optimization routine. They could be manually updated by the user,
for example, but the user is not intelligent with regards to
these things(although an interface for the user could be used).
Regardless, this is not JIT. Having seen some of your posts, I
know you won't admit your ignorance here, but unless you are
going to claim that DMD is JIT, then this is not JIT. Why? It can
already be done in DMD without using any advanced techniques. The
problem is that it requires the programmer to do more boilerplate
code than is needed.
This is more akin to GC, but instead of managing memory
references, it manages variables. Instead of freeing stuff, it
perturbs them. But does so in the background too... but does not
need to "stop the world", since as far as the program is
concerned, these special variables like literals(immutable at
least).
More information about the Digitalmars-d
mailing list