From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MLM7D-0002IH-KF for garchives@archives.gentoo.org; Mon, 29 Jun 2009 19:02:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1536FE0373; Mon, 29 Jun 2009 19:02:06 +0000 (UTC) Received: from smtprelay08.ispgateway.de (smtprelay08.ispgateway.de [80.67.31.31]) by pigeon.gentoo.org (Postfix) with ESMTP id D89A3E036F; Mon, 29 Jun 2009 19:02:05 +0000 (UTC) Received: from [85.179.16.37] (helo=[192.168.0.3]) by smtprelay08.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MLM7A-0007Wz-Ow; Mon, 29 Jun 2009 21:02:04 +0200 Message-ID: <4A490FAC.6000105@hartwork.org> Date: Mon, 29 Jun 2009 21:02:04 +0200 From: Sebastian Pipping User-Agent: Thunderbird 2.0.0.21 (X11/20090502) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-soc@lists.gentoo.org CC: Gentoo Dev Subject: [gentoo-dev] Re: [gentoo-soc] Re: Progress on Universal Select Tool References: <1245163715.14589.515.camel@thedude> <1246301448.4316.68.camel@thedude> In-Reply-To: <1246301448.4316.68.camel@thedude> Content-Type: text/plain; charset=ISO-8859-1 X-Df-Sender: 874396 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: aa70e1e0-88f5-4b13-bc7c-d1509f25783e X-Archives-Hash: f7ab8ade42135db5ed800d9559615212 S=E9rgio Almeida wrote: > user action bin { > description "Change Python's Version" > type sym > sym python { > bin python > target /usr/bin/python=20 > prefix /usr/bin/=20 > regexp python([0-9]+\.[0-9]+$) > sym python-config { > bin python-config > destination /usr/bin/python-config > prefix /usr/bin/=20 > regexp python([0-9]+\.[0-9]+)-config($) > } python-config > } python > } bin >=20 > Soon urged the need for more complex lexical analysis and started > implementing lex rules and yacc skeleton. >=20 > With this step a question bounced into my head.=20 >=20 > Am I reinventing the wheel?=20 > Why implement lex/yacc to translate a block of code into a python's > block of code? > Why not use plain python in modules? >=20 > After discussing with mentor, we decided to adopt python as the base > language for uselect modules. It seems to me that the original langauge is "static"/"descriptive" while Python is not. Why not move to XML or JSON (former seems more common with Gentoo) instead of Python? Think about how much easier it is to pull information from metadata.xml than from .ebuild files - it's the same difference in your case. You know much better where you want to go with this than I do, but please triple-check this move, as you cannot go back. Thanks for listening, Sebastian