Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4037 invoked from network); 30 Sep 2014 22:34:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Sep 2014 22:34:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:54923] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/71-30671-7003B245 for ; Tue, 30 Sep 2014 18:34:48 -0400 Received: by mail-wi0-f175.google.com with SMTP id d1so113541wiv.8 for ; Tue, 30 Sep 2014 15:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Xzs43nAem85GRppqVMWbqrLFdbBmODCfs3S0lNgdKcE=; b=RGX02PGbZ+IsYHr0kQsDoPHJMAlAqYqCo2kob+mBLW1AzEC94ucFRjh/Jt0IMcOX0P keE701iHu+GlhFU2z4R+ewOhs56HDFUEDYDuu0s67/fDKo29tdWQ1HoD600GpsgskgxG ak7194GJTx58dyDuV+MZaZfU+CkfFP5upS1TClIO18Kx8ewiO85d4FAktZ9oFcMn+Ws0 mOLKSzNXip4QZhh70OA3vkoSnIl11/jji0ajnQdaAahaEtV94EWEGV3wpvpawyYDtCb4 aYNzzZ3lD0CQYhjEwWfgJMyavtgP+QYSZK1E0dyJhQcvmvYqCMb6Ue5HAckZU9+9oE9L sCHg== MIME-Version: 1.0 X-Received: by 10.194.71.195 with SMTP id x3mr18061734wju.27.1412116484582; Tue, 30 Sep 2014 15:34:44 -0700 (PDT) Received: by 10.27.10.79 with HTTP; Tue, 30 Sep 2014 15:34:44 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Oct 2014 00:34:44 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=047d7bfd0bc671f31f05044ffdcc Subject: Re: Remove generated lexers from git? From: nikita.ppv@gmail.com (Nikita Popov) --047d7bfd0bc671f31f05044ffdcc Content-Type: text/plain; charset=UTF-8 On Tue, Aug 26, 2014 at 9:55 PM, Nikita Popov wrote: > Hi internals! > > Currently our git repo contains files like zend_language_scanner.c, > zend_ini_scanner.c, etc which are files generated by re2c. Historically > these files have been included because re2c was not readily available on > many platforms. In the thread on bison 3 compatibility [1] there was some > discussion as to whether this limitation still applies. Quoting Adam Harvey: > > > +1. I don't think re2c is that onerous a requirement anyway, for the > > most part: it's available through apt-get, brew, yum, and probably > > most other packaging systems. Given the amount of other things a > > developer has to install to build php-src from git, re2c is hardly > > going to break the camel's back. > > So, I'd like to bring this up again. Are there any objections to removing > generated lexer files from the repo? If not, does it suffice to just git rm > them and add them to .gitignore, or are other changes required? > > Nikita > > [1]: http://markmail.org/message/x3p7ltekzws6ywhw > I'd like to bring this up again. It seems the thread got side-tracked with unrelated discussion (about vm_execute.h) and I didn't get any answers to the original question. Case in point: The current zend_language_scanner.c has been generated by Andrea, who uses a different re2c version from everybody else (0.13.6 instead of 0.13.5). This means that if I do some tiny change to zend_language_scanner.l I immediately get a 3000 line diff. So we just end up changing this file back and forth depending on the algorithm used by different versions. Nikita --047d7bfd0bc671f31f05044ffdcc--