From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: ELPA submission: mathjax.el Date: Wed, 23 Oct 2024 17:28:29 +0200 Message-ID: <87ed466dpe.fsf@gmail.com> References: <87ldytjso0.fsf@gmail.com> <87bjzbi8pj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Philip Kaludercic , "emacs-devel@gnu.org" To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 23 17:29:25 2024 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 1t3dIa-0006OU-O7 for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Oct 2024 17:29:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3dHs-0005SJ-PD; Wed, 23 Oct 2024 11:28:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3dHq-0005Ro-Cs for emacs-devel@gnu.org; Wed, 23 Oct 2024 11:28:38 -0400 Original-Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3dHo-0005Mw-ST for emacs-devel@gnu.org; Wed, 23 Oct 2024 11:28:38 -0400 Original-Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5cb74434bc5so3642632a12.0 for ; Wed, 23 Oct 2024 08:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729697314; x=1730302114; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=gDEWdbLu4KTD26Iv2CZDEVYgIZeJ3OQ1Xh6UPGhsc0Q=; b=N4aRvRpHCHnTB8tPd25i/t0O1fUlqr9LmFlbz9vwPWD+VmFoZ/f7fIUW7Mo2KIawdR 35RxRYuk+NHATqPNM0phlKdoncRkaNwxEpNK5P9dK5QzHyTh6oIdciYSzhnn/mID+ypX oHbSKsMsRiJeB+1k6giiQZ3YVW6ce4+su9NTwK2RNvwCKzE6MCbq2GXM/UnFt4WeWHfN n5simceESJrHfE9C5u36x5Mus6Zl+nlDvoSzbEAghVqnP8NV5S63vIcdfTa1OENV9CPp fJfBiivlI1Wyiff5AUyGup9H5XVpflBO2WgOOv3h5uoaBfqZ1ifoqJgsMnnHy1Tq2Dc/ +CWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729697314; x=1730302114; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gDEWdbLu4KTD26Iv2CZDEVYgIZeJ3OQ1Xh6UPGhsc0Q=; b=qUVi72/EBUgZktZ4s+IB7Pq2x41pG8PDolp+71sdkfBaYivq8x/rIH2rDJGqCntVhN IuG0ZG7+YeaSo3ILdoAzN/O+lkW4z1sBmP/ggkj8eVp0/HYasx5TTLzl2aAE8hncNxAb uHOl0yXmuzVwLlR3y+esBuZet5ZvmIeweZz0SoTngez6g2Djvo+2lkFT8Y7s3I6X9CxY 0UyZO9J8hAJpuyhEFD1Lbk1NFfeKNSypIhkc4sNJBnOLAwIJvxoHNlRZhM5uZkRHU4fj hI+H9CM8VYhjLWAlHPoUFegN28kxwOUlVMOWTQbuRoznRBLVazkNpc1Q+0bX8Hwg+BOi nD+A== X-Forwarded-Encrypted: i=1; AJvYcCXST4u5zjuQAa+GRUKe4ynOU10VNFH0HSC6a/+rmqbKVcrcWRd+8n0dCum1owHkrkurk7birPOLfYUT+A==@gnu.org X-Gm-Message-State: AOJu0Yy13zCKY8289lwyKBXjd7CHGU0h1pNoY9VCtNeN5j6FkJdRSsOk ax6gYP8rCRk4HaR4wcuhX2YGsdm74ELCOanHGgm1kLLzVu/yEq/cv1gzkQ== X-Google-Smtp-Source: AGHT+IE2GpYFZsA2xJ0jwjsSWc7uAta1Uq2bi5WxMvkj1gb7A36cDMjPoF2O6Kq9bsQXc5iJLxKqnA== X-Received: by 2002:a17:907:86a1:b0:a99:61d1:348f with SMTP id a640c23a62f3a-a9abf94d478mr245234966b.52.1729697313732; Wed, 23 Oct 2024 08:28:33 -0700 (PDT) Original-Received: from ars3 ([89.246.250.22]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a912d62b8sm492198266b.25.2024.10.23.08.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 08:28:32 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Wed, 23 Oct 2024 07:02:53 -0700") Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324793 Archived-At: On Wed, 23 Oct 2024 at 07:02, Stefan Kangas wrote: > Philip Kaludercic writes: > >>> More specifically, there's a 2.3 MB minified JavaScript file that is >>> committed to the repo and I will take care to update when the "real" >>> source (also in the repo, of course) changes. >> >> Is there any reason to choose the minified version? Also, do you know >> if you could support KaTeX as well? AFAIK it is more lightweight >> (though the package name might be confusing in that case). > > I don't feel comfortable with distributing a 2.3 MB minified JavaScript > file, unless it is generated from source code either as part of the > package build process on GNU ELPA, Ah sure, what you suggest is of course much better -- I didn't think ELPA might be capable of building stuff. Either of those would be possible in my case: A. If the build environment has Node/npm, all that is needed is to run make math2svg.js. B. If the build environment can run containers, I can include a suitable Dockerfile. > or during the package installation on users' machines. This is not an option in my opinion. It doesn't "just work", instead requiring the user to execute a build step, and the download is 40 times larger than the minified JS. > Could we work on resolving that? I'd be happy to. If neither options A. or B. are currently available, I would say implementing B. is a good approach in general for packages that require a build step.