swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC + Java


From: Pietro Terna
Subject: Re: ObjC + Java
Date: Fri, 20 Apr 2001 07:38:01 +0200

        Thanks a lot.

I'll evaluate the two possibilities in the next few weeks, working on the general scheme of my new project. I can also look for a local aid in advanced Java programming to develop the solution number 1 and offer it to our community.

Would the solution number 2 increase in a heavy way the execution time?

        Pietro

At 16.14 19/04/2001 -0700, you wrote:
>>>>> "PT" == Pietro Terna <address@hidden> writes:

PT> Is it possible to access Swarm ObjC classes from a JavaSwarm
PT> application?

There are two ways:

  1) Write a file that describes the interfaces you want to export.
     This file would be like space.h, analysis.h, etc. in the Swarm
     distribution.  E.g. a @protocol for each class in your package.
     Note this requires having CREATING and USING tags to describe the
     category of the methods.  Then you run it through the etc/java-stub.el
     elisp program which generates a .jar file and shared libraries in
     the way the Java virtual machine wants to see them.

     Advantage:    The result is clean and to users it looks like any
                   other Java library.

     Disadvantage: It's a non-zero amount of work to set up.  The stubber
is general but the Makefiles, etc. are not set up for casual
                   users.  I'd be willing to help set up a tool to make
                   it easy, but only if people would actually use it.
                   (I won't do work to entertain idle curiousity.)

  2) If it is just a few calls you want to make, the FArguments/FCall
     interface will let you call specific Objective C methods from Java.

     Advantage:    It's less work to set up
     Disadvantage: It's inconvenient to use in more complex situations,
                   since each call must be constructed at runtime via the
                   FCall interface.



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



                 ==================================
  Swarm-Support is for discussion of the technical details of the day
  to day usage of Swarm.  For list administration needs (esp.
  [un]subscribing), please send a message to <address@hidden>
  with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]