Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-27 Thread Esteban A. Maringolo
2014-04-08 16:04 GMT-03:00 Pharo4Stef : > In VW there is the concept of object bodies and head now we will eventually > have that with Spur. Maybe clement explained it somewhere in his blog (I > understood the point once and of course I forgot). > > Now I wonder what changed so much between 1.2 a

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-23 Thread Joachim Geidel
Hi everbody, I have published an update of JNIPort 3.0 alpha at SmalltalkHub. Changes from the previous version: - The Java classes needed for calling back from Java into Smalltalk and for executing the regression tests have been updated. I have shortened the Java package name from org.metagno

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-08 Thread Pharo4Stef
In VW there is the concept of object bodies and head now we will eventually have that with Spur. Maybe clement explained it somewhere in his blog (I understood the point once and of course I forgot). Now I wonder what changed so much between 1.2 and 3.0 > >> Yes, #become: is *very* slow in Pha

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-08 Thread Sven Van Caekenberghe
On 05 Apr 2014, at 23:35, Joachim Geidel wrote: > Yes, #become: is *very* slow in Pharo. No problem at all in VisualWorks or > Dolphin Smalltalk or Pharo 1.2, though! > > Time millisecondsToRun: [1000 timesRepeat: [String new become: String new ]] > > Pharo 3.0 (and also in 2.0 and 1.4): >

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-07 Thread Joachim Geidel
BTW, I have published an updated version of JNIPort which partly resolves the performance issue caused by using #become:. Joachim -- My OpenPGP Key: 29F88108 available from hkp://wwwkeys.de.pgp.net

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-07 Thread Tudor Girba
Hi Joachim, Thanks for the explanations. It looks complicated but I am very happy it is possible! I will give a try next week and get back to you. Cheers, Doru On Sat, Apr 5, 2014 at 2:32 PM, Joachim Geidel wrote: > Am 31.03.2014 um 21:25 schrieb Tudor Girba : > > Now, the next question. I s

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-06 Thread Pharo4Stef
On 05 Apr 2014, at 23:35, Joachim Geidel wrote: > Hi Igor, > > thanks a lot, your analysis is correct, and it helped. > > Am 05.04.2014 um 17:05 schrieb Igor Stasenko: >> so, without going deep into implementation details, just by reading comment >> i can already see potential bottleneck - us

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-05 Thread Joachim Geidel
Hi Igor, thanks a lot, your analysis is correct, and it helped. Am 05.04.2014 um 17:05 schrieb Igor Stasenko: > so, without going deep into implementation details, just by reading comment > i can already see potential bottleneck - using #become: operation which is > veery slow. Yes, #become: i

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-05 Thread Pharo4Stef
Joachim would you be interested to write a little Chpater for the Pharo for the entreprise book? I can help. Ste On 05 Apr 2014, at 14:32, Joachim Geidel wrote: > Am 31.03.2014 um 21:25 schrieb Tudor Girba : >> Now, the next question. I saw that it is possible to enable callbacks, but I >>

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-05 Thread Igor Stasenko
On 25 March 2014 19:59, Joachim Geidel wrote: > Hi everybody, > > JNIPort for Pharo 3.0 alpha is now available at SmalltalkHub. > > JNIPort is a Smalltalk library which allows Java code to be invoked from > Smalltalk. It acts as a bridge between the world of Smalltalk objects and a > Java Virtual

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-04-05 Thread Joachim Geidel
Am 31.03.2014 um 21:25 schrieb Tudor Girba : > Now, the next question. I saw that it is possible to enable callbacks, but I > could not find an example of how it works. > > For example, could we model this: > > - in a JavaClassOriginator class we have a method like > execute(JavaClassTargetInter

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-31 Thread Tudor Girba
Hi Joachim, Thanks for the answer. I suspected that it goes in this direction :). Now, the next question. I saw that it is possible to enable callbacks, but I could not find an example of how it works. For example, could we model this: - in a JavaClassOriginator class we have a method like exec

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-29 Thread Joachim Geidel
Hi Doru, Am 27.03.2014 um 13:07 schrieb Tudor Girba: > Just a question: is there a way to communicate with an already running VM > that was started independently from Pharo? JNIPort uses the Java VM as a DLL / shared library, using the Java Invocation Interface which is part of the Java Native

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-27 Thread Pharo4Stef
EXCELLENT Thanks for this important contribution. Stef On 25 Mar 2014, at 19:59, Joachim Geidel wrote: > Hi everybody, > > JNIPort for Pharo 3.0 alpha is now available at SmalltalkHub. > > JNIPort is a Smalltalk library which allows Java code to be invoked from > Smalltalk. It acts as a

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-27 Thread Tudor Girba
tings: jvmSettings]. > > " > > > > Then the fun starts: > > > > " > > zfClass := JVM current findClass: #'java.util.zip.ZipFile'. > > zipfile := zfClass new_String: 'JNIPort.jar'. > > zipfile size. "--> answe

Re: [Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-25 Thread Tudor Girba
Thanks a lot for this contribution! I will give it a try soon. Doru On Tue, Mar 25, 2014 at 7:59 PM, Joachim Geidel < joachim.gei...@onlinehome.de> wrote: > Hi everybody, > > JNIPort for Pharo 3.0 alpha is now available at SmalltalkHub. > > JNIPort is a Smalltalk library which allows Java code

[Pharo-users] [ANN] JNIPort for Pharo 3.0 alpha

2014-03-25 Thread Joachim Geidel
Hi everybody, JNIPort for Pharo 3.0 alpha is now available at SmalltalkHub. JNIPort is a Smalltalk library which allows Java code to be invoked from Smalltalk. It acts as a bridge between the world of Smalltalk objects and a Java Virtual Machine (JVM) where Java code is executing. When I first