Berkeley CSUA MOTD:Entry 40911
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2005/12/7-9 [Computer/SW/Languages/Perl] UID:40911 Activity:kinda low
12/7    Sure, call me crazy, but is there a way to run Perl on a PDA?
        I stfw, and all I found was a 2001 article on http://Perl.com saying
        that it's impossible, but in tech terms, this is like finding a
        1930s article saying it's impossible to send a man to the moon.
        \_ uh... which PDA?  I don't see why not, and probably the only
           issue is limited memory.
           \_ I wouldn't say limited memory is an issue w/ PDAs these
              days. I think my Treo has more memory than my first linux
              box (it certainly has a bigger "hard drive" - 1 GB flash)
              \_ Well, your Treo still has only 16 MB of RAM, much of which
                 is probably in use.  The 1 GB flash doesn't really help
                 here.  And even then, Palm OS has a pretty puny stack.
                 Anyhow, it's still an issue for some PDAs, hence my
                 question about which one.
                 \_ Well, it's more of a wishlist kind of thing. I'd like
                    a PDA that I test some scripts on; being able to read
                    a PDA that I can test some scripts on; being able to read
                    ebooks and listen to music on it wouldn't be bad, either.
                    Suggestions?
        \_ There is something for WinCE:
           http://www.rainer-keuchel.de/wince/perlce.html
           Supposedly there is a port to PalmOS, but it looks dead:
           http://sourceforge.net/projects/palmperl
           I think there are some Linux based PDAs that come w/
           Perl (Zarus?)
           \_ Is the Zaurus discontinued? I'm having a hard time finding one
              for sale....
        \_ Is JavaScript close enough?  We have pretty good DOM/JS support in
           recent versions of the AvantGo client.  --dbushong
           \_ Sorry, no, Perl-heavy work environment.
Cache (2697 bytes)
www.rainer-keuchel.de/wince/perlce.html
Perl 56 for Windows CE There are currently two programs for perl on wince: perl itself and a sim ple editor named PerlIDE. The programs run on nearly all wince platforms , even on WINCE200 and Palm Size PCs. News Thu May 22 2003: Vadim Konovalov has more recent Perl binaries available, also with Perl memory allocator, see links below. Sat Oct 27 2001: Win32::API and Win32::OLE have been ported. Sat Nov 03 2001: Added profile report for those curious why loading standard mods is so slow. I bought GENIOe550G which has processor based on XScale. Perl The binary archives do not contain any perl library files. You have to co py them from a regular perl distribution. When the cursor is positioned on a line with an error and line-number, you can jump to that line. Features/Limitations Perl scripts not using pipes and external commands should run with no p roblems. Simple terminal escape sequences for stand-out and cursor positioning. Some XS dlls supported (IO/Socket/Dumper/NDBM/SDBM) No fork(). Installation Get the archive for your device and unzip on your pc. Be sure to have s mart crlf conversion turned off in WinZip. pl file, you have to create one or two keys in HKEY_CLASSES_ROOT, like on normal Win32. You can copy other files from a standard perl dist to your device. Do not overwrite the files that come with perl for wince. For looking up service ports with getservbyname(), you need to have a s ervices file in $UNIXROOTDIR/etc/services. Registry Below is a sample batch file that you can execute on your PC with an Acti veSync connection established. Reading and writing to the same filehandle might not work. Perl code that checks if a filename is absolute by checking for drive n ames will not work. When you want so see the out put in the console window, you might have to display a short message and ask the user to hit return, then read from STDIN at the end of your pro gram. The console window might have scroll glitches when ROWS is not set or i s too large. The environment from the registry might not be visible in $ENV. exe is reported not to work with some WCE211/PalmSize devices. Performance Loading all the standard modules to do reasonable work is kind of slow. profile report for Perl loading the stuff for Win32::Ser ial. It would best when standard modules could be pre-loaded and dumped into Perl like in E macs. Notes All new programs using my console now have a --noconsole option. dll and don't overwrite it with older o nes from other packages. When you need a pipe and only want to read output from another program, you can read it's standard output files from the root directory. The Windows CE port will be part of the standar d perl distribution.
Cache (89 bytes)
sourceforge.net/projects/palmperl
Files Sponsored Downloads About Perl port to PalmOS A perl port for the Palm environment.
Cache (8192 bytes)
Perl.com -> www.perl.com/
Using Perl in PostgreSQL Perl's DBI module makes it easy to use a database. That's not the only wa y to interact with a database, though. If your PostgreSQL database doesn 't do exactly what you want, you can write server-side extensions--in Pe rl. Andrew Dunstan shows how to enable PL/Perl and how to write triggers with it. Making Sense of Subroutines Subroutines are the building blocks of programs. Yet too many programmers use them ineffectively, whether not making enough of them, naming them poorly, combining too many concepts into one, or any of a dozen other pr oblems. Used properly, they can make your programs shorter, faster, and more maintainable. Rob Kinyon shows the benefits and advanced uses that come from revisiting the basics of subroutines in Perl. Data Munging for Non-Programming Biologists Scientists often have plenty of data to munge. Non-programmer scientists often have to beg their coders for help or get by doing it themselves. Why not provide them with short, interchangeable Perl recipes to solve small pieces of large r problems? Making Menus with wxPerl Perl's a great general-purpose programming language. wxWidgets is a power ful GUI toolkit that manages attractive, native widgets on multiple plat forms. wxPerl is the combination, and it's easy to use, once you underst and a few idioms. Roberto Alamos shows off everything you need to know t o manage menus with wxPerl. Distributing the Future: Beta Broadcast 003: Good and Evil This week, O'Reilly's audio magazine program Distributing the Future take s a look at good and evil. David Smith and Peter Saint-Andrew work on helping you tell who' s good and who's evil on the web; Ian Langworth and chromatic help to ma ke Perl development better for everyone by pushing testing; Danny O'Brie n shares what he's done to stop evil and encourage good; The State of the Onion 9 In Larry Wall's ninth annual State of the Onion address, he explains Perl 6's Five Year Plan, how Perl programmers are like spies (or vice versa) , and how open source can learn from the intelligence community. Perl Internationalization and Haskell: An Interview with Autrijus Ta ng Edd Dumbill interviews Perl and Pugs hacker Autrijus Tang about internati onalization, localization, and why he started writing an implementation of Perl 6 in Haskell. Autrijus is a featured speaker at the upcoming Eur oOSCON. Perl Needs Better Tools Perl is a fantastic language for getting your work done. Are Perl development tools behind those of other, perhaps less-cap able languages? J Matisse Enzer argues that Perl needs better tools, an d explains what those tools should do. Perl 6 Summary for September 25, 2005 Piers Cawley has the latest on Perl 6 development, with p6i wrangling bug s and loading libraries, p6l stringifying, numifiying, and booleanifying everything in sight, and Luke Palmer summarizing cabal meetings. Special: Open Source Programming Certific ate Series With beginning to intermediate courses in Perl, Java, PHP, mySQL, and the Linux/Unix file system, our Open Source Programming Certi ficate Series is designed to give you a breath of real-world experience. Upon completion of the series, you'll receive a Certificate of Professi onal Development from the University of Illinois Office of Continuing Ed ucation, a plus for any resume. Enroll in all five courses and receive a $300 instant rebate. Perl 6 Summary for September 11, 2005 Piers Cawley has the latest from the Perl 6 lists, with the Perl 6 and Pa rrot and Pirate results from Google's Summer of Code sponsorships bringi ng good news to waiting porters. Using Qpsmtpd While email is increasingly a worker's most important communication mediu m, the onslaught of attacks from spam, viruses, and other malicious emai l content is ever increasing. By implementing a mail server in Perl, you can use your favorite language to mitigate those attacks and provide gr eater flexibility in processing incoming mail. Matt Sergeant shows how t o install, configure, and write plugins for Qpsmtpd. Parsing iCal Data Perl's suitability as a glue language allows you to connect two applicati ons that wouldn't normally communicate by translating their data files b etween formats. R obert Pratte shows how to parse iCal data files--as used in Apple's iCal endar program--and visualize them using the open source Dot graphic pack age. This Week in Perl 6, Through August 14, 2005 Piers Cawley summarizes the Perl 6 mailing lists with containers and meta models on the Perl 6 compiler list, metamodel and trait questions on the Perl 6 language list, and opcode changes and test modules on the Perl 6 internals list. Automated GUI Testing Automation is the friend of testing. If you can drive your program with a script, you can test it. In the W indows world, one solution is the Win32::GuiTest module. This Week in Perl 6, August 2-9, 2005 Matt Fowles summarizes the Perl 6 mailing lists, with p6i seeing build an d platform patches, p6l exploring meta-meta discussions, and p6c enjoyin g Pugs and PxPerl releases. Building a 3D Engine in Perl, Part 4 The ultimate goal of all programming is to be as unproductive as possible --to write games. In part four of a series on building a 3D engine with Perl, Geoff Broadwell explains how to profile your engine, how to improv e performance and code with display lists, and how to render text. com Readers About O'Reilly RSS and Atom Fe eds O'Reilly Media, Inc. is rolling out a new syndication mechanism that prov ides greater control over the content we publish online. Here's informat ion to help you update your existing RSS and Atom feeds to O'Reilly cont ent. This Week in Perl 6, through August 2, 2005 Piers Cawley summarizes the Perl 6 mailing lists with PIL discussion on t he Perl 6 compiler list, type and container questions on the Perl 6 lang uage list, and a Lua compiler on the Perl 6 internals list. Using Perl to Manage Plist Files, Part 2 Part 2 goes into much more detail on managing Plist files. You'll change some values and save the altered Plist file back to disk. Then you'll lo op over entries in a Plist file, get a dump of the NetInfo database, and print all the users in the database using Perl foreach loops. To do tha t you'll convert the Cocoa dictionaries and arrays to Perl hashes and ar rays. Finally, you'll create a Plist file from scratch, build the sample Xgrid cal job listed in the Xgrid man page by creating the structure us ing Perl hashes and arrays, and then convert them to Cocoa equivalents. Porting Test::Builder to Perl 6 With Pugs and Parrot playing nicely and bringing Perl 6 to the rest of us , enterprising early adopters are experimenting with porting their popul ar Perl 5 modules to Perl 6 O'Reilly editor chromatic recently pushed t he limits of Pugs by porting Test::Builder to Perl 6 Here's what he lea rned about Perl 6, Pugs, and his design along the way. This Week in Perl 6, July 20-26, 2005 Matt Fowles summarizes the Perl 6 mailing lists, with p6i discussing garb age collection schemes, p6l rethinking object attribute access and plott ing GC APIs and access, and p6c reporting problems, documenting PIL, and discussing the grammar. Using Perl to Manage Plist Files A common question is how to manage complex Plist files with scripts. The defaults command, which is often used to manage simple values in Plist f iles, does not easily manage the nested arrays or dictionaries that are present in most Plist files. In this first article of a two-part series, James Reynolds pulls together a little Perl and Cocoa to solve this pro blem. An Introduction to Test::MockDBI It is a sweet and fitting thing to test your code, but if you're working with non-Perl, you'll likely run into difficult situations. For example, how do you force a database connection failure to test that you can rec over? Mark Leighton Fisher has an answer: mock up the database. He expla ins the design, goals, and use of Test::MockDBI. Ten Essential Development Practices Perl lets you be productive in everything from quick and dirty throwaway programs to big, business-critical applications. Damian Conway shares ten essential develo pment practices to make your Perl program...