Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30548 invoked from network); 9 Feb 2015 20:12:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 20:12:30 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.174 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.223.174 mail-ie0-f174.google.com Received: from [209.85.223.174] ([209.85.223.174:38405] helo=mail-ie0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/A6-25034-CA419D45 for ; Mon, 09 Feb 2015 15:12:29 -0500 Received: by iecrd18 with SMTP id rd18so7358543iec.5 for ; Mon, 09 Feb 2015 12:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=jvgDVK/jxxCRtG8Tq/013oE/RG2kmsEB6kGTktugnqA=; b=JRvmAvu23nzxLgC+hG4dkIYkuoXJ6soRIvMEePhbb94fMViUsS7LTtO8xsRjZosFYq NwJnp+nOR5HJHe0JH2fKU3GLO8qIG2OdrnQXNvBN4fS56+u7NgEuCyJ/0+xpZk0KaJQ9 bMUm/4bO0juIZCYya11iWg4Cv9Y8cokGxOcAmP1j0kU+lGCWftyEn3Dldk9ZTvB06kYp qx5jl/eamTVUSIHubTa8xmu/dtVQjLON3lwIIqkG4u7YoyrXXCaSMtyhJiR2aPuGqMXn Y0auqHighBhIkqAcMDGuWHvZTUnz+r+CXsKJVehE1VeemAUtWN5f0OKX+qf3w5SmaFrn k4oA== MIME-Version: 1.0 X-Received: by 10.50.137.99 with SMTP id qh3mr19455008igb.9.1423512746123; Mon, 09 Feb 2015 12:12:26 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.107.169.216 with HTTP; Mon, 9 Feb 2015 12:12:26 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Feb 2015 20:12:26 +0000 X-Google-Sender-Auth: 4aV_ho8sq3T8fXIaiDH7MMFUGDI Message-ID: To: Nikita Popov Cc: Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=001a11c3bcbc90eae1050ead6341 Subject: Re: [PHP-DEV] new json, push generated file? From: bukka@php.net (Jakub Zelenka) --001a11c3bcbc90eae1050ead6341 Content-Type: text/plain; charset=UTF-8 On Mon, Feb 9, 2015 at 7:22 PM, Nikita Popov wrote: > On Mon, Feb 9, 2015 at 3:40 AM, Pierre Joye wrote: > >> hi, >> >> Should we push json_parser.tab.c? Which is generated (re2c), just like >> what is done in date or other? >> > > We do not include bison generated files in the git repo, because bison is > already a dependency for building PHP from git. We only include re2c > generated files. Please keep it that way. > > Nikita > re2c is dependency for building PHP as well so that's really not the reason, is it? :) My point here is that I would like to use a new re2c (I'd really love to use native utf-8 ranges implemented in 0.13.7) and possibly some bison features (cleaner definitions, nicer %empty rules - that's not of course necessary but the parser would look nicer :) ). It would be great if I could have a finer control of the used version for both tools as it's also critical for perf testing. If you look to my PR, it eliminates user dependency on the increased re2c version and the same could be used for bison. There won't be any git conflicts as well... That would be a bit more complicated in the config.m4 if I had to generate bison files and ignore re2c. The reason is is a single Makefile.frag that would have to be split which would mean bigger changes to the build system. Is there actually any reason why it is better not to have both json generated files in the repo? Cheers Jakub --001a11c3bcbc90eae1050ead6341--