Search the web
Sign In
New User? Sign Up
snobol
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
SNOBOL at YAPC, the Perl conference   Message List  
Reply | Forward Message #828 of 883 |
Re: [snobol] Re: SNOBOL at YAPC, the Perl conference


-
--- On Sun, 6/28/09, aksjghkajshd <scott@...> wrote: ...snip...
-
> > ... ?Are you _actually_ Scott Walters? No surprise if "yes"...
-
> Yes, I'm Scott Walters. Or SWALTERS on CPAN.
-
Figured as much, from your knowledge & informed comments about Perl...

[big snip]

> But this brings up another problem with translation. .. XS.
> Most Perl modules are written entirely in Perl, but many,
> including many of the most useful ones, are partially
> implemented in C. This includes but isn't limited to bindings
> to system libraries.
-
I did _not_ know this: The source of the CPAN modules I've inspected before
using (if for anything _more_ than just a one-shot utility) have been Perl-only.
No C code or calls to XS. It sounds like beginner's dumb luck.


> Those "XS" modules rely on details of Perl 5 internals that
> need to change and cannot easily be translated.
-
Ugh! This is truly a _terrible_ practice!

While it may have seemed quite clever at one time (? *long* in the distant past
?), this innovation which will certainly remain an implementation plague
forever, if not longer.

BTW: This is _exactly_ why API's were created. I recently gave an invited talk
on "The asset value of a good API", in which I lift several good examples
from...:
+
http://tinyurl.com/nbhhuk <---<<


> The XS interface has held back core Perl 5 cleanups and
> prevented Perl 5's growth. It's something of a paradox.
> Getting rid of it means breaking half of CPAN but keeping
> it means no future growth for Perl. Breaking the XS interface
> is perhaps more of a radical step for Perl going from 5 to 6
> than changing the language's syntax.
-
This explanation is extremely helpful.

However, it eliminates a potential way to obviate the "CPAN for Parrot" problem.
Namely, it seemed like a way that the problem could be avoided -- but _not_
solved -- via a Perl _5_ implementation for the Parrot VM.

It seems that this is a clever -- and _failed_ -- _modus_vivendi_
<< http://tinyurl.com/nzrv8b >> , for at least two reasons...:

1. There is currently no C compiler "in the works" for the Parrot VM,
&
2. Making the XS interface work compatibly -- after the internal
offsets had been altered -- would likely be a nontrivial repair job.
<sigh>
This is a thorny and real-world problem...

Thanks, Scott! Mike
-
-
-=[eot]=-
-
-








Mon Jun 29, 2009 3:15 am

mikeradow
Online Now Online Now
Send Email Send Email

Forward
Message #828 of 883 |
Expand Messages Author Sort by Date

http://yapc10.org/yn2009/talk/1988 I really wanted to but I failed to make it to this talk. Three days is too few. I wind up averaging 2 or 3 hours of sleep...
aksjghkajshd
Offline Send Email
Jun 25, 2009
8:18 pm

I'm interested what "one" feature of SNOBOL supposedly isn't in Perl... My suspicion is that there is a lot more than that, including things like user-defined...
Gordon Peterson
gep_2
Online Now Send Email
Jun 25, 2009
11:06 pm

On Thu, Jun 25, 2009 at 4:06 PM, Gordon Peterson<gep2@...> wrote: [snip] ... Perl has an object system, which is how a Perl programmer would ...
Andru Luvisi
glomek
Offline Send Email
Jun 26, 2009
12:01 am

Well, one of the great things about S'BOL is the comparatively simple, regular, orthogonal structure and syntax, which makes S'BOL so comparatively ...
Gordon Peterson
gep_2
Online Now Send Email
Jun 26, 2009
5:14 am

... Don't preach to the choir... take the message to the streets! There used to be a newsletter circulating not long ago with clever SNOBOL and applications...
aksjghkajshd
Offline Send Email
Jun 26, 2009
9:41 pm

... I don't consider it particularly "interesting" to do anything to support Perl, not even in a left-handed way. If you actually start trying to do that,...
Gordon Peterson
gep_2
Online Now Send Email
Jun 27, 2009
4:00 am

Hi Gordon, et al. I had to reply to this for i have been a long lover of Snobol/Spitbol and it pains no one more than me that it has not garnered the praise...
Russell Urquhart
russurquhart1
Offline Send Email
Jun 26, 2009
12:22 pm

... I don't follow the Python and Ruby communities very closely, but this "especially Perl" intrigues me. I sent over links to two talks at Perl cons about...
aksjghkajshd
Offline Send Email
Jun 26, 2009
9:08 pm

... Well, the feature in question was user defined operators, something that Perl users would *love* to have and talk about often. I know there's more than one...
aksjghkajshd
Offline Send Email
Jun 26, 2009
3:43 pm

- ... - ... - Nicely put & I concur 100%. The result, after more than a decade of users' contributions, is a *huge* and accessible repository. + It is called...
mikeradow@...
mikeradow
Online Now Send Email
Jun 28, 2009
2:33 am

A few quick reactions.... 1) the same inter-operability would seem to apply to .NET-compatible languages. And (at least initially) there are probably more of...
Gordon Peterson
gep_2
Online Now Send Email
Jun 28, 2009
2:55 am

... http://pmichaud.com/2009/pres/ has some good talks on getting started with PGE, the Parrot Grammar Engine, and the other tools for bootstrapping languages...
aksjghkajshd
Offline Send Email
Jun 28, 2009
3:23 am

- ... - ... - I'll _support_ anything that makes life easier! The magnitude of projects like Parrot (and Mono and Portable, too) makes it remarkable that a...
Mike Radow
mikeradow
Online Now Send Email
Jun 28, 2009
4:35 am

... Yes, I'm Scott Walters. Or SWALTERS on CPAN. I have a strong typing (C++ or Java style types) implementation for Perl, among other things. Yahoo! was...
aksjghkajshd
Offline Send Email
Jun 28, 2009
7:43 am

FWIW, it is my understanding that the Ada routines for pattern matching implement a subset of full SNOBOL pattern matching capabilities, and even that with...
Gordon Peterson
gep_2
Online Now Send Email
Jun 29, 2009
4:30 am

... My Python package depends on my C translation of the Ada routines, which could be embedded into Perl as well, by writing "XS" g(l)ue (or any other means of...
Phil Budne
pbudne2
Offline Send Email
Jul 1, 2009
1:47 pm

- ... - ... - ... - Figured as much, from your knowledge & informed comments about Perl... [big snip] ... - I did _not_ know this: The source of the CPAN...
Mike Radow
mikeradow
Online Now Send Email
Jun 29, 2009
3:16 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help