Re: How to tie



On Dec 31, 10:52 am, Eric Sosman <esos...@xxxxxxxxxxxxxxxxxxxx> wrote:
Abble wrote:


If the goal is to interpose your own code on array accesses
in Java, I think you're out of luck: Array accesses use built-in
opcodes of the Java Virtual Machine, and there's no provision for
you to insert your own code into the JVM. (Hard to see how the
security and integrity models could permit such a thing, anyhow.)

Perhaps it's time to take a step back: What kind of code do
you want to interpose, and for what purpose? Perhaps the cat
can be skinned some other way.

--
Eric Sosman
esos...@xxxxxxxxxxxxxxxxxxxx

Thanks Eric,
What I'd like to do is tie a Java array to a a sparse array
database of sorts. These arrays might be really sparse, or maybe
dimensioned far in excess of any RAM or even VM. It sure would be
nice to present the appearance of an array[million,million,million].
I can do this in FORTRAN (by trapping segment violations), I can do
this in C (with macros), I can do it in C++, I think, by overloading
operators. I can do it in Delphi Pascal, same as in FORTRAN.

Sure would be nice to do it in Java too.

I understand this is likely to a bit of a stretch in any language
that is security-conscious.





.



Relevant Pages

  • Re: how to "translate" dynamic array in FORTRAN 90 to Java code?
    ... I am translating a Fortran program to Java code. ... is an array with size unspecified. ... I use Object array in Java to translate FORTRAN array. ...
    (comp.lang.java.programmer)
  • Re: A simple Vector and generics question
    ... There is a reason that I need skipping: I am "translating" Fortran code to Java. ... Isn't a Java Objectarray a better match for a Fortran array. ... this one element shift problem using Vector. ...
    (comp.lang.java.programmer)
  • Re: how to "translate" dynamic array in FORTRAN 90 to Java code?
    ... I am translating a Fortran program to Java code. ... Starting FORTRAN 90, an array size can be un-specified, for example: ... I use Object array in Java to translate FORTRAN array. ... There is a reason that I need skipping: I am "translating" Fortran code to Java. ...
    (comp.lang.java.programmer)
  • Re: why cannot assign to function call
    ... You are mistaken (except perhaps in the Fortran case, which is an oddball by modern standards, and I don't know Perl well enough to judge). ... Java would also have the same semantics, though my Java is too rusty to get the syntax right without actually trying it. ... If you can find a language where an array variable is NOT a reference, then that language is either a dinosaur or some weird academic oddity. ...
    (comp.lang.python)
  • how to "translate" dynamic array in FORTRAN 90 to Java code?
    ... I am translating a Fortran program to Java code. ... Starting FORTRAN 90, an array size can be un-specified, for example: ... I use Object array in Java to translate FORTRAN array. ... There is a reason that I need skipping: I am "translating" Fortran code to Java. ...
    (comp.lang.java.programmer)