Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: An Epiphony

by Logicus
on Aug 01, 2011 at 03:16 UTC ( #917745=note: print w/ replies, xml ) Need Help??


in reply to Re: An Epiphony
in thread An Epiphony

No one fell for anything last time... that construct is a real pain in the arse, but useful in certain circumstances... It has a meaning and it is valid aXML, but I just can't quite find a way to express it's structure in either standard XML, perl hashrefs/tables or any other existing structure that I am aware of.

I guess you could term it something like an anonymous node, as in you cannot know prior to runtime what the name of the node is, only that it exists and is defined by the result of computing its constituent nodes, and that really screws up every method I have tried on the problem so far.


Comment on Re^2: An Epiphony
Re^3: An Epiphony
by ysth (Canon) on Aug 01, 2011 at 03:47 UTC
    I don't get why you have an intermediate XML phase; seems like it offers nothing beyond what a custom parse tree would except a lot of pain and headache. FWIW, Template Toolkit has had good success with "compiling" templates to perl subs, then caching those subs (in memory, not on disk).
    --
    A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| |
    Online Fortune Cookie Search

      They will be cached in memory as part of the persistant mod_perl2 process. I'm currently playing with ModPerl::Registry and the results are looking promising.

      The first time one of the action files is accessed there will be a one off overhead to convert it to a perl module, after which perl itself will do the compiling, there is no need to write a compiler on top of the compiler.

      As for having the aXML layer, it's part of the aims of the project to be ultra easy for non-programmers to download it and setup their own copies of a site I'm working on, a sort of P2P free speech social network, extending and customising it as they wish. Thus once the system is working to the sort of speeds that others are pulling out of perl, what you will have is a completely flexible, customisable and extendable mod_perl2 based system, ready out of the box with all the mod_perl2 goodies. No custom templating system or language to learn, just perl and the aXML files which in effect are a convoluted configuration file set directing the perl modules underneath.

      Trust me, it rocks... I've been playing around with aXML for years now and once I have overcome the remaining design obsitcals and release the next version with requisite documentation, people will start to see that there is indeed method in my madness afterall.

      Ps. sorry if there are any typos in the above I'm using my laptop in Doha airport waiting for my connection and I've been awake for nearly 23 hours now, with another 7 hour flight and a 2 hour car journey still to go. and I really can't be bothered using the touchpad to click on the red wavy lines when you can just use your powerful quantum supercomputer (human brain) to figure out what the hell I'm on about.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://917745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-07-12 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls