Office Hours — Yesterday, December 14

Tuesday, December 1

Dec 14
7:55 PM
Mark M.
has entered the room
Mark M.
turned on guest access
Dec 14
8:00 PM
Bruce
has entered the room
Mark M.
Howdy, Bruce!
Aaron B.
has entered the room
Mark M.
Howdy, Aaron!
Aaron B.
Hi! :)
Bruce
Hi Mark. Your books helped me get my first app done.
Aaron B.
Hi Mark & Bruce!
Mark M.
Bruce: great!
Mark M.
I'll warn you both: I am still shifting back to US time from Central European Time, so I'm not exactly in top form this evening...
Aaron B.
That's OK
Mark M.
With that in mind, anyone have any questions?
Dec 14
8:05 PM
Bruce
Are you aware of any bugs with the alternative layout directories?
Aaron B.
I have some questions about Android beyond Java...sorry.. very slow typer
Mark M.
Bruce: DROIDs that have not been upgraded to 2.0.1 have a couple of bugs, mostly related to version resource sets (e.g., -v4)
Mark M.
beyond that, I'm not aware of any bugs
Mark M.
Aaron Boonshoft: what specifically were you interested in?
Bruce
I used two directories (among others) -- "Layout-small-land" and "layout-small-port". I have a Droid, so I couldn't test them out, but on the emulator the correct layout was not being selected. It would use the same layout for both orientations.
Dec 14
8:10 PM
Bruce
Opps! I mistyped the first one. It actually has a small "l".
Aaron B.
Mark: The RPL project I mentioned to you earlier today will use Java to interpret the RPL statements. Considering that, is it still something that would be appropriate for your book?
Mark M.
Bruce: well, those names seem valid -- I thought perhaps the sets were in the wrong order, but the order you have them should work. Are you sure you were using an emulator with a small screen?
Mark M.
Aaron Boonshoft: Well, as I think I mentioned in the email, if other applications can use your RPL interpreter, then yes. If the RPL interpreter is tied exclusively to your own app, then no.
Mark M.
_Android Beyond Java_ will cover how application developers can create or extend apps without using Java, not so much on how to write a language interpreter for Android.
Bruce
Yes. During development I kept 4 or 5 different emulators open in a separate workspace and sized them to the actual size of various android phones. I was pretty careful.
Dec 14
8:15 PM
Aaron B.
Mark: The purpose of the RPL interpreter would be to allow a user of the handset to write simple programs right from device. However, it could be designed to be used by other applications as well.
Dec 14
8:15 PM
Mark M.
Aaron: that should fit the book. Let me know when it gets fairly stable.
Mark M.
Bruce: I would create a sample project that exhibits the problem, ZIP up the project directory, and get it out for other people to test.
Mark M.
You could post a link to it on [android-developers], or go straight for http://b.android.com and attach it to a new issue.
Dec 14
8:20 PM
Bruce
I'll do that.
Aaron B.
Mark: How do you see a RPL engine being used by other programs? Is there any need for that? Please don't get me wrong, I'd love my work in your book, but it would help if I understood the user of such an engine.
Mark M.
Aaron: I have no idea. You are inquiring about having RPL be covered in _Android Beyond Java_. The purpose of _Android Beyond Java_ is to illustrate how to create or extend Android applications using languages other than Java. If RPL fits, it fits. If it doesn't, it doesn't.
Mark M.
Remember, I never used RPL, so I don't even really know what it looks like.
Mark M.
One example I will be using in a couple of chapters in the book is JEP -- I'll be porting the last GPL'd edition over to Android, showing how to embed it, and perhaps showing how to tie it into the Android Scripting Environment.
Mark M.
JEP is a infix mathematical expression parser.
Dec 14
8:25 PM
Mark M.
JEP might be used by calculator apps, or spreadsheet apps, or anything else that requires a "classic" mathematical expression to be evaluated.
Mark M.
For all I know, RPL might serve a similar role, just postfix instead of infix.
Aaron B.
Mark: OK, I'll give that some thought, and learn more about JEP. I found it at http://www.singularsys.com/jep/
Bruce
Mark: Python is my favorite programming language. Do you think it would be possible to develop an app in python using something similar to PyQt, but of course for Android not Qt? It seems that the ASE is pretty limited.
Mark M.
Yes, that's the current commercial one, IIRC. There's a GPL edition floating around on SourceForge
Dec 14
8:30 PM
Mark M.
Bruce: The problem with Python and ASE, AFAICT, is that he's using CPython. The one Jython port I saw a while back seemed to be abandoned.
Mark M.
CPython will have difficulty connecting to Android, whereas Jython would be much simpler.
Mark M.
I'm impressed it works as well as it does.
Aaron B.
Mark: JEP might be something I can incorporate into the calculator. Do you know what the main difference is between the commerical and the GPL version is, or was that a remark to Bruce?
Mark M.
Aaron: no, the JEP comment was aimed at you -- Bruce's one comment came in as I was typing.
Bruce
Mark: I would worry about performance. It's odd that Jython was abandoned, since it seems "closer to the metal" than CPython.
Mark M.
Aaron: The commercial JEP is newer, but I don't know if there are major functional differences.
Mark M.
Bruce: Well, CPython's interpreter is compiled, whereas Jython's interpreter itself is interpreted (Dalvik VM bytecodes).
Mark M.
Bruce: Hence, I would expect CPython to be faster...so long as you can keep most of the processing in CPython. Trying to bridge back and forth between CPython and a Dalvik VM would add lots of overhead.
Dec 14
8:35 PM
Aaron B.
Mark: Do you know how soon you would need to see a fairly stable version of an RPL engine for it to be considered for your new book?
Mark M.
Aaron: My books are living documents. They get updated all of the time. The only part that doesn't get updated as frequently are the print editions.
Mark M.
Aaron: The earliest a print edition would be ready is April, and that would be *seriously* pushing it. More likely, May-June.
Aaron B.
Mark & Bruce: I have to go , but this has been very helpful. I wish you both goodnight. Mark, thank you for providing an open office hour.
Mark M.
Aaron: happy to help!
Aaron B.
has left the room
Dec 14
8:40 PM
Mark M.
Bruce: anything else I can help you with?
Bruce
Mark: I seems that ASE allows one to execute scripts, but is it possible to build an apk file from a python script, i.e., an that will run on its own?
Mark M.
Not that I am aware of.
Mark M.
Then again, I haven't stayed tuned into the ASE realm for the past couple of months.
Bruce
Well, it's dinner time on the west coast. Thanks for the chat.
Mark M.
Happy to help!
Bruce
has left the room
Mark M.
turned off guest access
Dec 14
8:55 PM
Mark M.
has left the room

Tuesday, December 1

 

Office Hours

People in this transcript

  • Aaron Boonshoft
  • Bruce
  • Mark Murphy
Adblock