From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id CA134385841A for ; Wed, 7 Sep 2022 12:34:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA134385841A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E59031FAB2; Wed, 7 Sep 2022 12:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1662554039; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wM4YtZ7sDHS9Jjwo9xmCZkwaPTF5LlI5rv/yFLoWWLM=; b=BlOvBvxsLDNnnCi5LikszncFkB1Df8EfE+Qwar7g1aTj4t7xPPwgAtt28utzGKsTqTv6J5 j1wKSC85sjpba7NZHL+Rgsx/WY/ELmZZhTUi7JSNPcpA9z9QABISd2DrDDGXPoUqj5i/Qy RI/V0oeMpPX1IiyO5mMCT+EocQIPYTQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1662554039; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wM4YtZ7sDHS9Jjwo9xmCZkwaPTF5LlI5rv/yFLoWWLM=; b=+R+L16StWWMqYU/3li+0aPHJs5Nx8JjRqa+XUh7Fw37oJgmNpUddYUAFr9QrKLruh7pahf g/v6Ie0snCO+xIBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C641A13A66; Wed, 7 Sep 2022 12:33:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yFVjLrePGGO0AwAAMHmgww (envelope-from ); Wed, 07 Sep 2022 12:33:59 +0000 Message-ID: Date: Wed, 7 Sep 2022 14:33:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [RFC] database with API information Content-Language: en-US To: Ulrich Drepper via Gcc , Ulrich Drepper , richard.sandiford@arm.com References: From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 9/7/22 12:56, Richard Sandiford via Gcc wrote: > Ulrich Drepper via Gcc writes: >> I talked to Jonathan the other day about adding all the C++ library APIs to >> the name hint file now that the size of the table is not really a concern >> anymore. >> >> Jonathan mentioned that he has to create and maintain a similar file for >> the module support. It needs to list all the exported interfaces and this >> is mostly a superset of the entries in the hint table. >> >> Instead of duplicating the information it should be kept in one place. >> Neither file itself is a natural fit because the additional information >> needed (e.g., the standard version information for the name hint table) is >> not needed in the other location. >> >> Hence, let's use a simple database, a CSV file for simplicity, and generate >> both files from this. Easily done, I have an appropriate script and a CSV >> file with the information of both Jonathan's current export file and the >> current state of the name hint table. >> >> The only detail that keeps me from submitting this right now is the way the >> script is implemented. This is just a natural fit for a Python script. >> The default installation comes with a csv module and there are nice ways to >> adjust and output boilerplate headers like those needed in those files. >> >> It would be possible to create separate awk scripts (there is only one >> Python script) but it'll be rather ugly and harder to maintain than the >> Python version. >> >> Of course the problem is: I don't think that there is yet any maintainer >> tool written in Python (except some release engineering tools). The >> question is therefore: is it time to lift this restriction? I cannot today >> imagine any machine capable of serving a gcc developer which doesn't also >> have a Python implementation. As long as there is no dependency on exotic >> modules I doubt that anything will break. > > FWIW, I agree it's past time to lift the no-Python restriction, > and that Python is a natural fit for stuff like this. +1 for me! Martin > > Thanks, > Richard