You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(38) |
Nov
(98) |
Dec
(58) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(114) |
Feb
(123) |
Mar
(96) |
Apr
(66) |
May
(84) |
Jun
(72) |
Jul
(128) |
Aug
(126) |
Sep
(82) |
Oct
(80) |
Nov
(148) |
Dec
(55) |
| 2002 |
Jan
(137) |
Feb
(85) |
Mar
(118) |
Apr
(67) |
May
(71) |
Jun
(28) |
Jul
(69) |
Aug
(48) |
Sep
(83) |
Oct
(79) |
Nov
(54) |
Dec
(32) |
| 2003 |
Jan
(44) |
Feb
(47) |
Mar
(59) |
Apr
(57) |
May
(43) |
Jun
(45) |
Jul
(44) |
Aug
(39) |
Sep
(27) |
Oct
(62) |
Nov
(17) |
Dec
(23) |
| 2004 |
Jan
(41) |
Feb
(51) |
Mar
(38) |
Apr
(30) |
May
(25) |
Jun
(12) |
Jul
(11) |
Aug
(27) |
Sep
(16) |
Oct
(56) |
Nov
(23) |
Dec
(29) |
| 2005 |
Jan
(75) |
Feb
(82) |
Mar
(50) |
Apr
(77) |
May
(19) |
Jun
(104) |
Jul
(47) |
Aug
(42) |
Sep
(28) |
Oct
(143) |
Nov
(62) |
Dec
(13) |
| 2006 |
Jan
(20) |
Feb
(10) |
Mar
(59) |
Apr
(45) |
May
(25) |
Jun
(129) |
Jul
(162) |
Aug
(91) |
Sep
(15) |
Oct
(39) |
Nov
(186) |
Dec
(191) |
| 2007 |
Jan
(134) |
Feb
(140) |
Mar
(106) |
Apr
(77) |
May
(92) |
Jun
(63) |
Jul
(233) |
Aug
(102) |
Sep
(119) |
Oct
(63) |
Nov
(68) |
Dec
(32) |
| 2008 |
Jan
(69) |
Feb
(91) |
Mar
(129) |
Apr
(44) |
May
(18) |
Jun
(53) |
Jul
(50) |
Aug
(25) |
Sep
(11) |
Oct
(28) |
Nov
(67) |
Dec
(36) |
| 2009 |
Jan
(20) |
Feb
(24) |
Mar
(66) |
Apr
(53) |
May
(48) |
Jun
(48) |
Jul
(59) |
Aug
(82) |
Sep
(49) |
Oct
(30) |
Nov
(16) |
Dec
(16) |
| 2010 |
Jan
(52) |
Feb
(25) |
Mar
(36) |
Apr
(34) |
May
(14) |
Jun
(15) |
Jul
(14) |
Aug
(16) |
Sep
(23) |
Oct
(6) |
Nov
(4) |
Dec
(5) |
| 2011 |
Jan
(4) |
Feb
(22) |
Mar
(45) |
Apr
(9) |
May
(8) |
Jun
(13) |
Jul
(12) |
Aug
(4) |
Sep
(6) |
Oct
(10) |
Nov
(21) |
Dec
(5) |
| 2012 |
Jan
(6) |
Feb
(9) |
Mar
(25) |
Apr
(6) |
May
(4) |
Jun
(23) |
Jul
(6) |
Aug
(18) |
Sep
(21) |
Oct
(34) |
Nov
(19) |
Dec
(25) |
| 2013 |
Jan
(8) |
Feb
(34) |
Mar
(35) |
Apr
(4) |
May
(11) |
Jun
(4) |
Jul
(7) |
Aug
(5) |
Sep
(20) |
Oct
(12) |
Nov
(11) |
Dec
(7) |
| 2014 |
Jan
(10) |
Feb
(18) |
Mar
(50) |
Apr
(26) |
May
(53) |
Jun
(21) |
Jul
(12) |
Aug
(39) |
Sep
(43) |
Oct
(26) |
Nov
(8) |
Dec
(6) |
| 2015 |
Jan
(18) |
Feb
(32) |
Mar
(31) |
Apr
(42) |
May
(38) |
Jun
(13) |
Jul
(6) |
Aug
(11) |
Sep
(29) |
Oct
(25) |
Nov
(10) |
Dec
(11) |
| 2016 |
Jan
(24) |
Feb
(12) |
Mar
(13) |
Apr
(15) |
May
(22) |
Jun
(8) |
Jul
(12) |
Aug
(25) |
Sep
(8) |
Oct
(6) |
Nov
(13) |
Dec
(7) |
| 2017 |
Jan
(6) |
Feb
(29) |
Mar
(32) |
Apr
(8) |
May
(82) |
Jun
(42) |
Jul
(20) |
Aug
(17) |
Sep
(27) |
Oct
(14) |
Nov
(22) |
Dec
(6) |
| 2018 |
Jan
(12) |
Feb
(9) |
Mar
(22) |
Apr
(19) |
May
(14) |
Jun
(9) |
Jul
(9) |
Aug
(22) |
Sep
(22) |
Oct
(12) |
Nov
(13) |
Dec
(8) |
| 2019 |
Jan
(22) |
Feb
(3) |
Mar
(30) |
Apr
(20) |
May
(20) |
Jun
(6) |
Jul
(15) |
Aug
(25) |
Sep
(11) |
Oct
(24) |
Nov
(11) |
Dec
(6) |
| 2020 |
Jan
(9) |
Feb
(12) |
Mar
(29) |
Apr
(10) |
May
(22) |
Jun
(11) |
Jul
(15) |
Aug
(5) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(13) |
| 2021 |
Jan
(21) |
Feb
(5) |
Mar
(5) |
Apr
(6) |
May
(10) |
Jun
(7) |
Jul
(6) |
Aug
(8) |
Sep
(5) |
Oct
(9) |
Nov
(5) |
Dec
(6) |
| 2022 |
Jan
(5) |
Feb
(4) |
Mar
(8) |
Apr
(6) |
May
(5) |
Jun
(5) |
Jul
(10) |
Aug
(6) |
Sep
(7) |
Oct
(4) |
Nov
(4) |
Dec
(6) |
| 2023 |
Jan
(5) |
Feb
(5) |
Mar
(6) |
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(7) |
Dec
(8) |
| 2024 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2025 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2026 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-18 21:13:24
|
Finn Bock writes: > In addition to loading of java packages from .jar files, jython also > accept directories in the filesystem found on the CLASSPATH as java > packages. This is why your symlink helps. And this is where setting CLASSPATH to point to our runtime jar and jython's jar helps. Now I can run jython from anywhere. > I'm not at all sure how this scanning of .jar files can/should be > done in the gcj environment. Does the rt.jar (or classes.zip) file > still exists as a file? Yeah, it's a file called libgcj.jar. > The AnonInner.java source in Lib\test\javatests must be compiled > manually. The output .class files should just be placed the same > directory. Noted. > How exactly would that work? Would a foo$py.class file be dynamicly > compiled into a foo$py.so library and loaded by the gij VM? Well, jython's executable would use class loading features of our VM (that most importantly for us deals with loading things in and out, without necessarily executing bytecode.) So basically, yes. The mechanism is exposed here: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/~checkout~/gcc/libjava/java/lang/natClassLoader.cc?rev=1.38&content-type=text/plain (search for quux.) Note that this is a C++ file, as we seamlessly mix native Java and C++ code -- that's how we write the native parts of our runtime, but we support JNI if necessary. CNI is pretty cool, you can read more about it here: http://gcc.gnu.org/java/papers/cni/t1.html So you can write the following: Foo.java: class Foo {} jld.java: class jld { public static void main (String[] arg) { Class x; try {x = Class.forName ("Foo");} catch (Exception _) {return;} java.lang.reflect.Method m[] = x.getMethods(); for (int i = 0; i < m.length; i++) System.out.println (m[i].toString()); } } Using gcj, you create an executable from jld.java: $ gcj jld.java --main=jld -o jld If you execute it now, it will do nothing. Compile Foo.java to a class file and you'll be able to extract informations about the class Foo: $ gcj -C Foo.java $ ./jld public final void java.lang.Object.wait(long) throws ... public final void java.lang.Object.wait() throws ... Now remove the classfile and generate the matching shared object: $ rm Foo.class $ gcj -fPIC -shared Foo.java -o lib-Foo.so (Or we could also do gcj -fPIC -shared Foo.class -o lib-Foo.so, which is what I hope to hook to jython and jythonc.) Now re-run jld, it gives the same result because it's loading the shared object in place of the class file. You can also compile jld.java to a class file and let our interpreter do the work by interpreting bytecodes (but still getting info about Foo loading a shared object:) $ gcj -C jld.java $ gij jld ... Note that libgcj's interpreter (gij) naturally naturally trades bytecodes for shared object and applies it everywhere it can, as you could make a shared library out of jld.java and let gij load it and execute it natively instead of interpreting the bytecode: $ rm jld.class $ gcj -fPIC -shared jld.java -o lib-jld.so $ gij jld ... Which still is not quite like having a jld stand alone executable, but everything is still compiled natively. > Do you have some web links that would allow us to read about the > enviroment that gij is running with? You can read the documentation section of our website: http://gcc.gnu.org/java/docs.html We are fairly compliant with a mixture of 1.1, 1.2 and even 1.3. It's a clean-room implementation of the Java runtime, we're working with the classpath project. It's known to work on {x86,ia64,ppc,alpha}/linux, *BSD is being re-fixed one more time, Solaris should work (it used to be our primary platform but I'm not sure the interpreter works well anymore.) Some people have been working on a Darwin port, and there are also numerous lesser known CPU ports being hacked on. ./A |
|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-18 17:51:13
|
Finn Bock writes: > Generally the pystone test is not sufficiently long running to take > advantage of the JIT compilers in later JDKs. By tuning the number > of passes to suite JIT compiler (and using the server hotspot), we > have seen JDK1.4 produce pystone numbers around and above > python-1.5.2. That's not surprising me. Gcj will lag behind a bit, as we're hardly working on optimisations. Although natively compiling classes generated from python code should boost performances a bit, as our VM is really slow (we would like to add a JIT though.) ./A |
|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-18 17:45:38
|
Samuele Pedroni writes: > to jython rt and if there is no real jython.jar, jython is unable to > locate the Lib dir Good point. I built my jar file like org-jython-lag.jar (lag for latest and greatest, we'll switch over to 2.1 when it's out.) I never crossed my mind that jython might be looking for its own jar. Duh. > b) Does gcj has the java.class.path property somehow set. Yes, it's set to the content of CLASSPATH (and maybe some other things.) So with that pointing to our libgcj.jar archive, I don't need the `java' symlink. > Jython rt tries to scan the jars and dirs on classpath in order > to list the java packages that are candidate for loading. Given what > you describe it seems that gcj classpath is empty or contain at most > the cwd. Yes it was. Thanks! So, bottom line. The problem was simply that I didn't have CLASSPATH set properly. I didn't cross my mind that a extremely dynamic environment like jython needed pointers to the archives it was going to explore. Duh. So when I position CLASSPATH to point to our runtime jar and the distributed jython jar, jython works regardless of the location it was started from. However, if I use the jython jar we generated with gcj (gcj can also go to bytecodes,) I get errors, but now that's my problem :-) Thanks a lot everyone for your help! ./A |
|
From: <bc...@wo...> - 2001-10-18 16:19:25
|
[Alexandre Petit-Bianco]
>OK. With a bit of help from hacking our runtime and trying things out,
>I found out that if I have in my local directory all the files found
>in Lib *and* a symlink called `java' pointing to the `java' directory
>containing the class files hierarchy resulting from the build of our
>clean-room Java run time, I can run testall.py.
>
>There's something wrong with the way things are searched (if you have
>insight on where in the code this is done, it would be cool -- I just
>started to read PySystemState.java.) so I'm guessing our runtime
>doesn't setup the same environment than a regular interpreter. It also
>transpires in our VM (gij), since it runs things if the `java' symlink
>is made (no needs for local copies of the *.py in that case.)
It sound like a problem in Jython's java package loading. Java package
loading is the feature that allow jython to do a
import java.awt
and know that java.awt is a java package. In a normal setup jython
detects that java.awt is a java package by scanning all the .jar (and
.zip) files it can find in the classpath. Directories in the .jar files
with .class files in it is indexesd as a java package. This index is
cached in {python.home}/cachedir.
This is all implemented in the *PackageManager.java files.
In addition to loading of java packages from .jar files, jython also
accept directories in the filesystem found on the CLASSPATH as java
packages. This is why your symlink helps.
I'm not at all sure how this scanning of .jar files can/should be done
in the gcj environment. Does the rt.jar (or classes.zip) file still
exists as a file? If it is replaced by something else (maybe a rt.so
library) is there any way to query its contents?
>On the good side of things, testall reports good results. It crashed
>in serialization because of bug in our runtime error most likely. And
>then there where some other tests that I had to disable (for example,
>exit doesn't behave the same way) but otherwise it brought me fairly
>quickly to getting the same crash that I got with the install JDK
>based version (ImportError: No module named AnonInner.)
The AnonInner.java source in Lib\test\javatests must be compiled
manually. The output .class files should just be placed the same
directory.
>Soon I hope to be able to hack the hooks to run the native compiler on
>jython generated classes.
How exactly would that work? Would a foo$py.class file be dynamicly
compiled into a foo$py.so library and loaded by the gij VM?
Do you have some web links that would allow us to read about the
enviroment that gij is running with?
regards,
finn
|
|
From: <bc...@wo...> - 2001-10-18 16:08:17
|
[Alexandre Petit-Bianco] >I recently managed to compile jython natively on a linux/x86 box using >gcj (http://gc.gnu.org/java) the Gnu native Java compiler. Interesting! >We're interested in including jython into our RHUG project >(http://sources.redhat.com/rhug) That is an impressive list already. >I'm also hoping to hack jythonc to >wrap gcj so that native shared object can be generated from the class >files jythonc emits. These shared object could be loaded by the jython >binary to be executed instead of being interpreted (we can support >both seamlessly.) This would yield to a working native Python >compiler. > >I can build SimpleEmbedded and jython as standalone binaries, and they >seem to run: > > apbianco@venonat[~/.../jython]: ./test_SimpleEmbedded > Hello, brave new world > sys module > 42 > x: 4 > Goodbye, cruel world > apbianco@venonat[~/.../jython]: ./test_jython > Jython 2.1a3 on java0.0.7 (JIT: null) > >>> print "Hello world" > Hello world > >>> ^D > >pystone seems to run and yields to following results: > > apbianco@venonat[~/.../jython]: ./test_jython pystone.py > > Pystone(1.1) time for 10000 passes = 9.984 > This machine benchmarks at 1001.6 pystones/second > >It's on a PIII/450 with 384MB of RAM. The jdk1.1.8 interpreted jython >gave roughly 660 (a jdk1.2pre on a slightly faster machine yielded >700), the installed python interpreter (Python 1.5.2) gave 4400. Generally the pystone test is not sufficiently long running to take advantage of the JIT compilers in later JDKs. By tuning the number of passes to suite JIT compiler (and using the server hotspot), we have seen JDK1.4 produce pystone numbers around and above python-1.5.2. >I built the 2.1a3 and got the sources by first installing it >somewhere. I then imported the content of the install directory where >I wanted my sources to be and worked from there. > >The first successful build was based on a week old snapshot (I noted >that while 2.1a3 had only one entry in Lib/test, the snapshot had >several,) I then switched over 2.1a3. > >I got interested in running the tests in Lib/test from the snapshot >(using the single entry point testall.py and I ran into the following >problems: > >[standard modules can't be found] In normal operations, the python.path is initialised based on the python.home property. If python.home is not set, the classpath is searched for a jython.jar file and that directory is used as python.home. I would guess that you will have to set python.home in your startup script. >So despite the initialization of jython.path, I still can't see some >libraries, I have to start jython right where the libraries are. > >And then I hit an error I don't understand. unlink is seemingly >defined to be equivalent to remove in javaos.py. I tried to just >re-define unlink to be like remove, it didn't help. I tried to remove >the mention of `import unlink' in test_support.py:43, it didn't help. The os & javaos modules are very special. The "os" isn't a python module but a builtin java module which tries to import the javaos.py module. That may cause errors in javaos to be silently ignored and as a result the "os" might be empty. regards, finn |
|
From: Phil S. <psu...@es...> - 2001-10-18 15:49:19
|
Ideally, you could use jnios.
But this should work (I'm using NT, but there should be no difference):
>>> import java.lang
>>> p = java.lang.Runtime.getRuntime().exec('cmd /c dir')
>>> bis =
java.io.BufferedReader(java.io.InputStreamReader(p.getInputStream()))
>>> while 1:
... line = bis.readLine()
... if line == None:
... break
... print line
...
Volume in drive D has no label.
Volume Serial Number is 9096-175A
Directory of
D:\projects\deviceserver\3.0.1\dist\DS3.0.1_21017_1615\server\bin
10/17/01 04:56p <DIR> .
10/17/01 04:56p <DIR> ..
10/17/01 04:32p 36,864 .ds.py.swp
10/17/01 04:32p 74,336 appscript.jar
10/17/01 04:32p 263,801 core.jar
10/17/01 04:32p 336 device-server.properties
10/17/01 04:32p 336 device-server_oci.properties
10/17/01 04:32p 5,456 ds
10/17/01 04:32p 12,604 ds.py
10/17/01 04:32p 183 log.properties
10/17/01 04:32p 153 logwriter.properties
10/17/01 04:32p <DIR> MESSAGES
10/17/01 04:32p 85 server.properties
10/17/01 04:32p 30,038 servlets.war
10/17/01 04:32p 304,246 shared.jar
10/17/01 04:32p 3,952 startds2.cmd
10/17/01 04:32p 4,233 startds2.sh
10/17/01 04:32p 134 trace.properties
10/17/01 04:32p 151 updateapps.bat
10/17/01 04:56p <DIR> WEB-INF
10/17/01 04:32p 6,154 weblogic.properties
10/17/01 04:32p 5,994 weblogic.properties.save
10/17/01 04:32p 6,027 weblogic_oci.properties
23 File(s) 755,083 bytes
1,496,104,960 bytes free
>>>
-----Original Message-----
From: Juniarti A.Suryakusuma [mailto:ju...@ma...]
Sent: Thursday, October 18, 2001 10:43 AM
To: jyt...@li...
Subject: [Jython-dev] unix command
Hi,
I have question about Jython.
How do I use Unix command, such as ls, pwd, etc on Jython interactive
mode?
Thanks.
Juni.
_______________________________________________
Jython-dev mailing list
Jyt...@li...
https://lists.sourceforge.net/lists/listinfo/jython-dev
|
|
From: Samuele P. <pe...@in...> - 2001-10-18 15:39:51
|
Hi 1. I know nothing about gcj rt. 2. I know a little about jython rt ;) a) Unless you pass an explicit python.home property (in the sense of System.getProperty) to jython rt and if there is no real jython.jar, jython is unable to locate the Lib dir and put it in sys.path and to find the global registry. A user-specific .jython registry can be used as a workaround. b) Does gcj has the java.class.path property somehow set. Jython rt tries to scan the jars and dirs on classpath in order to list the java packages that are candidate for loading. Given what you describe it seems that gcj classpath is empty or contain at most the cwd. When you put the java symlink in the cwd you enable jython to do its scan. At the moment there is no direct workaround wrt to gcj setting, which - it seems - does not implement/need a proper classpath for classes that can be/are linked. regards. |
|
From: Juniarti A.S. <ju...@ma...> - 2001-10-18 14:42:21
|
Hi, I have question about Jython. How do I use Unix command, such as ls, pwd, etc on Jython interactive mode? Thanks. Juni. |
|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-18 03:29:51
|
OK. With a bit of help from hacking our runtime and trying things out, I found out that if I have in my local directory all the files found in Lib *and* a symlink called `java' pointing to the `java' directory containing the class files hierarchy resulting from the build of our clean-room Java run time, I can run testall.py. There's something wrong with the way things are searched (if you have insight on where in the code this is done, it would be cool -- I just started to read PySystemState.java.) so I'm guessing our runtime doesn't setup the same environment than a regular interpreter. It also transpires in our VM (gij), since it runs things if the `java' symlink is made (no needs for local copies of the *.py in that case.) On the good side of things, testall reports good results. It crashed in serialization because of bug in our runtime error most likely. And then there where some other tests that I had to disable (for example, exit doesn't behave the same way) but otherwise it brought me fairly quickly to getting the same crash that I got with the install JDK based version (ImportError: No module named AnonInner.) Soon I hope to be able to hack the hooks to run the native compiler on jython generated classes. ./A |
|
From: Alexandre Petit-B. <apb...@cy...> - 2001-10-17 21:34:31
|
I recently managed to compile jython natively on a linux/x86 box using gcj (http://gc.gnu.org/java) the Gnu native Java compiler. We're interested in including jython into our RHUG project (http://sources.redhat.com/rhug) I'm also hoping to hack jythonc to wrap gcj so that native shared object can be generated from the class files jythonc emits. These shared object could be loaded by the jython binary to be executed instead of being interpreted (we can support both seamlessly.) This would yield to a working native Python compiler. I can build SimpleEmbedded and jython as standalone binaries, and they seem to run: apbianco@venonat[~/.../jython]: ./test_SimpleEmbedded Hello, brave new world sys module 42 x: 4 Goodbye, cruel world apbianco@venonat[~/.../jython]: ./test_jython Jython 2.1a3 on java0.0.7 (JIT: null) >>> print "Hello world" Hello world >>> ^D pystone seems to run and yields to following results: apbianco@venonat[~/.../jython]: ./test_jython pystone.py Pystone(1.1) time for 10000 passes = 9.984 This machine benchmarks at 1001.6 pystones/second It's on a PIII/450 with 384MB of RAM. The jdk1.1.8 interpreted jython gave roughly 660 (a jdk1.2pre on a slightly faster machine yielded 700), the installed python interpreter (Python 1.5.2) gave 4400. I built the 2.1a3 and got the sources by first installing it somewhere. I then imported the content of the install directory where I wanted my sources to be and worked from there. The first successful build was based on a week old snapshot (I noted that while 2.1a3 had only one entry in Lib/test, the snapshot had several,) I then switched over 2.1a3. I got interested in running the tests in Lib/test from the snapshot (using the single entry point testall.py and I ran into the following problems: - If I try to run the jython binary outside of Lib/, I get the following error: Testing JPython Version 2.1a3 Traceback (innermost last): File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test-all/testall.py", line 4, in ? File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test/test_support.py", line 43, in ? ImportError: no module named javaos I modified my local registry to set python.path to /home/apbianco/src/rhug/jython/upstream/src/Lib, and debug shows that jython successfully reads the local registry. - If I try to run the jython binary inside Lib/, I get a different error: Testing JPython Version 2.1a3 Traceback (innermost last): File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test-all/testall.py", line 4, in ? File "/home/apbianco/src/rhug/jython/upstream/src/Lib/test/test_support.py", line 43, in ? ImportError: cannot import name unlink So despite the initialization of jython.path, I still can't see some libraries, I have to start jython right where the libraries are. And then I hit an error I don't understand. unlink is seemingly defined to be equivalent to remove in javaos.py. I tried to just re-define unlink to be like remove, it didn't help. I tried to remove the mention of `import unlink' in test_support.py:43, it didn't help. There are still other mysteries to be resolved, like why the -v command doesn't work with the natively compiled jython, but I would appreciate if someone could give me some hints on: - Positioning a path to the Lib/ directory - What `ImportError: cannot import name unlink' could mean with regard to the internal jython machinery (we might have compiler or a runtime bug.) Thank you. ./A |
|
From: Humbel O. <Otm...@bi...> - 2001-10-17 12:04:55
|
[ Bartel, Jan ] > - is Jython an open source software? > - is it possible to have a support agreement for Jython (I talk about customer support --> e.g. using Jython together with other software products and an error occurs.It might be possible that the error refers to Jython. Is there the possibility to establish a support agreement which allows to transfer calls/problem messages)? I think it is open source, see http://sourceforge.net/projects/jython/ http://www.jython.org/license.html I cannot answer the question concerning a support agreement, although I would tend to say no. On the other hand, people on the jython mailing lists always are very helpful. Best wishes, Oti. |
|
From: Ype K. <yk...@xs...> - 2001-10-16 17:53:11
|
>[Ype Kingma]
>>
>> I have run into the problem that when using swing it is necessary
>> to call java.lang.System.exit() to exit the process running the
>> jython interpreter.
>
>That's always true but from my point of view it's a sensible
>behaviour wrt to the thread based vs. loop based model
>used by Java GUIs. (I know it can be annoying if one uses
>only some input dialogs for instance )
>But it's inherited from pure Java GUI code, try:
>
>import javax.swing.*;
>
>public class JB {
>
> public static void main(String[] args) {
> JFrame f = new JFrame();
> f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
> JButton b = new JButton("Ok");
> f.getContentPane().add(b);
> f.pack();
> f.show();
>
> }
>
>}
>
>or
>
>import javax.swing.*;
>
>public class JOP {
>
> public static void main(String[] args) {
> int result = JOptionPane.showConfirmDialog(null,
> "Will an answer leave the app?", "?",
> JOptionPane.YES_NO_OPTION);
> }
>
>}
>
>Otherwise one would have to put some unnatural wait
>or loop in the main thread.
Which is what I have to do before calling System.exit().
Waiting for all (non deamon) java threads to die is a possibility,
but it does not feel correct to wait for non jython
threads (eg. the swing thread) in a jython implementation.
The current tactic of doing nothing leaves all the freedom
ever needed.
Regards,
Ype
|
|
From: Bartel, J. <jan...@sa...> - 2001-10-16 15:38:58
|
Dear all, I have two questions about Jython: - is Jython an open source software? - is it possible to have a support agreement for Jython (I talk about customer support --> e.g. using Jython together with other software products and an error occurs.It might be possible that the error refers to Jython. Is there the possibility to establish a support agreement which allows to transfer calls/problem messages)? I hope you can answer my questions, best regards Jan Bartel |
|
From: Jim A. <Ji...@do...> - 2001-10-16 06:48:15
|
Not sure if this is what you're looking for, but it's worth a look. It's similar to the swing demo 'console.py', but all-java: ftp://iee.umces.edu/SME3/JConsole/SPyConsole.zip > -----Original Message----- > From: Matthew Cornell [mailto:co...@cs...] > Sent: Monday, October 15, 2001 5:00 AM > To: pe...@in... > Cc: jyt...@li... > Subject: Re: [Jython-dev] Q: how to run cleanup method when > interpreter > exits? > > > Thanks for the ideas. I'm sorry I wasn't clear about the scenario: We > were investigating supporting users using our program's class while > working in the interpreter on the command line. For example: User > starts jython script, creates an instance of our class (prox = > Proximity(xx)), and works with that instance (prox.foo()). The problem > was that we needed some cleanup code to run because instatiating an > instance of our class allocates some resources (JDBC connections, > etc.) However, since the *interpreter* (not an application of ours) is > in control, we were looking for hooks that would let us clean up when > the interpreter (or VM) exits. > > We've now decided that we should be in control, so I'm working on > creating a Swing-based Jython console. I'm looking at using something > like this: > > Py.getSystemState().stderr = new > PyFile(jtextAreaPrintStream, "<stderr>"); > > The trick is creating a JTextArea that acts like an InputStream and > OutputStream. I've read a bunch of newsgroup posts on redirecting > stdin and stdout, and the fullest solution seems to be a Rhino > (JavaScript in Java) tool: > > http://www.mozilla.org/rhino/ > > http://lxr.mozilla.org/mozilla/source/js/rhino/toolsrc/org/moz > illa/javascript/tools/shell/ > > If anyone has alread created one of these for a Jython interpreter I'd > be grateful if you'd share the source! > > Sincerely, > > matt > > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev > |
|
From: Samuele P. <pe...@in...> - 2001-10-15 23:11:05
|
[Ype Kingma]
>
> I have run into the problem that when using swing it is necessary
> to call java.lang.System.exit() to exit the process running the
> jython interpreter.
That's always true but from my point of view it's a sensible
behaviour wrt to the thread based vs. loop based model
used by Java GUIs. (I know it can be annoying if one uses
only some input dialogs for instance )
But it's inherited from pure Java GUI code, try:
import javax.swing.*;
public class JB {
public static void main(String[] args) {
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
JButton b = new JButton("Ok");
f.getContentPane().add(b);
f.pack();
f.show();
}
}
or
import javax.swing.*;
public class JOP {
public static void main(String[] args) {
int result = JOptionPane.showConfirmDialog(null,
"Will an answer leave the app?", "?",
JOptionPane.YES_NO_OPTION);
}
}
Otherwise one would have to put some unnatural wait
or loop in the main thread.
regards.
|
|
From: Ype K. <yk...@xs...> - 2001-10-15 18:28:53
|
Hello jythoneers, I've been using pyunit for a while in jython and would like to have code coverage reports from some of the tests. I started from Skip Montanaro's code coverage module (http://musi-cal.mojam.com/~skip/python/trace.py) and found out that the biggest hurdle probably is obtaining line numbers that have code assigned to them. He uses the CPython parser to get actual lines from the SETLINENO instructions in CPython byte code. That won't work for jython, so I started piecing together a java class file disassembler in jython to find out how it's done in jython class files. I got to the point of disassembling individual instructions more or less correctly, and then I found out that setline() is called only at the beginning of each function, which is a showstopper in this case. There is also a line number table, but I wouldn't know how to interpret this while the JVM is executing. Some questions: - Is there an option for jythonc to have setline() called for each line of jython code? I checked the sources a bit and even found the point at which the setline call is emitted for a jython function, but I got no further than that. - Is line tracing implemented in jython? Function tracing works fine in the profiler, but line tracing is a bit more involved, and I did not check whether this can actually be done in jython. - Does anyone know about a real java class file disassembler written in python/jython? Or one written in java that allows for visiting the individual instructions from a jython module so the setline arguments can be filtered out easily? Regards, Ype |
|
From: XenoFORM team. <xen...@po...> - 2001-10-15 16:31:34
|
Greetings ! We have noticed your presence and would like to offer our services to = you. My name is Oleg, and I`m the lead artist of the XenoForm workgroup. = We are a recently founded team of professionals formed of designers, = artists, web-designers, and programmers. Presently, XenoForm employs = seven people.=20 At XenoForm, we are 3D artists, HTML/XML web programmers, musicians and = sound engineers, and experts in video composition and computer = animation. Everyone on the XenoForm team is an artist and expert in his = own field, with talents that cross over to other areas. Each XenoForm = member has over 5 years' experience in his respective field. Everyone = here has general familiarity with the industry standard professional = program suites and applications used to create modern multimedia. You = can see many examples of our work at http://xenoform.devil.ru.=20 XenoForm is based in the former Soviet Union, where highly skilled work = has a value estimated far below contracts of similar quality performed = elsewhere Europe or the USA. This means that XenoForm is uniquely poised = to assist the creation of your multimedia with the maximum return on = your investment in our services. We maintain close communications with = our project liasons to keep you involved in the stages of progress, = ensuring mutual understanding of the tasks we provide. Our experts are = ready to work night and day to satisfy all possible requirements to the = work assigned to us. Work on your project will be not cease until every = aspect of our product meets your satisfaction. When the construction of your project is completed, we don't consider = our job to be over. If you ever need an addition, correction, or = alteration, XenoForm will gladly improve on our previous projects as our = clients require. We offer highly professional and qualified work in the following areas:=20 Traditional design * Graphic design, visual concept, composition=20 * Custom graphics creation and image processing * High-end printable media creation (presentation materials, production = packaging, labels etc.)=20 Web-design and programming=20 * Custom graphics, image processing, and optimized images for Internet = use * HTML and XML page layout, including creation of style, patterns, and = systems to quickly update customer projects * Java and JavaScript programming for special effects and web page = interfacing * Macromedia FLASH - both high-grade sites on Flash and custom-made = elements (flash intro, interfaces, animation, soundtracks, effects)=20 * Programming on a server - oriented languages like PHP, PERL, ASP, = DHTML scripting and mechanisms for interactive pages, service of = databases and search systems * Creation of databases for SQL-based applications and integration with = user pages, including filling of databases and creation of interactive = information processing systems 3D graphics=20 * Professional model creation to any degree of complexity (for use in = many 3D-packages or CAD systems) * Modeling complex static or animated 3D-scenes and characters * Interior modeling (such as rooms and buildings) * Creation of high-grade 3D video clips for cinema, TV, and multimedia * Creation of low-poly models optimized for computer games on any of = existing platforms and 3D internet oriented browser plug-ins, for = example VRML and Shockwave 3D Video and audio * Professional nonlinear video composition (we can combine live video = and computer animations of any type!) * Musical composition and sound effects * Professional audio-composition and processing. Creation custom-made = musical tracks for broadcast video and radio, flash-presentations etc. Average monthly productivity=20 With our present resources and team members, XenoForm can make up to = five web sites of average complexity in a single month. This workload = does not restrict other projects, we can also create 3D models, = animation, and video clips in the same time frame. The audio studio is = independent from these two business lines and is capable of producing up = to 30 soundtracks per month for other clients.=20 Contact us=20 You can contact via e-mail: xen...@po... Visit our site: http://xenoform.devil.ru=20 Resently completed projects:=20 http://www.ipkonfig.com http://www.gamingin3d.com Sincerely Yours,=20 Oleg, Lead artist of XenoForm team. |
|
From: Matthew C. <co...@cs...> - 2001-10-15 13:00:12
|
Thanks for the ideas. I'm sorry I wasn't clear about the scenario: We
were investigating supporting users using our program's class while
working in the interpreter on the command line. For example: User
starts jython script, creates an instance of our class (prox =
Proximity(xx)), and works with that instance (prox.foo()). The problem
was that we needed some cleanup code to run because instatiating an
instance of our class allocates some resources (JDBC connections,
etc.) However, since the *interpreter* (not an application of ours) is
in control, we were looking for hooks that would let us clean up when
the interpreter (or VM) exits.
We've now decided that we should be in control, so I'm working on
creating a Swing-based Jython console. I'm looking at using something
like this:
Py.getSystemState().stderr = new PyFile(jtextAreaPrintStream, "<stderr>");
The trick is creating a JTextArea that acts like an InputStream and
OutputStream. I've read a bunch of newsgroup posts on redirecting
stdin and stdout, and the fullest solution seems to be a Rhino
(JavaScript in Java) tool:
http://www.mozilla.org/rhino/
http://lxr.mozilla.org/mozilla/source/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/
If anyone has alread created one of these for a Jython interpreter I'd
be grateful if you'd share the source!
Sincerely,
matt
|
|
From: UNIVERSO ESPORTIVO<UNI...@UE...> - 2001-10-15 02:29:03
|
<html> <head> <title>UNIVERSO ESPORTIVO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF"> <p align="center"><b><i><font face="Arial, Helvetica, sans-serif" color="#0000FF" size="4">UNIVERSO ESPORTIVO</font></i></b></p> <p align="center"> <font size="3" face="Arial, Helvetica, sans-serif" color="#FFFFFF"><font size="5" color="#FFFFFF" face="Book Antiqua"><font size="3" face="Arial, Helvetica, sans-serif" color="#000000"><b>P</b></font><b><font size="3" face="Arial, Helvetica, sans-serif"><font color="#000000">alestras virtuais com som e vídeo, em tempo real, sobre os mais variados temas , com profissionais conceituados nas diferentes áreas e assuntos esportivos.</font></font></b></font></font></p> <p align="left"><font size="3"><font face="Arial, Helvetica, sans-serif" color="#000000" size="2"><b> <font size="3">Venha participar desse universo de conhecimento.</font></b></font><font size="3"><b><font face="Arial, Helvetica, sans-serif"><i><font color="#000000"> </font></i><a href="http://www.ue.pro.br">www.ue.pro.br </a></font></b></font></font></p> <p align="left"> </p> <p align="center"> <font size="2">Esta mensagem é enviada com a complacência da nova legislação sobre correio eletrônico, Seção 301, Parágrafo (a) (2) (c) Decreto S. 1618, Título Terceiro aprovado pelo "105º Congresso Base das Normativas Internacionais sobre o SPAM". Este E-mail não poderá ser considerado SPAM quando inclua uma forma de ser removido. ESTA É UMA MENSAGEM ÚNICA - VOCÊ NÃO RECEBERÁ MAIS ESTA MENSAGEM Mas se você desejar poderá enviar um e-mail para <a href="mailto:re...@ue...">REMOVER </a>com o título: REMOVA.</font> </p> </body> </html> |
|
From: Ype K. <yk...@xs...> - 2001-10-14 09:06:48
|
Samuele, > > Matt, >> >> >Hi Folks, >> > >> >We love Jython. We're trying to provide some functionality to our users that >allows them to start a Jython interpreter, user our system (by instatiating a >class), then quit. However, we need to have a cleanup method run when the >interpreter exits. Is there a way to do this? THanks. >> >> In jython: use the atexit module, or use try/finally around the >> exec or execfile() around the user code invocation. >> In java: use try/finally around the call to the jython interpreter. > >Maybe I'm just very confused, but despite of the News >jython does not support effectively atexit . I have run into the problem that when using swing it is necessary to call java.lang.System.exit() to exit the process running the jython interpreter. (This was under OS2, and it seems that swing under OS2 registers some exit hooks to the JVM that are crucial for the well being of the GUI after the JVM exits.) I solved it by writing a jython function calling java's exit function and registering this jython function as the first atexit function. It works fine, the jython exit exception is nicely caught. I was a bit surprised that calling java.lang.System.exit() isn't done by default (*), but then I realised that jython is an implementation of the python language and this behaviour is not part of the language. In Python style it could for example be done in the atexit module, or it might be optional behaviour. When you say "does not support effectively atexit" do you mean that there some limitations that I did not encounter? Thinking about it a bit more I would actually like to have java.lang.System.exit() called by default when a process based on a jython interpreter exits. All java processes are supposed to do this, and I cannot think of a reason why jython processes should be an exception. If necessary, one can always call the java exit function that does not use the JVM's exit hooks. Regards, Ype (*) in jython 21a1 iirc, i havn't checked later versions, but the atexit module still works fine for me in 21a3. |
|
From: Keila - C. - Pr<pas...@ie...> - 2001-10-14 01:48:15
|
Olá! Veja meu site pessoal no "Tripod.com.br". Basta clicar no endereço abaixo. GARANTO SER SUI-GENERIS - CLIQUE ABAIXO: http://pastorinha.tripod.com.br/seminarista Mais de 61.000 internautas visitaram a PG., existe 7 Álbuns: Se você quiser, por favor, indique minha Home Page, a outros Internautas. Mais detalhes, se comunique, passe um e-mail, que responderei brevemente. Dentro da Home Page, ao lado das fotos, você poderá saber muito mais sobre mim! Obrigada. e-mail: pas...@ie... Beijos:- Keila - Curitiba - Pr - Podes falar comigo, direto dela. Brevemente uma Carta Aberta. http://pastorinha.tripod.com.br/seminarista "Esta mensagem é enviada com a complacência da nova legislação sobre correio eletrônico, Seção 301, Parágrafo (a) (2) (c) Decreto S. 1618, Título Terceiro aprovado pelo "105º Congresso Base das Normativas Internacionais sobre o SPAM". Este E-mail não poderá ser considerado SPAM quando incluir uma forma de ser removido. Para ser removido de futuros correios, simplesmente responda indicando no Assunto: REMOVER" |
|
From: Samuele P. <pe...@in...> - 2001-10-13 19:16:13
|
> Matt, > > >Hi Folks, > > > >We love Jython. We're trying to provide some functionality to our users that allows them to start a Jython interpreter, user our system (by instatiating a class), then quit. However, we need to have a cleanup method run when the interpreter exits. Is there a way to do this? THanks. > > In jython: use the atexit module, or use try/finally around the > exec or execfile() around the user code invocation. > In java: use try/finally around the call to the jython interpreter. Maybe I'm just very confused, but despite of the News jython does not support effectively atexit . regards. |
|
From: Ype K. <yk...@xs...> - 2001-10-13 15:06:25
|
Matt, >Hi Folks, > >We love Jython. We're trying to provide some functionality to our users that allows them to start a Jython interpreter, user our system (by instatiating a class), then quit. However, we need to have a cleanup method run when the interpreter exits. Is there a way to do this? THanks. In jython: use the atexit module, or use try/finally around the exec or execfile() around the user code invocation. In java: use try/finally around the call to the jython interpreter. Have fun, Ype |
|
From: Samuele P. <pe...@in...> - 2001-10-12 20:03:57
|
> Hi Folks,
>
> We love Jython. We're trying to provide some functionality to our users
> that allows them to start a Jython interpreter, user our system (by
> instatiating
> a class), then quit. However, we need to have a cleanup method run when
> the interpreter exits. Is there a way to do this? THanks.
>
I don't completely get your usage scenario so I'm guessing.
You can catch a SystemExit Jython (*) exception plus put cleanup code
on the normal exiting path.
Or are you asking how to cleanup an interpreter?
regards, Samuele Pedroni.
(*) try { ... } catch (org.python.core.PyException exc) {
if (org.python.core.Py.matchException(exc,
org.python.core.Py.SystemExit)) { ... }
}
|
|
From: Matthew C. <co...@cs...> - 2001-10-12 18:39:54
|
(re-sending this because return email address didn't get included) Hi Folks, We love Jython. We're trying to provide some functionality to our users that allows them to start a Jython interpreter, user our system (by instatiating a class), then quit. However, we need to have a cleanup method run when the interpreter exits. Is there a way to do this? THanks. matt |