MacPerl 5.6.1 Released 122
pudge (apple.slashdot.org editor and MacPerl Maintainer) writes "MacPerl 5.6.1r1 is the first release of MacPerl in four years. It is now based on perl 5.6.1 -- actually on the latest unreleased 5.6 sources, so MacPerl is the most advanced release of perl ever -- and support for MacPerl is now in the perl core, for both 5.6 and 5.8. MacPerl can also be built entirely with freely available software. And, like its predecessor, it runs on Mac OS X under the Classic environment. Read the announcement, and see macperldelta for details on what's changed."
Your .sig (Score:1, Funny)
From a troll who studied Chinese.
Platform Agnostic... (Score:1, Informative)
Why the hell would you run it under Classic? (Score:2, Insightful)
Re:Why the hell would you run it under Classic? (Score:2, Informative)
Re:Why the hell would you run it under Classic? (Score:2)
Because Mac OS X perl doesn't (yet) have hooks into the Mac OS API.
You answered the letter of the question, but not the spirit of it. Instead of putting time and effort into making new versions of Classic MacOS Perl, it would make a lot more sense IMO to put time and effort into creating the right MacOS X bindings, so that we could, e.g., run Perl/Tk in MacOS X. (There's already a Tk implementation, so it seems like all that's needed now is a thin layer of glue.) But then, that's the cool thing about open source: it doesn't matter if I think they're wasting their time; all that matters is whether they find it worthwhile for some reason.
Part of what's probably going on here is that Apple's schizoid open-source/closed-source approach is sapping the will of open-source programmers. You could do the work of creating the Perl/Tk bindings for MacOS X, and then find out that Apple comes out the next day with MacOS X 10.1.4, which includes the same thing.
Re:Why the hell would you run it under Classic? (Score:3, Insightful)
As to Carbon/Cocoa bindings for Mac OS X: they are in progress. But they are irrespective of MacPerl, except that they will, eventually, obviate the need for MacPerl on Mac OS X, and the Carbon bindings will likely work on both Mac OS and Mac OS X.
Re:Why the hell would you run it under Classic? (Score:1)
Re:Why the hell would you run it under Classic? (Score:2)
Re:Why the hell would you run it under Classic? (Score:1)
I've seen the wrapper module you speak of, as I was contacted regarding it when it was first released. It only handles a tiny portion of the wealth of API access the MacPerl modules provide.
Re:Why the hell would you run it under Classic? (Score:3, Interesting)
Personally, I'd love to see it released. I quite like Objective-C, but for small apps were performance isn't critical, it's often just too much trouble. AppleScript is nice, but it isn't nearly as powerful as Perl, and it has much lower performance. Perl would fill the gap between Objective-C and AppleScript perfectly, allowing people to develop fairly serious apps quickly and easily.
Re:Why the hell would you run it under Classic? (Score:1)
Re:Why the hell would you run it under Classic? (Score:1)
Re:Why the hell would you run it under Classic? (Score:1)
Short answer: because not everybody is running X on Mac hardware.
Long answer: as much as I would like to use X, the sad truth is that MPW is far superior as a command-line shell than anything else on the known universe. In particular, I rely heavily on it for database development. Also, in my W&B G3 Classic feels much more responsive than X (I haven't tried 10.1 or later, though). MPW + Perl is like a dream environment.
Oh, I forgot: I still have to support legacy Classic applications (mostly, 4th Dimension externals), and I just can't compile and test them under X.
Re:Why the hell would you run it under Classic? (Score:2, Insightful)
Yes. We know. It's a guardian rule of Macintosh computing that we must immediately forsake any one-generation-old version and immediately pitch it all into the landfill.
Re:Why the hell would you run it under Classic? (Score:1)
MacPerl may be needed for pre-X Mac OS, but what's the point of running a port of perl to a legacy environment? The "real" perl runs on Mac OS X without any porting. Why anyone would waste time and resources running it under Classic is beyond me.
The point is people will be using Classic for years. I know musicians who are still running OS 8. Heck, I know schools that are still running System 7.
I have X, but I can't stand using it because:
Just booting into X, I feel like my Mac's turned to molasses. I can do everything I want in 9 more efficiently and faster. I'm a big proponent of the "select an operating system that's STABLE, rather than bleeding edge.... come up with a suite of Pretty Good Software.... Do NOT come back for at least five years" [streettech.com] meme. I hope X does get better, since I do want the power of Unix. I just don't want to make so many sacrifices to get it.
Most advanced? (Score:2, Informative)
"Most advanced" is often the antithesis of "most stable". I'd be a little leery about using it until it's been hammered on a bit.
Re:Most advanced? (Score:2, Informative)
Update (Score:3, Informative)
Highlights In MacPerl 5.6.1 [macperl.org] shows updates include:
Is this relevant? (Score:3, Insightful)
Does anyone out there actually use Mac Perl for major development?
Re:Is this relevant? (Score:5, Informative)
Sure, you can't fork, but that's rarely needed. I do command-line stuff with MacPerl (both via ToolServer in BBEdit and in MPW) often. And I use Mac::Glue to do whatever I might want to do in AppleScript, without AppleScript's performance penalties or horrific syntax.
For example, I have here a little script where MacPerl on my Mac OS box talks to my Mac OS X box and asks iTunes on Mac OS X what track is currently playing, and then it drops that information into my clipboard.
NP: It's Alright For You - The Police (Message In A Box - Disc 1)
Re:Is this relevant? (Score:1)
Re:Is this relevant? (Score:2, Informative)
From my OS X box:
[chrisl:~] lindemer% perl --version
This is perl, v5.6.0 built for darwin
Now, if you're running a process in MacPerl on OS X...you will probably have to deal with timeouts the first run or two. Classic takes a minute or so to launch, and that time can be much more (or less) depending on your hardware and how stripped-down your OS 9 environment is.
Re:Is this relevant? (Score:2, Informative)
Re:Is this relevant? (Score:2)
I thought you hadn't taken the OS X plunge yet?
I still remember with fondness the day I installed MacPerl on my dad's LCIII. Finally I had a machine I could program again! It's hard for me to get through life without the ability to write little programs to answer questions and solve small problems. After I got MacPerl on that machine (1998 I think), I have never used another language to program on the Macintosh again.
My MacPerl use hasn't been as fancy as your examples, perhaps because I've been slowly migrating away from the Mac. (It's a G3, now, but in my lap is a blueberry ibook running Linux. And 5.6.1.)
I remember using MacPerl to make a local mirror of a website once or twice. (Never seen wget for Mac, and besides, it was more fun in Perl.) I also used MacPerl the first time I split up the input data files for one of my websites [goreadthebible.com]. I remember how nice it was to set the creator/type codes on files from within the program.
Considering I rarely write Perl programs that need to fork in UNIX (and I write Perl programs 5+ days a week for a living), it seems strange to me that people can't understand how MacPerl would be useful without forking.
This post not guaranteed to be coherent as I should be in bed right now instead of reading /.
One last thought, upon hitting the preview button. If a person thinks you need to fork subprocesses in Perl all the time, maybe he/she needs to go look at CPAN to see if there's a module to do what they want instead of running a subprocesses. I doubt anyone finds it necessary to fork a Perl program without exec'ing some other program; whatever it is you're going after with system or qx// can probably be gotten cheaper (processing wise) with a module.
Re:Is this relevant? (Score:2)
Re:Is this relevant? (Score:2, Interesting)
No, no, no, no! Please don't inflict upon yourself the pain of having to use AppleScript! Take a look at MPW [apple.com] instead.
Highlights: free (as in beer), integrated shell and text editor, handles very large files (4G), integrated C/C++/Asm for 68k and PPC, batch text editing, standard I/O support, "live" windows tied to the filesystem, Shell language for scripting, can send/receive AppleEvents...
Lowlights: Classic-only, discontinued by Apple.
Re: Is this relevant? (Score:3, Insightful)
In 50 words or less: quite.
I found the inability to fork subprocesses, and the general "anti-command-line" tendencies of applications on the Mac OS, to make Mac Perl's usefullness much diminished compared to traditional unix environments.
Nothing personal but this sentiment just reeks of Geek Tunnel-vision. MacPerl is possibly one of the most powerful, useful tools on the Mac that I have at my disposal in running my company's website. I can't imagine what I'd do without it. Because it doesn't support a few (IMO) esoteric technical issues hardly diminishes its relevance.
Bear in mind that there are Mac-specific libraries distrbuted with MacPerl that interface with the Mac API/Toolbox (I was awestruck when I got my MacPerl script to access the Speech Manager--a talking Perl script. Cool!) Does the lack of those libraries on Unix diminish its usefulness there? I doubt it.
In many respects, I think AppleScript is the more effective scripting language for the classic Mac OS, although certainly it's not as fun or easy to work with as Perl (speaking from experience someone who's worked with both.)
I can speak as someone who's worked with both as well and I find that they naturally lend themselves to different tasks. If you want the ability to manipulate raw data or sift through enormous quantities of information, Perl is hands-down the way to go. If you need a quick script to facilitate interapplication communication, exchange of data between apps, or to automate a program (and especially if you need an application that can communicate with non-geek users via GUI elements) AppleScript is hard to beat since that functionality is built right in, no loading extra libraries which makes for quick and lean scripts. Each has its own strength. I don't think I've ever been in a quandry over which one to use for any given task.
Does anyone out there actually use Mac Perl for major development?
Probably not, but how does that diminish its relevance to those of us who leverage its power on a daily basis to conquer some Herculean tasks? I find this update unexpected, exciting and quite relevant..
--Rick
Perl lead me to linux (Score:3, Informative)
Since OS X has perl, I do my perl development on my Mac again. It's good to see MacPerl being developed, but its usefulness has diminished -- the target audience uses an operating system that is being phased out.
Why doesn't it have a native OSX version? (Score:1, Redundant)
Mac OS X is unix like right? Why doesn't perl run in a non-emulated mode?
Re:Why doesn't it have a native OSX version? (Score:1)
Re:Why doesn't it have a native OSX version? (Score:1)
Re:Why doesn't it have a native OSX version? (Score:2, Informative)
Re:Why doesn't it have a native OSX version? (Score:1, Interesting)
skatters@quarterpounder(~)> perl --version
This is perl, v5.6.0 built for darwin
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.
skatters@quarterpounder(~)>
Re:Why doesn't it have a native OSX version? (Score:2)
--
Damn the Emperor!
MacPerl was ok, before Macs ran Perl (Score:2, Informative)
one might say that with the advent of OS 9, *MacPerl is dying
Why (Score:2, Interesting)
Advantage?? (Score:2, Interesting)
Hence I ask (serious question), is there any reason an OSX user would even consider using MacPerl over a (seemingly more native to OSX) *nix Perl??
Re:Advantage?? (Score:3, Informative)
Re:Advantage?? (Score:1)
I must be missing something here. Why is access to the Mac OS API important from the point of view of Perl? And whatever that brings, is it worth the trouble of running in through the Classic environement (resource and memory usage, etc.) ?
Very efficient, yes...
Re:Advantage?? (Score:1)
WOW!! (Score:3, Funny)
Good lord! The most advanced Perl EVER ?? I'm running out to buy a Mac RIGHT NOW.
I mean, come on guys... I know Mac people are used to being second class citizens as far as getting the latest releases of software, but this is just... embarrassing.
Every once in a while, the Mac community gets something first, and they start crowing like I can't believe. Have some self respect, for god's sake.
Re:WOW!! (Score:5, Funny)
--
Damn the Emperor!
Re:WOW!! (Score:1, Funny)
In fact, we have the most advanced self respect ever!
And more in fact, we invented self respect! Everyone else ripped it off from us, and are just pale imitations!!
Re:WOW!! (Score:2, Funny)
Re:WOW!! (Score:2)
And hey, our self-respect might be expensive, but our self-respect is of a much higher quality than yours!!*
*Except when our self-respect catches on fire and has to be recalled.
Re:WOW!! (Score:2)
Re:WOW!! (Score:1)
We have plenty of self respect. In fact, we have the most advanced self respect ever!
That would be insanely great self respect!
Skewed View IMHO (Score:1)
I get a little upset at people who think that a simple statement of fact like that is crowing.
*Shrug*
Re:Skewed View IMHO (Score:1)
I get a little upset at people who think that a simple statement of fact like that is crowing.
You see, it's not that the original poster dislikes Mac Users, he just dislikes uppity Mac Users.
Perl already on OS X (Score:1, Redundant)
So, unless you need the added functionality of MacPerl, I wouldn't worry about it.
Justin Dubs
Re:Perl already on OS X (Score:1)
Perl + Aqua (Score:3, Interesting)
Re:Perl + Aqua (Score:4, Informative)
BTW, Tk does work on OS X natively now, just via X.
Re:Perl + Aqua (Score:1)
However, some of the glue was pretty good in its own right. I like Shuck, I prefer it to man (or xman) for looking up Perl info.. In fact I've been known to run Shuck while debugging Perl on Solaris boxes.
Likewise, the integration with BBEdit made editing pretty cool. (Although the latest BBEdit under X takes things into its own hands and provides even better features, IMHO...but I digress).
In summary, the MacPerl folk did such a good job that I find I'm missing some of the MacPerl features when I'm running Mac OS X.
What I'd like to see is the power of those tools under Mac OS X---for example, something like AppleScript studio, but with Perl instead, would be really cool.
If MacPerl could give something back to the wider Perl community, that would be really cool.
Re:Perl + Aqua (Score:3, Informative)
Re:Soon to be vaporware (Score:2, Informative)
Vaporware is software or hardware that is either (1) announced or mentioned publicly in order to influence customers to defer
buying competitors' products or (2) late being delivered for whatever reason. Most computer companies have from time to time
delivered vaporware, either by calculation or unintentionally.
Re:Soon to be vaporware (Score:1)
Verision of Perl (Score:1, Interesting)
YAY! Cause Applescript SUCKS! (Score:2, Interesting)
This is great news. When I was writing automated backup scripts for our office macs, I turned to the old release of MacPERL after learning what a convoluted piece of garbage AppleScript was...
Congratulations to the MacPERL people
pre g3 groundlings (Score:1)
I've seen a bunch of posts asking why... (Score:4, Interesting)
Re:I've seen a bunch of posts asking why... (Score:1)
Re:I've seen a bunch of posts asking why... (Score:1)
Re:I've seen a bunch of posts asking why... (Score:1)
There may be plenty of other reasons not to use OS X in your workflow depending on what apps you normally use, but if the only thing holding you back is because you don't think it will perform well on an iBook, you'd be surprised.
Re:I've seen a bunch of posts asking why... (Score:2)
The only thing it needed to run OS X acceptably was a bump in RAM (to 256meg), and to upgrade the hard disk on it to 20gig.
Re:I've seen a bunch of posts asking why... (Score:1)
It's about time! (Score:3, Informative)
<plug>This is great news for Ethernet MP3 player [slimdevices.com]
The open development team behind the SliMP3 has created one of largest Perl programs in history. We've always ensured that the software is easy to install, and supports as many platforms as possible. That means we have to do certain things like avoiding fork(), and making sure that the Time::HiRes module is available with the distribution, pre-compiled for many architectures. We also deal with the path name differences between Windows and Unix. Those are the main differences - there are about a half dozen other little things, but all in all Perl is a great language and runs well on all platforms.
Version 1.0 of our software *was* compatible with MacOS9. We dropped support for OS9 after that, due to the numerous limitations and problems with the outdated MacPerl. OSX has never been a problem, because it's just Unix and it comes with Perl 5.6.1.
However, now that MacPerl 5.6.1 is available, there is a good chance that we'll be able to get the product working on MacOS Classic again. I am starting work on it today!
Hooray for the MacPerl team!
5.7 (Score:3, Informative)
Surely you mean this is the most advanced release of perl ever for the Mac, as the developer's release is at 5.7.3.
Re:5.7 (Score:2, Informative)
Also, note that 5.6.1 is the current stable version, while 5.7.3 is the current unstable branch. Obviously .7.3 is a higher value, but it's still considered an experimental code branch. You can't take a jab at MacPerl for just switching to 5.6.1 unless you also want to take a jab at RedHat, who also made the upgrade to 5.6.1 this week. Upgrading MacPerl to 5.7.3 might not be worth the effort, as 5.8.0 is scheduled to come out this spring (and we're likely to see several more 5.7.n releases between now and then). If 5.8 comes out and MacPerl doesn't keep up, *then* you can complain, but for now MacPerl has (finally!) reached Parity with the main branch.
Re:5.7 (Score:2)
So anyway, I don't consider porting or upgrading MacPerl to 5.7.3 to be interesting; when I am working on MacPerl with the current development branch, it is to whatever the latest source is; before perl 5.7.3 was even announced, it was already older than the source I'd be working from. So I work from the development source, not any particular version of it.
MacPerl 5.8 *will* come out later than 5.8, and maybe even by a few months. The two biggest obstacles I see are just porting any new code (hopefully minimal, although there are a handful of new modules, although *most* of the new modules in 5.8 are already in MacPerl!) and testing. The test suite has been totally overhauled, and I'd like to make sure all the tests pass as much as possible before releasing, which means porting any part of the test suite that need porting. Michael Schwern has done a lot of work on this, so hopefully I'll get to hug him for the great work he's done instead of punching him inna nose for making my life more difficult.
Plus, we might want to add some new features to MacPerl itself, like a new and updated built-in editor and some other shiny things. I might want to get those to work simultaneously with getting the other stuff done, and test them in the regular beta cycle with everything else.
HOWEVER
So you want MacPerl 5.7.3? Go build it!
Re:5.7 (Score:1)
Thank you very much for the work and the updates!!
Check out my URL. Perl and your tax $s at work.
Re:5.7 (Score:2)
HOWEVER ... if you want, you can just download the source and tools and build your own MacPerl 5.8.0. You can, today, download the source
and build your own MacPerl 5.7.3!
For anyone wondering what the big deal is with MacPerl 5.6.1, this is one of the biggest items! In the old days if you wanted to build MacPerl you needed proprietary tools, special changes to the source, and a lot of patience. I didn't have any of those, so I never did it. (Hmmm... thinking back to the three virtues of a programmer...)
Now Perl builds with Apple's (free) tools, right? So, I could go build my own if I don't like the binary. Or if I just enjoy building software. Which I do. Or, realistically, it means the bar is lowered and everyone can get in on the development, as pudge said, and compile their own MacPerl 5.[678].x
One of my upcoming projects this year may involve porting a certain free program to Macintosh (not OS X). This program has no Perl involved at all :( , but when I need to know how to compile something on the Mac, MacPerl is where I'll look for educational examples.
Sorry, But I'm Very Disappointed in MacPerl (Score:1)
I have to say that I'm very disappointed in MacPerl.
MacPerl was the first tool I used to write MacOS (<10) apps, and I used it a lot to build applications written in Perl that used native Mac widgets/dialogs and did lots of cool regexp stuff (IMHO, always the biggest reason for using Perl) that would have been much slower to develop with other languages. I've been a longtime BSD user, and MacPerl was a fantastic tool under MacOS 8-9.
However - and please PLEASE development folks forgive me if I'm wrong or mischaracterizing this - as I followed the MacPerl mailing list and more and more people asked about OS X, the answer seemed to be, "that would be a huge amount of work, we're not using it, and that's just not something we're prepared to do."
That's certainly fair - I can't complain since I haven't contributed any work towards porting MacPerl to OS X. I don't know C++ and I'm not a good enought programmer to pick up Objective C quickly, which is both the reason I haven't worked on Carbonizing MacPerl or porting a version to Cocoa, as well as much of why I was using MacPerl in the first place. BUT it unfortunately removes my primary reason for using MacPerl, which was creating native apps using Perl. Of course, I can still create command-line-based apps using the standard *nix Perl that is part of MacOS X. But I can no longer use it to create native apps (to OS X; I no longer automatically launch the Classic environment, since I have the Photoshop 7 beta and the only Classic apps I use anymore are older games), which was my main reason for using MacPerl.
Again, I have no real right to complain, since I haven't done any work to fix this. But I really do wish that MacPerl's maintainers had been "on board" about migrating to the MacOS's best hope for catching up and beating the alternatives, OS X. Right now, the only alternative is OSXMacPerl 0.2 [versiontracker.com], a Perl module that implements some of its important features (like DoAppleScript) but leaves out most of MacPerl's abilities to create real native Mac apps with native widgets, dialogs, etc.
I love the Mac, but I'm firmly convinced that the future is OS X, and thinking otherwise (there will be plenty of pre-OS X Macs around for a long time, but I'm talking about what we must do to advance and evolve) is just hiding your head in the sand. I'm just hoping that at some point either the current MacPerl developers (or a new group of developers) come in with enough interest to make MacPerl native to OS X. I'll still use Perl, and I'll still use Mac OS X; but it would be so nice to see them really merged, the way that MacPerl once did.
Re:Sorry, But I'm Very Disappointed in MacPerl (Score:2)
What you want is not a ported MacPerl, it is access to the Carbon API from perl on Mac OS X. Those are two different things. And in your post you presume unreasonable presumptions about this. As you clearly don't understand quite a few things, perhaps you should ask questions -- and heck, even read the existing responses that answer many of the questions you should be asking -- instead of making such presumptions.
(It's odd you say you can't complain, and then you complain
Some things you got wrong: as noted, there is no reason to Carbonize MacPerl. Further, there is no such possible thing as a port to Cocoa. The MacPerl access to the Mac OS API is based on Carbon; anything related to Cocoa wouldn't be a port, it would be a separate project. There are also several other alternatives beside OSXMacPerl, including, as noted in other posts, a project I am involved in to provide the Carbon API, which would work in both Mac OS and Mac OS X. Some of the alternatives even have working code that you could use today.
You also presume that my time would be better spent on Mac OS X, that I am "hiding my head in the sand." This is, as a point of fact, completely false. I don't use Mac OS X regularly, and won't use it regularly for the forseeable future. I am, and will continue to be, far more efficient using Mac OS than Mac OS X, and until that changes, cannot consider moving to Mac OS X a viable option. In light of that fact, it is somewhat amazing that I have actually spent as much time on Mac OS X as I have, doing some of the things you say I've not been doing. But the main point is that it is unreasonable for me to spend the majority of my spare time developing for a platform that I won't be using regularly any time soon. My time is mine, and I cannot fathom why anyone would gripe about how I use it.
MacPerl is a good thing (Score:1)
And really, depending on what/how you write perl, you can do a hell of a lot with MacPerl on a daily basis. (Thanks pudge!)
Re:"so MacPerl is the most advanced release of per (Score:1)
> "so MacPerl is the most advanced release of perl ever "
>
> Why do Apple zealots always need to pomp and boast and stuff?
Hey, don't blame us Apple zealots for the words of the MacPerl zealots. Proper Apple zealots know that if they wanted to claim "most advanced release", they should have carbonized it.
As for the rest of us, maybe we boast because we finally have something worth shouting about. OS X is beautiful and powerful, yet still compassionate towards the user. It inspires happiness and hope, maybe even excitement. We finally have a viable modern alternative to hordes of beige boxes dominated by an evil monopoly.
> I remember there was an interval of time when IE for the Mac was the
> 'best ever version'. I remember when the version of Microsoft Office
> happened to be the 'newest version available.'
Um, that "Apple zealot" was Microsoft. We are not responsible for the mutterings of the Evil Empire's marketing department.
> The only reason I remember crap like this is Mac Zealots are SO
> intent on wheezing on whenever there is any slight, largely
> irrelevant 'lead' that they have taken.
So I guess this means hearing that the new iMac is the top selling computer on Amazon ever is not going to really impress you, huh?
> Is there a particular class of zealot drawn especially to the Apple line
> of computers? What disorder draws them so heartily?
You'll have to ask my friend. He's been involved with Macs for a lot longer (since 1993's "Godzilla vs. Mecha Godzilla 2"), and is much larger...
Windows: "Go talk to my friend, an 800 pound monopoly-abusing gorilla!"
Mac: "And here's my good buddy, the 66,000 ton Godzilla!"
Godzilla: Stomp!