Newsgroups: comp.lang.java.machine
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: 11 Apr 2007 08:56:44 -0700
Local: Wed, Apr 11 2007 11:56 am
Subject: Re: Higher Order Byte-Code Instructions
On Apr 11, 2:09 am, "Chris Uppal" <chris.up...@metagnostic.REMOVE-
THIS.org> wrote: What I meant was that the type system prevents you from using "eval" > Christopher Diggins wrote: > > > It may well be that there are ways of extending the analysis the JVM > > > must do to allow higher-order bytecodes in the context of a state of > > > the art JITer, but I don't see any reason to expect that to be simple > > > at all -- nor any reason to expect it even to fit into the current > > > framework at all (it would be like adding eval(char *) to an optimising > > > C compiler -- how can the compiler optimise code that is unknown until > > > runtime ?) > > This is an incorrect comparison. I am not proposing the execution of > You keep talking about the type system, but (while I understand that it is on anything but a function value. A function value is guaranteed to be a piece of well-typed code, by the type system. > Following the terms of my analogy, consider the following code: Because you can't evaluate strings in my proposal, you can only > sum = 0; > the problem is not that the input to eval() might specify unsafe operations, or evaluate dynamically created functions, which are neccessarily constructed by quoting functions (e.g. pushing functions onto the stack) that the compiler has already seen. So your example becomes sum = 0; There are plenty of well-known optimizations that can be done to the The next logical step after introducing higher order opcodes is the Christopher Diggins You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||