From owner-freebsd-arch@FreeBSD.ORG Tue Jul 31 21:27:47 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A61E1065674 for ; Tue, 31 Jul 2012 21:27:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3723E8FC16 for ; Tue, 31 Jul 2012 21:27:47 +0000 (UTC) Received: by obbun3 with SMTP id un3so14391015obb.13 for ; Tue, 31 Jul 2012 14:27:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=qw+qmVLsSdqiFLsbpl8h81Tbx4ZQGx13EeoLAKfP69Q=; b=SXt7KSiOyHfaacWLeO31CsHHRKm3rGgsjZ5zvGRmzeKTnmql19S2CwKxC7VkAI7nw0 zoiRU2IUI6L6+CiyE3+3HbSsWbQRY7J+F5soT8oLxDWdIXIITYiJmdUKT9ptvzxhH4zs 6VLZRjAWATZKOaa1rb9IyyiaInJ2CP399/6jlv/D1uJtodfRvWDlYy8KpnmfFl+oatOQ 0ltgJLdy61N2eCaTX2/idv2kY3xJbcNoUOgOJ+Ft/IRMiqeSM8O2o08cliKVOzsxIAB5 iUIUuODae1b/qnW3LPTkLfKtXfe3MW5WRgBuD6vbHhzaWw5lAGYrR9NPruFTkH1HdiNB wDqw== Received: by 10.182.136.66 with SMTP id py2mr25806463obb.9.1343770061730; Tue, 31 Jul 2012 14:27:41 -0700 (PDT) Received: from [10.30.101.53] ([209.117.142.2]) by mx.google.com with ESMTPS id k8sm727874oeh.9.2012.07.31.14.27.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 14:27:41 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20120731205935.GT21678@ithaqua.etoilebsd.net> Date: Tue, 31 Jul 2012 15:27:35 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <3DB8FADE-932D-4F13-9BA0-A68C26092490@bsdimp.com> References: <20120720082300.GA5077@debian50-32.invisible-island.net> <20120731205935.GT21678@ithaqua.etoilebsd.net> To: Baptiste Daroussin X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQnzvH4K/KVg4LNNiqz8+eetq3UVmku1zMDRo2Xoa00NYFnAB/QKHwkNaoT7oTHtoiAfN/AR Cc: Thomas Dickey , FreeBSD-arch Arch Subject: Re: Flex update X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 21:27:47 -0000 On Jul 31, 2012, at 2:59 PM, Baptiste Daroussin wrote: > On Fri, Jul 20, 2012 at 04:23:00AM -0400, Thomas Dickey wrote: >> On Thu, Jul 19, 2012 at 10:42:15PM -0600, Warner Losh wrote: >>> Is there some reason that flex has never been updated from 2.4.5a? >>=20 >> It depends on what you mean by "updated". >>=20 >> The usual answer is the sourceforge project. >> It's not exactly an "update", since it breaks existing applications, >> and its maintainer is unwilling to address those problems. >>=20 >> Debian for instance has old/new versions. >>=20 >> I don't use either - see >>=20 >> http://invisible-island.net/reflex/ >>=20 >> (earlier this year, Baptiste Daroussin suggested some additional = changes >> to this version, along the lines of the ones I incorporated into = byacc). >>=20 >> --=20 >> Thomas E. Dickey >> http://invisible-island.net >> ftp://invisible-island.net >=20 > reflex seems like a better solution for us than upgrade to flex (from > sourceforge) imho, flex depends on m4 and on some gnu m4 extensions, = normally > our version of m4 is now compatible with gnu m4 (I added some missing = bits > recently) but still I don't think having flex using m4 is a good idea, = and > reflex looks cleaner in that area. >=20 > reflex is just missing imho one feature from flex (sourceforge = version) that is > ability to generate reentrant code. >=20 > I already imported byacc from invisible island, I was supposed to add = some > "fixes" to byacc (bde has spotted) and provide them to Thomas, sorry I = have > been slacking in that area recently. >=20 > Once that is done, I have on my todo list importing reflex to replace = our flex. > I did feel any hurry in that area, as I don't think we are missing too = much > features, is there one you are particulary interested on? I was = waiting for > reflex to support reentrant code generation before importing it. Cool. The only new feature I need from flex is the = yypush/yypop_buffer_state. That was the reason I started down this = path, but punted when I discovered the delta was less than a dozen lines = of code. reflex I haven't had to evaluate to see if it brings that in = or not. Warner=