From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Check for redundancy Date: Wed, 24 Jun 2015 23:23:41 -0400 Message-ID: References: <558A7875.4050905@easy-emacs.de> <24a1b328-82a8-44ff-8f8d-1425ab89ab67@default> <20150624211049.GA14854@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435203769 15102 80.91.229.3 (25 Jun 2015 03:42:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 03:42:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 05:42:34 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z7y3d-0001Wu-Kg for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2015 05:42:33 +0200 Original-Received: from localhost ([::1]:53767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7xof-0008G6-Tx for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2015 23:27:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7xlU-0002oe-0i for help-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:23:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7xlP-0001DX-LU for help-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:23:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7xlP-0001DP-C2 for help-gnu-emacs@gnu.org; Wed, 24 Jun 2015 23:23:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AsEwA731xV/3+MCkxcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEIAiCLOoUFBxaEFwWzP4FFI4QUIoJ4AQEB X-IPAS-Result: A0AsEwA731xV/3+MCkxcgxCEAoVVuzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEIAiCLOoUFBxaEFwWzP4FFI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="128243165" Original-Received: from 76-10-140-127.dsl.teksavvy.com (HELO ceviche.home) ([76.10.140.127]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Jun 2015 23:23:42 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B5B5F660F3; Wed, 24 Jun 2015 23:23:41 -0400 (EDT) In-Reply-To: <20150624211049.GA14854@tuxteam.de> (tomas@tuxteam.de's message of "Wed, 24 Jun 2015 23:10:49 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105144 Archived-At: > To throw an unorthodox idea into the air, one could measure the compression > ratio (e.g. with gzip) and relate it to the compression ratio of "known > good" code (I know, I know... :-) Compressing a file does give you some information about the amount of redundancy in that code, but that might not be the redundancy you care about (e.g. using longer identifiers will give you higher compression ratios, but that's usually not what's considered "redundancy in code"). Also, it's not immediately clear how to go from this to finding the actual redundancy. Stefan