From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#15160: Is --disable-posix excluding too much? Date: Tue, 21 Jun 2016 11:41:06 +0200 Message-ID: <87mvme3mml.fsf@pobox.com> References: <5215F58E.3080901@email.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466502317 7613 80.91.229.3 (21 Jun 2016 09:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2016 09:45:17 +0000 (UTC) Cc: 15160-done@debbugs.gnu.org To: Jan Schukat Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Jun 21 11:45:04 2016 Return-path: Envelope-to: guile-bugs@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 1bFIEu-0006Sg-2e for guile-bugs@m.gmane.org; Tue, 21 Jun 2016 11:45:00 +0200 Original-Received: from localhost ([::1]:50195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFIEq-0005rj-7D for guile-bugs@m.gmane.org; Tue, 21 Jun 2016 05:44:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFIC6-0002il-7g for bug-guile@gnu.org; Tue, 21 Jun 2016 05:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFIC2-0004TG-5t for bug-guile@gnu.org; Tue, 21 Jun 2016 05:42:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFIC2-0004T6-2M for bug-guile@gnu.org; Tue, 21 Jun 2016 05:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFIC1-0004WA-UZ for bug-guile@gnu.org; Tue, 21 Jun 2016 05:42:01 -0400 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Tue, 21 Jun 2016 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15160 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 15160@debbugs.gnu.org, wingo@pobox.com, shookie@email.de Original-Received: via spool by 15160-done@debbugs.gnu.org id=D15160.146650207517289 (code D ref 15160); Tue, 21 Jun 2016 09:42:01 +0000 Original-Received: (at 15160-done) by debbugs.gnu.org; 21 Jun 2016 09:41:15 +0000 Original-Received: from localhost ([127.0.0.1]:48564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFIBH-0004Un-K5 for submit@debbugs.gnu.org; Tue, 21 Jun 2016 05:41:15 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:57606 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFIBG-0004Uf-QQ for 15160-done@debbugs.gnu.org; Tue, 21 Jun 2016 05:41:15 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 7D02521BDE; Tue, 21 Jun 2016 05:41:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=mLLEHaTcSvBXh4sDvoW9eul8gEo=; b=EzqNI6 QnZMm80iaxhGF+Vsb42eQ/CMCgfK8a0VHdj3GMCr6pBvfQB7YVHUsz3gRertj6Yy PxZSkYzbz7mkeHM+NXSaBHIrYgwW2KqUo9/Y7+4uFylsvzHtklrGoMdtW+Rcg1BL pnu3EZFyrrIiGAoeOy3T4chbA/p+ELws+iIdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=k8XquaE/1tH/iZVbr1I52FKNL/EdZBXo xueBaQ30PcYixaFh5vcb0reMf7xZ167+SemBmdGb0AeFruDctjmqzeyBS8nWZ4oN f9qlSLOjm4NVZdBJ9vP58zFSe6gly6TSmDi7nfaxExWGfCL78Ax/XKZEy6xheklH GJxAkG5S4ME= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 742C321BDD; Tue, 21 Jun 2016 05:41:14 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 8C66921BDC; Tue, 21 Jun 2016 05:41:13 -0400 (EDT) In-Reply-To: <5215F58E.3080901@email.de> (Jan Schukat's message of "Thu, 22 Aug 2013 13:27:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 4B40A70A-3794-11E6-917A-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8068 Archived-At: Hi! --disable-posix is intended to be a size reduction thing, not necessarily a portability hack. Guile should build on MinGW with POSIX enabled; if it doesn't that's a different bug :) When POSIX support is enabled we should simply compile out features that aren't detected on the platform. For that reason it doesn't make sense to take more things out from under --disable-posix. Regards, Andy On Thu 22 Aug 2013 13:27, Jan Schukat writes: > Hello, it's been a while since I wrote here. Took me a while to figure > out how to best tackle the native type vector alignment thing > properly. Ended up writing my own binary data formats and the smaller > dynamically created ones get their own SCM_DEFINE c constructors. The > compiled guile byte-vector format isn't too efficient anyway atm. Once > true elf-binaries are generated I guess that is different, since they > can be directly and natively embedded. When that comes along I might > look into it again. It's always good to consolidate and unify code > that can be, to reduce redundancy. > > Anyway, new issues arise. Using a scripting language somewhat portably > for non-performance critical management tasks is pretty normal right? > One of the prime uses. > So, I'm walking directory trees now, and occasionally need to copy a > file. But copy-file is not available when --disable-posix is > configured. There are lot's of possible workarounds. Copying files in > different languages is first semester programming assignments. The > point is: a high level language shouldn't make you do this. File > systems and paths are pretty much the same on all platforms guile runs > on. And that's the the interface to the function: two paths. There is > no reason to to not have that function everywhere. > > Similarly for chdir. You can work around it, and the file tree walking > functions make it mostly unnecessary. But I see no reason to leave it > out. Any system guile runs on knows paths. > > (oh, and --disable-posix is necessary to compile on/for windows/mingw, > the cost of portability) > > Regards > > Jan Schukat