Andy,
Yes, I'm coming around to this way of thinking. It makes a lot of sense.
Cool; thanx. :)
It's a bitchy job :-(
In Perl, tied hashes and arrays behave more-or-less just like regular ones
because the magic is hidden. But at the XS layer you have to code the magic
yourself. From what I recall of last time I looked into it, it all gets
messy very quickly.
Having said that, adding Stephen's fallback checks to the XS Stash
turned out to be relatively painless. I'd forgotten how much I enjoy
writing C. It's just the Perl XS layer and all that worrying about
reference counting that takes the fun out of it. I'm taking another
look...
Well, if it's too evil, it's too evil. I dunno how much slower the non-XS stuff is, realistically. Maybe I'd never
even notice. (Is there a benchmark somewhere?)
You enjoy writing C? <s> Man, I don't know if I could ever go back. I graduated from C to C++ many years ago, and then
I graduated from C++ to Perl. I think at this point going back to writing C would just be too painful, for me at least. :-)
-- Buddy
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates