aspose file tools*
The moose likes Jython/Python and the fly likes To the author, Mr. Bill Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "To the author, Mr. Bill" Watch "To the author, Mr. Bill" New topic
Author

To the author, Mr. Bill

Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
This probably isn't a fair question, but could you give me a comparison of your book vs. the "Jython Essentials" from O'Reilley?
I read the info on both from amazon, and it sounds like yours would be more useful. But I wonder, who is the intended audience? How much Python do you expect us to know?
Thanks for the info!
Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Robert W Bill
Author
Greenhorn

Joined: Apr 08, 2002
Posts: 21
Sure it's a fair question, but I haven't received my "Jython Essentials" yet. I knew this would come up, and I'm bummed that I don't have an answer yet. Sorry.
What I can say is that the intended audience for "Jython for Java Programmers" is those who have a basic understanding of Java. I do not expect readers to know any Python/Jython, just the basic understanding of Java.
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Originally posted by Robert W Bill:
What I can say is that the intended audience for "Jython for Java Programmers" is those who have a basic understanding of Java. I do not expect readers to know any Python/Jython, just the basic understanding of Java.

Great. That's because Jython is for Java programmers. I can't wait to read your book.
Mr. Bill, could you please list some tasks I can achieve with Jython(I know only few of them)?


Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
Shawn Meyers
Greenhorn

Joined: Mar 19, 2002
Posts: 23
Ohh and MR. Bill, congrats on "the very first Jython book",, to quote the Jython home page,, It's great that people write books like this,, and now I see from within this topic there's another book out there about Jython, great,!!,now I can add two more books to my regular pile at B&N,lol,what's money if you can't spend it! Awe what the heck,I've been craving some new books Gonna have to rent out a book shelf in my local library soon the ones here are packed, once again, thanks for your contribution to the world of Python/Java,, I know Python, and am learning java at a sickeningly rapid rate(the dreams I have about the code I was trying to figure out really help lol,,so that way when I wake up i can whip out my Palm and get to work on the busride on the way to work ),but anyway I've been wondering how I could use Jy since I've had it for a few months already,,hope your book shines some insight upon my ponderings.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Shawn,
Have they finally got a Python/Jython interpreter for the Palm? Or ar you just entering source code for later?
I looked at Python a while ago, but since then I've been swamped -- looks like I need to get back to it!
Burk
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
For not to start a new blitz-thread, I used this
How can we call Jython interpreter from our Java code? (for application scripting purposes, for example).
Shawn Meyers
Greenhorn

Joined: Mar 19, 2002
Posts: 23
Yeah!!good question,,somthing I would like to know
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Here's an example. Also here.
[ April 10, 2002: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Map,
Seems that you are very interested in embedding Jython scripting into Java application and starting off your exploring. Cool plan.
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Few years ago we had a contract with a government institution in a rather bureaucratic country. They wanted some kind of information system, but all my attempts to figure out what exactly they need failed. Basically all they wanted was "something cool that we can report to our bosses" Since I had plenty of (paid!) time and no particular requirements , I started to implement a kind of generic IS which allowed users to define their own entities and attributes, to put information and to query them. Yeah, I know, there is such thing as "databases", but I had to do something 8 hours a day? Anyway, I wrote a bunch of... um... modules (it wasn't OO language) and GUI for users to call them. Now all decent databases have their own built-in languages and I was thinking in this direction, but did not go so far
I am interested in "scriptable" applications since then, more in theoretical plan, though There is the whole "Generative Software Engineering" movement which is said to replace OOP paradigm some day (hm), and AOP (Aspect-Oriented Programming) is one of its sprouts.
Robert W Bill
Author
Greenhorn

Joined: Apr 08, 2002
Posts: 21
It's great to see the interest in embedding Jython. It really works well in so many situations, and it's so simple to do. I noticed someone else already added links to the online embedding examples, so I won't repeat those. I find new places to embed it all the time. Out of the tremendous number of tasks for embedding, I'd have to say that the tasks it really shines at are automation, rules/constraints, report generation, dynamic code generation/execution, and any time classes change frequently.
Wouter Zelle
Ranch Hand

Joined: Apr 12, 2002
Posts: 30
I'd like to ask the author a different question:
In another thread it was advised that one should learn Python before delving into Jython. What is your opinion on this? My goal is to learn both Jython and Python in the future.
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
JavaWorld has an article about embedding scripts in a Java application: Scripting power saves the day for your Java apps
Shawn Meyers
Greenhorn

Joined: Mar 19, 2002
Posts: 23
To answer your question Burk,, they do make Pippy, which is Python for Palm, but as far as one for Jython goes, not yet. But usually what I do anyway is use the Palm with a text editor and then irftp it over to my desktop or laptop when I am at it. But yes they do have an interperter for Python, Pippy,, a little compacted, but it's there
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
I think pippy is the one I read about. I remember beiong happy until I found out that you had to write the code and "compile" it on your PC then port the .prc file to the Palm.
I wonder if anybody will make a PocketC style version of Python for the Palm? It would be really cool to have it all on one box.
 
Don't get me started about those stupid light bulbs.
 
subject: To the author, Mr. Bill