unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Morgan Willcock <morgan@ice9.digital>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: kixtart-mode
Date: Tue, 20 Dec 2022 23:59:56 +0000	[thread overview]
Message-ID: <8735994oeb.fsf@ice9.digital> (raw)
In-Reply-To: <87fsdkd8mg.fsf@telefonica.net> ("Óscar Fuentes"'s message of "Mon, 12 Dec 2022 15:00:55 +0100")

Óscar Fuentes <ofv@wanadoo.es> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> >> BUT, it is a bad thing if people use SickStart to write scripts
>>> >> that they could have written in a free scripting language.
>>> >
>>> > There are no scripting languages for MS-Windows that are Free
>>> > Software, AFAIK.

To clarify on exactly what type of scripting language this is: KiXtart
is not a general purpose scripting language it was specifically designed
to be used as a Windows logon script processor.

It would not make sense to port it to a non-Windows platform because the
majority of functionality is derived from wrapping Win32 API calls.

A free software alternative can exist but primarily it would have to
operate by making Win32 API calls.

>>> After a cursory look at kixtart, I would say with confidence that Tcl/Tk
>>> with the twapi package provides a superset of its features.
>>
>> Does Tcl/Tk provide access to the low-level Windows APIs, like
>> Registry and Win32 functions?
>
> Registry access is provided by Tcl out of the box. Access to Windows
> APIs is provided by the twapi package.
>
> https://twapi.magicsplat.com/

An equivalent in functionality would a self-contained Tcl kit which
includes the TWAPI library, but this is less appealing for three reasons
(and bear in mind that I like Tcl):

- When I looked into building a Tcl kit from source there was no
  documented or standard method to build one, what is recommended is to
  download a pre-built binary and trust it

- The self-contained Tcl kit would be significantly larger than the
  KiXtart binary, this will get copied across the network whenever a
  user logs in

- When I tried querying and mapping printers with TWAPI it didn't seem
  to work correctly

I'm sure it can be argued that any scripting language with an FFI
interface is suitable, but in practical terms the only options which
don't require crafting your own portable interpreter are VBScript,
JScript, and PowerShell - these are already available locally.

P.S. If anyone was still interested to look at the package it has now
moved to sourcehut: https://git.sr.ht/~mew/kixtart-mode

Thanks,
Morgan



  reply	other threads:[~2022-12-20 23:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-09 20:55 [ELPA] New package: kixtart-mode morgan
2022-11-09 21:10 ` Philip Kaludercic
2022-11-09 21:24   ` Morgan Willcock
2022-11-09 22:04 ` Stefan Monnier
2022-11-09 22:48   ` Morgan Willcock
2022-11-09 23:58     ` Stefan Monnier
2022-11-10  0:20       ` Morgan Willcock
2022-11-10  0:40         ` Juanma Barranquero
2022-11-13  4:18       ` Richard Stallman
2022-11-13  7:09         ` Eli Zaretskii
2022-12-11 23:33           ` Richard Stallman
2022-12-12 12:14             ` Eli Zaretskii
2022-12-11 23:50           ` Óscar Fuentes
2022-12-12  6:17             ` North Year
2022-12-12 12:21             ` Eli Zaretskii
2022-12-12 14:00               ` Óscar Fuentes
2022-12-20 23:59                 ` Morgan Willcock [this message]
2022-11-10  8:16   ` Akib Azmain Turja
2022-11-10  8:25     ` Eli Zaretskii
2022-11-10  9:00       ` Akib Azmain Turja

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://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735994oeb.fsf@ice9.digital \
    --to=morgan@ice9.digital \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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/emacs.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).