Mantis - OCaml-Java
Erweiterte Problemanzeige
120 Feature-Wunsch nicht getestet 2013-08-01 11:17 2014-07-15 00:28
chambart  
xclerc  
normal  
geschlossen  
erledigt  
keine    
keine  
0000120: add -java-extensions option to the toplevel
The toplevel does not accept the -java-extensions option. Is there a technical reason that prevent it ?
Problem-Historie
2013-08-01 11:17 chambart Neues Problem
2013-08-08 12:02 xclerc Problemnotiz hinzugefügt: 0000278
2013-08-08 12:02 xclerc Bearbeitung durch => xclerc
2013-08-08 12:02 xclerc Status neu => anerkannt
2014-07-15 00:28 xclerc Problemnotiz hinzugefügt: 0000286
2014-07-15 00:28 xclerc Status anerkannt => geschlossen
2014-07-15 00:28 xclerc Lösung offen => erledigt

Notiz
(0000278)
xclerc   
2013-08-08 12:02   
Well, the current implementation for Java extensions is based
on primitives that are compiled to Java bytecode by the code
generator.

On the other hand, the toplevel is currently exactly the same
than the original one, thus interpreting OCaml bytecode.

As a consequence, to support Java extensions in the toplevel,
it is necessary to either provide an implementation for the
aforementioned primitives (e.g. based on reflection), or to
modify the toplevel to make it use Java bytecode rather than
OCaml bytecode.

To summarize, there is no technical reason that this could not
be done, but it needs some work. So, although it is a desirable
feature, don't hold your breath.
(0000286)
xclerc   
2014-07-15 00:28   
The new version (alpha1) features an alternative toplevel (namely ocamlj)
that is based on Java bytecode rather than OCaml bytecode, and provides
support for typer extensions.