Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Elian (119)

Elian
  (email not shown publicly)
http://www.sidhe.org/~dan/
AOL IM: DanSugalski (Add Buddy, Send Message)

Perl 6/Parrot internals ex-design team lead.

Journal of Elian (119)

Wednesday May 01, 2002
05:51 PM

Subversive thought for the day

[ #4590 ]
Leon Brocard posted this to perl6-internals and after a conversation with Hugo, it got me thinking. Parrot allows you to load up opcode libraries on demand, and does lexically scoped opcode libraries. What if we...
  • Wrote a set of opcode functions for the JVM ops (there are only 250 or so)
  • Taught the interpreter how to shim properly between Parrot and non-Parrot subs and methods
  • Made dynamically loadable bytecode loaders with some sort of fingerprinting type detection
  • Implemented at least some of the JNI interface?

Scared yet? (And here I thought the big use of loadable opcode libs would be the builtin rezrov interpreter....)

And if we can do it for the JVM, why not .NET?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Wrong. Sick and Wrong. ;-)
  • Wow. (Score:3, Insightful)

    by Matts (1087) on 2002.05.02 2:11 (#7853) Journal
    I think this is great. I'm picturing that we no longer need to write an XML parser for Perl 6 - just plug in XalanJ... Hmmm...

    Of course it's probably a huge job. I imagine it'll go the 80/20 way - the last 20% of those JVM ops will be a bitch to implement right. Are some of those ops GUI ops too?
    • The problem is less likely the GUI ops, as there aren't any (it's all method calls on library code), as stuff like exception schemes and external interfaces.

      I'd be happy if just the pure java library code stuff worked. I'm planning on being thrilled if the rest does. :)
    • FWIW, we'll be able to do most of the ops quite easily - the JVM is mostly quite low level [sun.com] (not GUI level at all). The main problem is converting the whole API as well. There has been some work on the GNU Classpath [gnu.org] project, which might be useful, but yes, the last 20% will be quite tricky ;-)