From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Thu, 15 Feb 2018 17:07:29 -0800 Message-ID: <83f00146-dc4f-1048-73b5-c41ff942058b@dancol.org> References: <4c5d130f-d8ae-d109-613d-0df13d8c40e4@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1518743159 26947 195.159.176.226 (16 Feb 2018 01:05:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2018 01:05:59 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Cc: Eli Zaretskii , Angelo Graziosi , emacs-devel@gnu.org To: Paul Eggert , Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 16 02:05:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emUT4-0005l6-B7 for ged-emacs-devel@m.gmane.org; Fri, 16 Feb 2018 02:05:38 +0100 Original-Received: from localhost ([::1]:50806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emUV6-0001DY-8E for ged-emacs-devel@m.gmane.org; Thu, 15 Feb 2018 20:07:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emUUz-0001Cy-GD for emacs-devel@gnu.org; Thu, 15 Feb 2018 20:07:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emUUy-0005kS-KS for emacs-devel@gnu.org; Thu, 15 Feb 2018 20:07:37 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:58982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emUUy-0005kB-Al; Thu, 15 Feb 2018 20:07:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=faY4hPzz2qb2shKgkf1wYKCqnKvXNivdmXWW1uuj0jM=; b=JZA6zw7ajAG/NOuvifsMo/9zdDmRZhxkQO07IczcP3oBgdF70J357VA+GLZ1hKXajDQVVg2hIBEGQiUVQ+ZpkBILposS0P5PfA8F+DCI2AkhWU5vckepiuCqpFCBtXShB/t9j8DSd3IRpQUMKavoYG2T/ujDKOr6CsNEmxLwerZORSqUI110YE/pRMMaMoDkyNvkIZBR7weMhdYOLb89fFzsQn4dAQULFDloGVv6e2mfAURa4MX7dSs+3o2N/Miq1H7jHlPSqScVGzskvzr4U5EwGhkOJoKtLLtKYdaRMInTJ1YMItAE8lgUR7Q0XXyX6+z6Ha+lyGA0RXSIn/rIzg==; Original-Received: from [2604:4080:1321:8ab0:6c92:eaf:37c:f4ca] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1emUUx-0003Ex-4k; Thu, 15 Feb 2018 17:07:35 -0800 In-Reply-To: <4c5d130f-d8ae-d109-613d-0df13d8c40e4@cs.ucla.edu> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222793 Archived-At: On 02/15/2018 04:47 PM, Paul Eggert wrote: > On 02/15/2018 03:34 PM, Daniel Colascione wrote: >> I do wonder whether it makes sense to try to copy the dump into the >> Emacs executable itself instead of leaving it as a separate file. > > I like this idea. A simpler approach would be to just concatenate the dump to temacs, then add a special header with a signature and a dump length. On startup, Emacs could open itself, seek to the end of the file, look for the signature, and if it's present, back up to the start of the dump and proceed exactly as pdumper does now. This way, there's no overwriting stuff in the middle of the file and we don't waste disk space on a big data section we'll only partially use.