this post was submitted on 27 Aug 2024
113 points (94.5% liked)
Linux
48185 readers
1109 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Elixir checks most of those boxes. If you want a good functional scriptibg language, Elixir soynds like the go to. Some lisp language like guile should also be sufficient, and probably have a lighter footprint.
This requirement stands out though:
Thats basically what ansible does. If you plan on doing this to multiple machines you should just use ansible. Also how do you plan on ensuring the scripting interpreter is installed on the machines?
Elixir is quite big (yeah, it's certainly smaller than something like java... sorry for not specifying what I mean by "small disk footprint").
Ansible requires python on the target machine (or a lot of extra-hacky workarounds) so... I could just use python myself :)
BTW getting ansible to do anything besides the very straightforward usecases it was meant for is a huge pain (even a simple if/else is a pain) and it's also super-slow, so I hate it passionately.
Ideally I'd just copy the interpreter over via ssh when needed (or install it via the local package manager, if it's available as a package)
If python is too big for you and you're dealing with heterogeneous systems then you're probably stuck with
sh
as the lowest common denominator between those systems. I'm not aware of any scripting languages that are so portable you can simply install them with one file over scp.Alternate route is to abandon a scripting interpreter completely and compile a static binary in something like Go and deploy the binary.
There was also some "compile to bash" programming languages that I've sneered at because I couldn't think of a use case but this might be one.