From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Supported/Bundled CSV support? Date: Tue, 15 Mar 2022 07:05:20 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23495"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Stefan Monnier To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 15 15:06:46 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 1nU7oy-0005un-Vo for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 15:06:44 +0100 Original-Received: from localhost ([::1]:52594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU7ox-0006Km-JX for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Mar 2022 10:06:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU7nn-0004xA-P9 for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:05:33 -0400 Original-Received: from [2607:f8b0:4864:20::1034] (port=36858 helo=mail-pj1-x1034.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU7ni-0003o8-H2 for emacs-devel@gnu.org; Tue, 15 Mar 2022 10:05:31 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id kx6-20020a17090b228600b001bf859159bfso2412858pjb.1 for ; Tue, 15 Mar 2022 07:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=44SeG3Ubf867PckKbDIiZtKDwMzbLwUjUy2pWnlb2B4=; b=BqUZ0Y6CJAWlmVIOAUJhB98/L7E72vTmM5AraEQ5bMgA51hLBsC95S3EU8CEJ1ie67 NiYIaXzalmGi5AuNOulR3E1xH+qMboOCdLqCEArgEXU5zIKgWENpMRh5672VEC5NNG9S 5Cqk5OsAUOZv3+YI2IJ8CVV7r65XSpKZ5QBo755ITNoYZo5kFyapvDfAsm2I3F+btdeO kFNt7sGHNTVrZIGL17FhneNW6fhB+KkTOkzX0G7Dxp0wLKT94fYZw9+0dDBISym7Kmq/ DK49hMbgWxSCF8+0+n6vOy/s5nAxKQKKtb5tfRNa70ZK5vK+ZSJul1iA9sFLlGrxR95f FJFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=44SeG3Ubf867PckKbDIiZtKDwMzbLwUjUy2pWnlb2B4=; b=kHg8pO5aEdYZfobcypl2B2+JtDs7wbLG5KaRQV8CaRIoO5Ts+5996Ja3/KL/mio5z0 FsZaRVSGSJH12/ekHmp4+1qCZv0vqmhAnoZEK6lHTdfnjX5aOA04mireJ2reGr6F9Mbp WEtv9rY6hQvUYf/xmPvZudEvdu+oQq2p4LQl7oxONOrkviZThaFqIMX/BWBh02OotjA6 HhkRERPQ4sMrFnNPhVLaL9WintU03AGS2MUnqTKBuzoTfwbx7WSo+BXJrzWdy7IK1UID 8y9OMEtLlnwaCdPObgvFmvcvZ5314Kw+LF49wn+rKeHFLmwFEIKAHbG5W6pV8aGgn+80 aRBw== X-Gm-Message-State: AOAM531qlKl4ypQ9Q/euqrySH9k/cMdq0wIBOBIdvamG7c8+YxCUJEBO 2VnpK7brhgjv/z3Cp0OQhjIZCw== X-Google-Smtp-Source: ABdhPJwwLjjRxNqARKBbMtX2sLkxOm1VrlFyVmyKs32lE+gX/bjRWenczFNhl0Q+Dc98gZWh6uJrlQ== X-Received: by 2002:a17:90a:a78f:b0:1bc:8042:9330 with SMTP id f15-20020a17090aa78f00b001bc80429330mr4689747pjq.229.1647353124378; Tue, 15 Mar 2022 07:05:24 -0700 (PDT) Original-Received: from raman-glaptop (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id kk12-20020a17090b4a0c00b001bed1ff3717sm3309039pjb.6.2022.03.15.07.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 07:05:23 -0700 (PDT) In-Reply-To: (Ergus's message of "Tue, 15 Mar 2022 08:36:27 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1034 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=raman@google.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -161 X-Spam_score: -16.2 X-Spam_bar: ---------------- X-Spam_report: (-16.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=no 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:287184 Archived-At: Ergus writes: A couple more thoughts around why we may want built-in CSV support: 1. Over the last few years, emacs has incorporated built-in support for: A. xml --- libxml B. json --- libjs C. We're now talking sqlite Not having CSV builtin feels like ignoring what is in plain-sight. 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 l= ike 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. > 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 --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8