Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80416 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9487 invoked from network); 12 Jan 2015 12:38:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2015 12:38:25 -0000 Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:35372] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/60-04585-F30C3B45 for ; Mon, 12 Jan 2015 07:38:24 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id CA3524B01FF; Mon, 12 Jan 2015 13:36:10 +0100 (CET) Reply-To: To: "'Pierre Joye'" Cc: "'PHP internals'" , "'Stas Malyshev'" , "'Sara Golemon'" References: <54B1AA31.6050703@gmail.com> <003901d02de5$53732480$fa596d80$@tekwire.net> <005a01d02e1a$02d27a00$08776e00$@tekwire.net> In-Reply-To: Date: Mon, 12 Jan 2015 13:38:13 +0100 Message-ID: <008e01d02e64$a201ab10$e6050130$@tekwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHdpO6kBDBjSAQ05ND+I0bfKmNeFQIeJCUTAflXB0ABzhWVuwG23BUcAlMscacBvL1qjQGwIMvCnDaZS+A= Content-Language: fr X-Antivirus: avast! (VPS 150112-0, 12/01/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] One API to rule them all? (Was: Extension Prepend Files) From: francois@tekwire.net (=?UTF-8?Q?Fran=C3=A7ois_Laupretre?=) De : Pierre Joye [mailto:pierre.php@gmail.com]=20 Also I am really not a fan of yaml&co to generate C code but having = critical parts in C and everything else in straight php :) I don't use yaml to generate C, just to define metadata, like extension = name, arguments/return value characteristics, etc. The glue C code is = then generated from this metadata. A constant definition, for instance, defines a name, a type, and a = value. This definition will be given in yaml or json. That's all it is = used for. The user writes the function body (between arg parsing and = return value) in C. PHP is fine but defining a tree of metadata in json or yaml is really = easier than writing nested array statements. Regards Fran=C3=A7ois