From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Supported/Bundled CSV support? Date: Tue, 15 Mar 2022 10:57:57 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24324"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Ergus , emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 15 15:59:31 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nU8e3-00065J-8i for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 15:59:31 +0100 Original-Received: from localhost ([::1]:40660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU8e1-00085U-Qx for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 10:59:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8cg-000797-CW for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:58:06 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU8cd-000434-G2 for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:58:05 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0002B4416CA; Tue, 15 Mar 2022 10:58:00 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0E820441639; Tue, 15 Mar 2022 10:57:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1647356279; bh=h1birAMpdatYctdEu1FzKLMpIeXwXX9DFVEEZqhagcI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=k6UPFl6Y1eA8EfvfKjEBPGH7AICw++8NVrUdIIeSp8QxdEs4Pk1qXhIV0q1POMONI 4MJDKCpvTrNwo1bdcvug0WdlDz7Fhcf7QYSkUoLwdmule1BCpHGoZLI4WaK3hopFmA qk8m3R8AKHsQd3Uv8LHCgBm97MK53br/sOfsqynnW4da/cpQ8Rih/rODEFiE/R/74v gIk/HiLiqR1GQQQDHI/PFZ2drL/Csskwucw1KsTvobd93QeczZOH3Z+zYbLp969JVK fKwa2/cJx98lzX/fLPH2S3UDCXTrLZPYREs7psp0SYZHPKT2n7GXo/fIc382JaAXvX snVOnmKZrhTfA== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ADFE1120315; Tue, 15 Mar 2022 10:57:58 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Tue, 15 Mar 2022 07:05:20 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287190 Archived-At: > I think having built-in CSV support that abstracts away the various > details of parsing the various CSV variants will allow the emacs Dev > community to focus on user solutions e.g.: > > A. Seamless data import/export > B. Support the processing of larger amounts of data via org-table and the like > C. Json support vastly sped up modules like lsp and eglot; I'd expect > the same once we cross the chasm with respect to making CSV support > a built-in detail that elisp developers can take for granted. You might be right, but if so you're talking about a very different kind of "CSV support" than the kind I'm familiar with (which is the support to manually edit/browse a human-generated CSV file, as offered by `csv-mode`). You seem to be talking about code to efficiently parse a whole CSV file into a Lisp representation (list of lists or better) or to generate a CSV-formatted string from such Lisp representation. Is that right? In that case, indeed `csv-mode` is of no help, basically. Stefan >> Just an idea/question: >> >> With the new Lars package vtable may be possible to support CSV or add >> a package over it? >> >> I agree it is a bit annoying to depend of an external package for such >> a simple format and maybe the implementation may be simpler than >> expected as the format it pretty simple in general. >> >> WDYT? >> >> On March 14, 2022 11:30:43 PM GMT+01:00, Stefan Monnier >> wrote: >> >> Languages like Python work around this with a csv module that >> comes >> bundled; Emacs has a couple of modules out on elpa/melpa all of which >> look old. >> >> Don't know about Melpa, but in (Non)GNU ELPA, I can only find one such >> package and it dates back to Dec 2021. >> >> Stefan