From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Olivier Dion via General Guile related discussions Newsgroups: gmane.lisp.guile.user Subject: Re: Proposal: Deep Dive into the Guile Docs & Makeover Proposal Date: Sat, 19 Feb 2022 10:33:12 -0500 Message-ID: <87bkz27txj.fsf@laura> References: <871r01sa4a.fsf@nonconstructivism.com> Reply-To: Olivier Dion Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guix-user@gnu.org, guile-user , guix-days@gnu.org To: Neil Jerram , Blake Shaw Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Feb 19 16:36:01 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLRmC-0005uS-Sc for guile-user@m.gmane-mx.org; Sat, 19 Feb 2022 16:36:00 +0100 Original-Received: from localhost ([::1]:44208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLRmB-0004oK-QH for guile-user@m.gmane-mx.org; Sat, 19 Feb 2022 10:35:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLRkz-00049p-Ju for guile-user@gnu.org; Sat, 19 Feb 2022 10:34:46 -0500 Original-Received: from smtp.polymtl.ca ([132.207.4.11]:57241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLRjk-0008WM-5M; Sat, 19 Feb 2022 10:34:29 -0500 Original-Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 21JFXCGV030730 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 19 Feb 2022 10:33:17 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 21JFXCGV030730 In-Reply-To: X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Sat, 19 Feb 2022 15:33:12 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18107 Archived-At: On Sat, 19 Feb 2022, Neil Jerram wrote: > Personally, I am now a big fan of Scheme-centric + FFI, as it means > always writing Scheme and never having to hack C code. If everyone > agreed on that, we could discard all the C-centric parts of the > manual, and focus the rest on a clearer use case. But I very much > doubt that there is clear agreement on that. In particular, the > C-centric usage is really Guile's original reason for existing: to act > as a universal extension language for lots of GNU programs that > already exist. All projects being different, I don't think this is possible. For example, I've added Guile bindings for Jami, which is written in C++. FFI does not have support -- as far as I know -- for C++ std::string, std::vector, std::map. So it's a necessary to use more than the FFI module. I should add that I first started using Guile because of its easy integration with the C runtime and clear documentation on how to interlop it. If it was not for that, I would probably have dismiss Guile and select Lua instead. TLDR: I don't think we should discard anything that is C-centric in the manual. -- Olivier Dion Polymtl