From: "Ludovic Courtès" <ludo@gnu.org>
To: Joseph Novakovich <josephnovakovich@gmail.com>
Cc: 43080@debbugs.gnu.org
Subject: [bug#43080] [PATCH] gnu: add j version 902.
Date: Mon, 12 Oct 2020 19:37:07 +0200 [thread overview]
Message-ID: <87eem3ny64.fsf@gnu.org> (raw)
In-Reply-To: <CAHwqnzFgDBp6PcU0Qi2NB5P+=Xcu3oqRZdbDtsooZD2B588BMQ@mail.gmail.com> (Joseph Novakovich's message of "Fri, 28 Aug 2020 00:05:45 +0000")
Hi Joseph,
Joseph Novakovich <josephnovakovich@gmail.com> skribis:
> From 798d0e3c2b635cfe3a936937fd3dd3ea1b8c5812 Mon Sep 17 00:00:00 2001
> From: Joseph Novakovich <josephnovakovich@gmail.com>
> Date: Thu, 27 Aug 2020 19:16:16 -0400
> Subject: [PATCH] gnu: add j version 902.
>
> ---
> gnu/packages/j.scm | 180 +++++++++++++++++++++++++++++++++++++++++++++
Sorry for the loooong delay!
A few comments—if needed we can make those changes on your behalf, let
us know.
Could you add j.scm to ‘gnu/local.mk’?
> + (name "j")
> + (version "902")
> + (source
> + (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://github.com/jsoftware/jsource")
> + (commit "59324abbc6c9c3709d39096f5a41e0a4ef28e9f6")))
Why this commit? If there’s a tag, it would be clearer to refer to the
tag (the ‘commit’ field can name a tag).
> + (outputs '("out"))
Unnecessary, you can remove it.
> + `(#:modules
> + ((guix build gnu-build-system)
> + (guix build utils))
Likewise.
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (let ((jplatform "linux")
> + (j64x "j64avx2"))
> + (chdir "make2")
> + (system
> + (format #f
> + "jplatform=~a j64x=~a USE_SLEEF=1 ./build_jconsole.sh"
> + jplatform j64x))
Note that we cannot assume AVX2 support (on x86_64, but especially on
non-Intel platforms). Can you check this doesn’t create binaries that
require AVX2?
Also, it would be more robust to replace ‘system’ by something like:
(Seton "jplatform" "linux")
(setenv "USE_SLEEF" "1")
…
(invoke "./build_jconsole.sh")
since ‘invoke’ checks the exit code of the given command.
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (let* ((bin-out (string-append (assoc-ref %outputs "out") "/bin"))
> + (share-out (string-append (assoc-ref %outputs "out")
> + "/share/j"))
> + (jconsole "jlibrary/bin/jconsole")
> + (libj.so "jlibrary/bin/libj.so"))
I’d omit ‘-out’ from variable names.
> + (synopsis "APL Dialect")
What about “Dialect of the APL programming language” for clarity?
> + (description "J is a programming language that works with arrays,
> +verbs, adverbs, and conjunctions. For example, +/x sums array x and
> +/:~x sorts it.")
Please use @code markup for code snippets. Bonus points if you can
expound a bit!
https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html
> + (license gpl3)))
I confirm that this is “version 3 only” per ‘license.txt’.
Could you send an updated patch?
Thanks,
Ludo’.
next prev parent reply other threads:[~2020-10-12 17:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-28 0:05 [bug#43080] [PATCH] gnu: add j version 902 Joseph Novakovich
2020-09-01 13:19 ` [bug#43080] Joseph Novakovich
2020-10-12 18:13 ` [bug#43080] Tobias Geerinckx-Rice via Guix-patches via
2020-10-12 17:37 ` Ludovic Courtès [this message]
2020-12-18 13:07 ` [bug#43080] [PATCH] gnu: add j version 902 Ludovic Courtès
2021-10-01 10:27 ` Philip Kaludercic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eem3ny64.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=43080@debbugs.gnu.org \
--cc=josephnovakovich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).