Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41034 invoked from network); 25 Mar 2014 14:22:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2014 14:22:52 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.10.56 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.10.56 host1.ip6-networks.net Received: from [95.130.10.56] ([95.130.10.56:48372] helo=host1.ip6-networks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/22-29088-A3191335 for ; Tue, 25 Mar 2014 09:22:51 -0500 Received: from Hwhost2.local (184-175.106-92.cust.bluewin.ch [92.106.175.184]) by host1.ip6-networks.net (Postfix) with ESMTPSA id C5C4060821 for ; Tue, 25 Mar 2014 15:22:46 +0100 (CET) Message-ID: <53319135.1020700@hoa-project.net> Date: Tue, 25 Mar 2014 15:22:45 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:30.0) Gecko/20100101 Thunderbird/30.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: <532FF7B9.5040700@hoa-project.net> <5330582B.1020604@hoa-project.net> <5330661B.80202@garfieldtech.com> <5330E334.7060109@gmail.com> <53313EE6.4000806@hoa-project.net> <4ED7146272E04A47B986ED49E771E347BBCC82F0D3@Ikarus.ameusgmbh.intern> In-Reply-To: <4ED7146272E04A47B986ED49E771E347BBCC82F0D3@Ikarus.ameusgmbh.intern> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP Specification From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 25/03/2014 14:16, Christian Stoller wrote: >> On 25/03/2014, at 7:31 PM, Ivan Enderlin @ Hoa wrote: >> >>> I am not sure to understand your proposal well, but instead of producing >>> a full complete specification at first, we should focus on important >>> features than other implementations do not support. Typically, the fact >>> the `php` binary reads from its stdin is missing most of the time. >>> >>> I imagine to start the specification at different levels: >>> >>> * the syntax, which is not easy since PHP grammars is ambigious >>> but it's feasible in a reasonable time, >>> * the semantics, very very important, it will describe how data are >>> represented, objects etc., how they behaves, it will clarify a lot of things >>> * the tool, i.e. the PHP architecture through SAPI, one of the most clever feature of PHP, >>> * the extension, how are they split in different directories, how >>> to load them etc. (still from the user point of view) >>> * then the standard library, which includes ext/core, ext/standard, ext/stream etc. >>> >>> The goal is not, at first, to specify the behavior of all functions. >>> This would be totally crazy. PHP has a big tests suite to check >>> that. Before, the most important thing (for me) is to specify the >>> langage (syntax, semantics and tool). This is a good start and a nice >>> task since types, auto-boxing, generators etc., will be described in those parts. >>> >> I don't think the SAPI and extension parts should be part of a language >> specification. To me, those are implementation concerns. >> >> Language should be concerned with syntax, semantics and standard libraries. >> >> Cheers, >> David > Maybe it's a stupid question, but putting the current documentation into a proper format wouldn't it be a specification of the PHP language? Maybe not a complete specification and with some overhead, but it would provide all information for third party implementations, or not? Nop :-). We have already answered to this question in this thread :-). -- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/