There is a PHP extension for YAML called Syck. Can't remember whether the 
author had managed to put it in PECL or not (I don't think so). If an extension 
were needed they have done a lot of work in the area already.

P
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


----- Original Message ----
From: Andi Gutmans <[EMAIL PROTECTED]>
To: Shahar Evron <[EMAIL PROTECTED]>; Pádraic Brady <[EMAIL PROTECTED]>
Cc: Zend Framework General <[email protected]>
Sent: Thursday, June 21, 2007 3:44:06 PM
Subject: RE: [fw-general] Zend Framework Cli Tool

That's definitely something to keep in mind as it doesn't have a native 
implementation in PHP. Could be that might end up being the conclusion (i.e. 
implementing an ext/yaml).

> -----Original Message-----
> From: Shahar Evron 
> Sent: Thursday, June 21, 2007 4:58 AM
> To: Pádraic Brady
> Cc: Andi Gutmans; Zend Framework General
> Subject: Re: [fw-general] Zend Framework Cli Tool
> 
> I have some bad experience with the Spyc parser Symfony uses 
> for YAML, namely having to raise my memory_limit to more than 
> 128mb to get it working with some YAML files. 
> 
> I haven't dug into it's code, but thinking that Symfony 
> sometimes uses it on-line (and not only for CLI), got me kind 
> of scared. 
> 
> I think that while YAML is nice and easy to read/write (for 
> humans), there is only that much you can go for your lazy 
> users - and while I hate writing XML, I see it as a much 
> better option for configuration files (for now) because PHP 
> has native, super-fast parsing abilities for it. Writing a 
> parser for YAML or any other format in PHP will have major 
> performance drawbacks any way you put it. 
> 
> Unless YAML language and configuration files are translated 
> off-line into some kind of faster format (XML or even better, 
> PHP code) I won't use them in production.
> 
> Then again, that doesn't mean it shouldn't be an option ;)
> 
> Shahar.
> 
> 
> 
> On Wed, 2007-06-20 at 15:40 -0700, Pádraic Brady wrote:
> > I think a little code generation can go a long way. It 
> really does get 
> > kind of repetitive having to setup a base application scaffold for 
> > each new project unless you sit down and create a standard scaffold 
> > which you reuse everywhere.
> > 
> > I put a YAML proposal in the wiki a while back. There's some code 
> > attached but its non-functional until I refactor some of the 
> > offsetting in the Parser class so the lexer can have its fun.
> > 
> > I think Yaml is an interesting format but it depends on what it's 
> > needed for. Supporting a subset of the format is a lot faster than 
> > supporting the whole spec (requires far less parsing). The current 
> > proposal is for the entire spec (excluding Unicode support for the 
> > moment), with an option for an alternative subset for those files 
> > which don't need the whole sledgehammer. I believe people only ever 
> > need a subset anyway unless doing really complex stuff. It 
> takes just 
> > a single class for a subset, but a proper parser to be completely 
> > certain of the entire specification details.
> > 
> > Regards,
> > Paddy
> >  
> > Pádraic Brady
> > http://blog.astrumfutura.com
> > http://www.patternsforphp.com
> > 
> > 
> > ----- Original Message ----
> > From: Andi Gutmans <[EMAIL PROTECTED]>
> > To: unknownman <[EMAIL PROTECTED]>; 
> > [email protected]
> > Sent: Wednesday, June 20, 2007 10:34:33 PM
> > Subject: RE: [fw-general] Zend Framework Cli Tool
> > 
> > Btw, if you're already on the topic of XML. One of the 
> things we were 
> > thinking of doing post 1.0 is also adding YAML support to 
> ZF and then 
> > integrating the various components like Zend_Config & 
> Zend_Translate 
> > with it to provide the choice of the various formats to ZF users.
> > Not sure what format would be most suitable for such a tool 
> but it's 
> > something for you to also consider longer term. Or maybe you just 
> > support Zend_Config and it'll work with whatever back-end there is.
> > 
> > Andi
> > 
> > 
> > > -----Original Message-----
> > > From: unknownman [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, June 20, 2007 2:21 PM
> > > To: [email protected]
> > > Subject: Re: [fw-general] Zend Framework Cli Tool
> > > 
> > > 
> > > yeah , i believe that ZF isnt symphony but in this shell 
> code i want 
> > > to use an xml file that generate application schematic, note that 
> > > these scripts isnt for generating new project, i want to add some 
> > > feature like scaffold in rails to it.
> > > 
> > > Andries Seutens wrote:
> > > > 
> > > > 
> > > > unknownman schreef:
> > > >> nice work but i think that like this community must be a
> > community
> > > >> for discussion about needed tools
> > > >>
> > > >>
> > > >> Nico Edtinger-2 wrote:
> > > >>   
> > > >>> Hi unknown man!
> > > >>>
> > > >>> [20.06.2007 12:35] unknownman wrote:
> > > >>>     
> > > >>>> one of the great tool for rails is the its great script
> > > directory
> > > >>>> that you can make big project in a minute
> > > >>>>       
> > > >>> There's something like this in lab called Primitus (FKA
> > ZFApp):  
> > > >>> 
> > > 
> http://framework.zend.com/fisheye/browse/Zend_Framework_Laboratory/
> > > >>> Primitus
> > > >>>
> > > >>> But it seems like it needs an update.
> > > >>>
> > > >>> nico
> > > >>>     
> > > > 
> > > > I'm not a fan of these auto code generation tools, remeber the
> > Zend
> > > > Framework isn't Symfony ...
> > > > 
> > > > I have recently published a small article to get you
> > > started on the ZF. 
> > > > There's a modular and conventional "app" available at:
> > > > 
> > > > 
> > >
> > 
> http://andries.systray.be/blog/2007/06/18/zend-framework-just-get-me-s
> > > > tarted-okay/
> > > > 
> > > > Best,
> > > > 
> > > > --
> > > > Andries Seutens
> > > > http://andries.systray.be
> > > > 
> > > > 
> > > > Gecontroleerd op virussen door de JOJO Secure Gateway.
> > > > 
> > > > 
> > > 
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/Zend-Framework-Cli-Tool-tf3951538s16154.
> > html#a11222462
> > > Sent from the Zend Framework mailing list archive at Nabble.com.
> > > 
> > > 
> > 
> > 
> > 
> > 
> > 
> > 
> ______________________________________________________________________
> > Need a vacation? Get great deals to amazing places on 
> Yahoo! Travel. 
> --
> Shahar Evron [EMAIL PROTECTED]
> Technical Consultant
> Zend Technologies
> 
> Mobile: +972 54 30 99 446
> Office: +972  3 75 39 500 ext. 9546
> 
> 







       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

Reply via email to