Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7009954imu; Wed, 14 Nov 2018 10:13:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cMs2scmSWPAl+itoUc4EDb+a/qo8WUWy8P/8A8QU4iRzzQdbadBzNJTbRwZL82M57SdVLl X-Received: by 2002:a17:902:6ac5:: with SMTP id i5-v6mr2956935plt.2.1542219239085; Wed, 14 Nov 2018 10:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542219239; cv=none; d=google.com; s=arc-20160816; b=0cjKe+tG4IqOzvidbme2G6ZAiQo7FLI5wp4lGV1EKw/RNm5VzkdpEZvWIy+0H66SUm kAtWWaWFHexUvfp0fmVe9gnpfv1zVqNpWJnG+vb6Bk2qrTFyd239I3crOyAMjlE0yT2q IpP3aXT+AF2psMg4NQN5ETgv0NGyGo5VHwUTgtVwjLL/DNOPuLFYrQN4PxmP34ckxuPp WOObSgbmSlQinvdaP+V+w4GGdGtOQuOqI/offs8o3z5mJfZKPym1LB0YvklB2GzELuTE FqFKxxl1DHmo7cdz+TGIlqaPl2wvXK9pyJWoiNeKtHnnSPbidyVQLkAbs2qRjSR0j3PX rY5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject; bh=W6Ap+D2OrNiqseftqoW+CqDtUoN9Ao0I8EwIH1i3yCw=; b=a/7+DQE8P6CZVRRXTcwb419NVwjR/t3pO7BmICwiO87NXGsoM9N+Qf80xKNemm+GN8 2S/trdGajYotpkPwArgnpSVgkkFfefQxl36rDy2mifqmFH+gxgtX8LXyDW/Hrj1BAQMD YQUrQc//MaQWHzIDfOSXgR3Ouk0k1zOmB4R4kc+j7biIX1lWZaWYnp9Zlu/7kx/H2jiO XxSUOKogAL2H2guGM7d7pi/SIq3YajIXwiZ6CxnVL4Dr4M2E4s4LxZXa78ICXTI9HtrN 3KvR2JyjrtSdPUX+5mAkrUmWzDQakSfgkryv6b7zEkxQboGk5LnKLq7aNLbQcNquzawD k2lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14-v6si23064458pgi.5.2018.11.14.10.13.38; Wed, 14 Nov 2018 10:13:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732174AbeKOERZ (ORCPT + 99 others); Wed, 14 Nov 2018 23:17:25 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45736 "EHLO zimbra.cs.ucla.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727576AbeKOERZ (ORCPT ); Wed, 14 Nov 2018 23:17:25 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9E91F16010E; Wed, 14 Nov 2018 10:13:09 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hmbhwn2BKonS; Wed, 14 Nov 2018 10:13:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 96602160107; Wed, 14 Nov 2018 10:13:08 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rxTvXQwmwph4; Wed, 14 Nov 2018 10:13:08 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 64085160106; Wed, 14 Nov 2018 10:13:08 -0800 (PST) Subject: Re: Official Linux system wrapper library? To: Joseph Myers , Andy Lutomirski Cc: Szabolcs Nagy , Dave P Martin , Daniel Colascione , nd , Florian Weimer , "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Willy Tarreau , Vlastimil Babka , Carlos O'Donell , "libc-alpha@sourceware.org" References: <877ehjx447.fsf@oldenburg.str.redhat.com> <875zx2vhpd.fsf@oldenburg.str.redhat.com> <20181113193859.GJ3505@e103592.cambridge.arm.com> <5853c297-9d84-86e5-dede-aa2957562c6b@arm.com> <1C1B38FC-1266-4A91-B8F6-20A0C49ED1E2@amacapital.net> From: Paul Eggert Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYM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NFx c4W1URpAkBCOYJoXvQfD5L3lqAl8TCqDUzYxhH/tJhbDdHrqHH767jaDaTB1+Talp/2AMKwc XNOdiklGxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b uNcby4U= Organization: UCLA Computer Science Department Message-ID: <00dc083b-2e56-af27-30b5-1effe5a7c8c4@cs.ucla.edu> Date: Wed, 14 Nov 2018 10:13:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/14/18 9:40 AM, Joseph Myers wrote: > Historically, there was once an attempt to rework POSIX into a separate > language-independent definition and language bindings (for C, Fortran, Ada > etc.), but I don't think it got anywhere, and it's probably doubtful > whether the idea was ever very practical. That effort did produce IEEE Std 1003.5-1992 (Ada Bindings to IEEE Std 1003.1-1990), IEEE 1003.5b-1996 (Ada bindings for realtime extensions), and IEEE Std 1003.9-1992 (F77 Bindings to IEEE Std 1003.1-1992). The Ada group simply translated the POSIX standard from C into Ada, repeating functional text and coming up with a "thick" standard; in contrast the Fortran group did a "thin" standard that focused on Fortran mechanics and deferred underlying functionality to the main POSIX standard. The thin Fortran standard was harder to grok and was less successful in practice. As you write, these efforts were probably not worth the trouble. Non-C language systems can provide a standard way to invoke C APIs, and then let user-level programmers have at it. The performance advantage of having a pure Ada/Fortran/etc. API for POSIX are so minor that it's not worth the major hassle of standardizing and using a language-independent POSIX API.