From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QAHzAsmcqGHb5AAAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 11:15:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qLQiOsicqGHXRwAAbx9fmQ (envelope-from ) for ; Thu, 02 Dec 2021 10:15:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9B8E819A8B for ; Thu, 2 Dec 2021 11:15:36 +0100 (CET) Received: from localhost ([::1]:49828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msj7n-00033N-5q for larch@yhetil.org; Thu, 02 Dec 2021 05:15:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msj2s-0005hj-AM for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 05:10:30 -0500 Received: from [2607:f8b0:4864:20::102f] (port=45658 helo=mail-pj1-x102f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msj2q-0002sa-68 for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 05:10:30 -0500 Received: by mail-pj1-x102f.google.com with SMTP id gb13-20020a17090b060d00b001a674e2c4a8so4230004pjb.4 for ; Thu, 02 Dec 2021 02:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=x+uw4wiTpLYtOiXnBRRhmH9I0BNR0f8f5SAGlnBwb9g=; b=dnZnfiei5PpEwrOpsYlNfpfVtxR+og3WBVDPDUGMXI/GV3KLV1M0kRSsEN5ZTJq6+I I1wtJvF+ZDl2C8OTpT2MkESPp6miZy0Y1So0MhxUnnKseo7A/4VUCLpP9ShU9r1lXfaG tD49lhxJ8WkaHBVcThGsnHAU+MyfAxB9i5WVSrq1nyVmwb7WUkt/jGm0DIZfItpy6GQ/ faP95sXcEQFTM/TJ2sb9qBmaRtjnZG7UVa/Z9cssMkJ7QCJU5IjMpc5W79rQwjJj0BaE QT5WWbGmQNacuNAQKOvR0DE81uEs++TqtSU59v//hbeRhzQi8MhrKb4YGxS/Xr5S0J9F PGiw== 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=x+uw4wiTpLYtOiXnBRRhmH9I0BNR0f8f5SAGlnBwb9g=; b=GhQo0ja+COCnKUqHWyy0uf4uOFhWVcEfIpljGzOeqJGjBsVjA05XiKY5jWTvCAqoLz Oi4Wz7bbKJdt59sZnz/JxvXrXtpAgrKlDHHUYZu3DxN6PnitLfsrTqylVpEgtQjANSim KTzcEA9l1Dz9a2JGMekTdjk9n47xssK/AwGaFw3YSyzbQZqvstnquQU9KFrS2Z+O1csM JHUVbcGbrGeRcAs48Q5BAJvOe9VhVJzjsNzD4qz6wGtR7B4aRsprYq9Yt2mZmhDVBEP3 5PZHkus6xS3j4iE8o7HD+DeJ9iIVp1XiASs1cf6U/X7QPYT9N8xVJs6CzPzzrwgZlW7l hArw== X-Gm-Message-State: AOAM5321wUHesV+ixOsSj6qiuHAHlDc6OkKa9+imnak12iN1439VYhCK Ue1Sk8Yb2SCUH03PWpzp0Sc= X-Google-Smtp-Source: ABdhPJyoRuyB1Exk70IVqFbLMY1HUrrB/jGF8UCvWJ52m/IFeGYt2TKqD0xizUsgd3YvnxyrrjXlmA== X-Received: by 2002:a17:903:185:b0:141:f5f3:dae with SMTP id z5-20020a170903018500b00141f5f30daemr14484906plg.56.1638439825752; Thu, 02 Dec 2021 02:10:25 -0800 (PST) Received: from localhost ([103.125.234.161]) by smtp.gmail.com with ESMTPSA id y26sm1869494pgc.72.2021.12.02.02.10.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 02:10:09 -0800 (PST) From: Ihor Radchenko To: Timothy Subject: Re: [ANN] An Org parser for Julia In-Reply-To: <87o85zpdi8.fsf@gmail.com> References: <87o85zpdi8.fsf@gmail.com> Date: Thu, 02 Dec 2021 18:11:32 +0800 Message-ID: <87k0gn71uz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638440136; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=x+uw4wiTpLYtOiXnBRRhmH9I0BNR0f8f5SAGlnBwb9g=; b=jrjlEB6gfaMcx0Y/bYF/Wey04bRG4X9Y2VMU6A7GxrVyamyy9lPHSB6Bcfq2hvIVjKZsHf LbJjUJuZiEcpLglsiPHVpA/7sZuZu/keo0X3HQI7AvboQOleVoP8DNRUpcLmum12px4/wj lQF2mDTURIfXjPDJu3w+mwI7b0rfnHH/NlO/U3mCGxMAZMmbWexERHpEKgQAEi09G88nw1 c327pBJ/QC2G5OaB4yEEqdSirRdWzbDZxBR6F24Sw9C9p2YEjKDozfMq5c+vKLyNFZIlk9 IuJ6WOZXCo9lj+Ha4JjXfAPjY7frNZShAdjquU2WNefXG7di0v4ctwRAlTJKig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638440136; a=rsa-sha256; cv=none; b=gcBQwZEgzINHmqc29pWGbeuh8tMMfvPISNE1P+GvfkjeyPHgiVbdWlBti3BxkSzcE6sqB9 ijl02DwcNOtgvdHadBG2+qVTUOLtngWG36AKs1/C7Yf+YeilkY0SfKLeY7bf+e0VooZA9G IVUvy+37CUYuvP+bu2vomRmHxXo51O0U6jCcyRMaLNx9dU+YlJ+sQ1kIaXzWyIEW23Z38g E8x6AghdTZG2FcDgD+JOc6xBTV/Wy+R4AvX6b/PejR/2xTi7DKqb+0yzWWOKvmwwF2e1nA LVAkE6N1sxLuUQNDxVT3hQW0lecDHNuK8dK8znqpB+Tt/HUEKyAc9kZsv65+rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dnZnfiei; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dnZnfiei; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9B8E819A8B X-Spam-Score: -3.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: TOzymp8418a/ Timothy writes: > I=E2=80=99ve gone heavily into Julia over the past year, and I recently > thought it would be nice if an Org parser existed for it =E2=80=94 so I m= ade one! > > > I am wondering how the third-party parsers are going to scale for larger Org files. I did some simple testing in the past, and it seems that only tree-sitter can potentially get sufficiently close to org-element in terms of performance. Maybe we should implement a Elisp LSP server instead of many individual parsers in different languages? --- tree-sitter vs. org-element on 15M Org file org-element-parse-buffer (16.090262757 1 0.7365683609999962) org-element-parse-buffer 'element granularity (7.688000744 0 0.0) 8sec tree-sitter via https://github.com/milisims/tree-sitter-org parsed down to 58% of the buffer in 5.3sec and exited with error extrapolates to ~9sec Racket's brack via https://github.com/tgbugs/laundry failed to finish parsing in reasonable time. Cancelled at 10m11.436s Clojure parser via https://github.com/200ok-ch/org-parser failed to finish parsing with java.lang.OutOfMemoryError: GC overhead limit= exceeded Running time 8m28.078s Best, Ihor