From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id C333F17D5675 for ; Tue, 28 Jan 2014 14:43:45 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id CAD9FB5D847 for ; Tue, 28 Jan 2014 14:30:21 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 5FEEA97A839 for ; Tue, 28 Jan 2014 14:30:23 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X7qxbM-RTU1P for ; Tue, 28 Jan 2014 14:30:23 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 3E4D397A832 for ; Tue, 28 Jan 2014 14:30:23 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 3540695241A for ; Tue, 28 Jan 2014 14:30:22 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B9E591204DE; Tue, 28 Jan 2014 14:30:18 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by neon.ruby-lang.org (Postfix) with ESMTPS id 226D81204D0 for ; Tue, 28 Jan 2014 14:30:12 +0900 (JST) Received: by mail-pa0-f42.google.com with SMTP id kl14so6876501pab.29 for ; Mon, 27 Jan 2014 21:30:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=Dhw9gKWmUZYPGwIRmERzAUUgnKOLp/opCx8Fux7IVVA=; b=eyNNN53uaR/gBrIdyxOKv1FUEKldVHSftsymTiP0VXgln9xmgF9r3E3g3pkDwpiMXP U46ka8uvIIoVTOdL9k2Xj3gghxo9i8lLW9Xi3azSUWk3GW0p9WzXlbWEhwxBKkRGbMv5 dLgpnAFWTNTTIFXFHD5AtqWZWbpUb7NftOVspuihEO6lWriJTyyv9+Ln5tVk6S54YqWE q1zN09O4ZntYZafwU8xId4uIFTrHDKMXjTn64IpoTs8w7a4AN3c2sRPeuWxPtbUmaDlI 7FoNfhZuASFYRezRapOt1Cw9YK2/fc7oA+70QjqwxKVbaEsOKGIg+M6wWh7mTI1OgyRX tYEg== X-Received: by 10.69.0.10 with SMTP id au10mr18495922pbd.48.1390887011558; Mon, 27 Jan 2014 21:30:11 -0800 (PST) Received: from [192.168.0.100] (m208-237.dsl.rawbw.com. [198.144.208.237]) by mx.google.com with ESMTPSA id e6sm37924086pbg.4.2014.01.27.21.30.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Jan 2014 21:30:11 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) From: David MacMahon In-Reply-To: Date: Mon, 27 Jan 2014 21:30:23 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Ruby developers X-Mailer: Apple Mail (2.1085) X-ML-Name: ruby-core X-Mail-Count: 60162 Subject: [ruby-core:60162] Re: [ruby-trunk - Bug #9456] Include bin/racc with ruby X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" I think a distinction needs to be made between the racc executable and = the racc runtime library. My understanding is that the racc executable = (bin/racc) is needed to develop a racc-based parser for a given = application. Anyone who wants to use the application that contains the = resultant parser needs the racc runtime library, but they don't need the = racc executable. Thus, including the racc runtime library in the Ruby = standard library is a way to ensure that racc parsers will be usable by = anyone with a basic Ruby environment. Those who want to develop = racc-based parsers will need the racc executable (and a suitable grammar = file) to generate the parser, but those developers are more than capable = of obtaining the racc executable (e.g. by installing the racc gem) for = their own development environment. Instead of asking for bin/racc to be included in the standard library, = it make more sense (IMHO) to ask whether the racc runtime could be = removed from the standard library so as not to favor one parser runtime = library over another one. For example, since the racc runtime is = included in stdlib, why not also include the treetop runtime (if there = is one) or any other "runtime" library in stdlib? Where does line of = reasoning end? On the other hand, why even have a standard library if everything can be = installed gems? Where would that line of reasoning end? My guess is that the racc runtime library has been "grandfathered in" = since it has been part of stdlib for so long (since Ruby 1.6?). Dave On Jan 27, 2014, at 6:48 PM, e@zzak.io wrote: > Issue #9456 has been updated by Zachary Scott. >=20 >=20 >> Why gem is not enough? >=20 > For the same reason that the gem is included in stdlib, if we can't = include the full functionality of the gem then it shouldn't be inclued = in stdlib. >=20 > ---------------------------------------- > Bug #9456: Include bin/racc with ruby > https://bugs.ruby-lang.org/issues/9456#change-44648 >=20 > * Author: Zachary Scott > * Status: Open > * Priority: Normal > * Assignee: Minero Aoki > * Category:=20 > * Target version: current: 2.2.0 > * ruby -v: 2.2.0dev > * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN > ---------------------------------------- > As you [can see](https://github.com/ruby/ruby/tree/trunk/bin) we = include executables for Rake, RDoc, ri, ERB, RubyGems, and Irb with = Ruby. >=20 > We should also include Racc as an executable for Ruby. >=20 > This resolves an issue where libraries requiring Racc, and using the = binary executable, must install the Racc gem in order to use bin/racc. >=20 > I'm fairly sure this change won't cause any issues, so I'd be happy to = commit it. >=20 >=20 >=20 > --=20 > http://bugs.ruby-lang.org/