<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 September 2018 at 22:27, Reinhard Kotucha <span dir="ltr"><<a href="mailto:reinhard.kotucha@web.de" target="_blank">reinhard.kotucha@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I personally prefer texlua for scripts supposed to be used within a<br>
TeX environment.  I'm using Perl for more than two decades and Lua for<br>
a couple of years.  The advantage of Perl is that there are modules<br>
for any problem on CPAN.  TeX Live only provides a standard Perl<br>
distribution for Windows but not arbitrary modules available on CPAN.<br></blockquote><div><br></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">I'm not writing for the TeX world, psutils is packaged in Debian, and was originally written to be highly portable.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">Lua is great (you'll see if you search a bit that I'm a long-standing contributor to the Lua ecosystem, was active on lua-l long ago, and wrote the now-defunct Lua Technical Note 0), but it's not installed by default on many systems, and its library support via LuaRocks is still relatively immature, arguably because of Lua's philosophy of minimalism.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">Perl on the other hand is installed pretty much everywhere, and has a great deal of "batteries included". I tend therefore to rewrite C code into Perl, as it does not, in practice, reduce by much the ability to install on "out-of-the-box" systems (because on most systems Perl comes pre-installed, or there's a standard installer).<br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"> My rewrite of psutils uses no non-core libraries at all.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"> <br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It's not a good idea to strip the suffix.  The programs written in C<br>
we currently have in TeX Live are installed in bin/<platform> and have<br>
no extension except on Windows (.exe).<br></blockquote><div><br></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">Not having a suffix for programs is standard. (I am coming from a POSIX background here.) I use GNU autotools, and POSIX/UNIX conventions. In this case, if you want to add suffixes, since all the programs are in Perl (or will be in version 2, anyway), configure with --program-suffix=.pl.</div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">Overall, please bear in mind that I'm writing for a wider audience than the TeX world, and the best compromise I've found that does not involve custom per-system code is to use POSIX conventions and autotools (behind-the-scenes support is very good for even Windows nowadays).</div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small" class="gmail_default">At least in this case it seems there's an easy fix to all the problems you've mentioned, though I'd be interested to know what TeXLive does with packages that install a mixture of compiled programs and scripts (where the suggestion I made above would not work). Autotools is sufficiently widely used that this problem must have been solved before.<br clear="all"></div></div></div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><a href="https://rrt.sc3d.org" target="_blank">https://rrt.sc3d.org</a></div></div>
</div></div>