Should Elixir replace Ruby for simple scripting?

I haven’t seen this shared yet on this thread: Underjord | Scripting with Elixir

and you will never be able to edit the source files on the target system (since you don’t have them :joy:), which IMO is the whole idea of using scripts and not entire applications.

LOL. i can’t believe i overlooked this. I’ve wanted to try golang to experience zen-programming for a while now, but just never had a real reason to use it, as every big framework (web, app, or game) is never written in go. So, naturally, i end up using the language that the framework uses.

Anyway, it’s been a while since i started this topic, but now i’m getting back into phoenix, and mix tasks works just fine, like a little built-in cli app for each project(!!), as do .exs files. Elixir is actually a great scripting language (as are many past languages people mentioned). It seems the start-up time and portability hold it back, but i feel like it’s portability is no worse than ruby and python. On windows, you google it, download the installer, and click it. Or use the windows store. Two installers in the case of elixir: erlang/otp and elixir. Nothing comes pre-installed on windows 11, not even python. Who knows, maybe non-programmer-yet-savy windows people are installing stuff with winget nowadays too! And mac people are forced to learn how to use the terminal/cli to troubleshoot some problem. And linux people, well, are devs, at least in their minds. :wink:

I wish i got into babushka/clojure (as someone else mentioned). I personally know an emacs wizard that uses it. Lisp seems like the ultimate scripting language, made for writing extensions,… but i don’t want to start a journey into emacs in 2024, not even the beginner-friendly doom-emacs. One day lisp. One day. I use and love helix editor (rust); maybe they’ll add scheme support, as it’s used in the source.

i’m a bit suprised the vm doesn’t have some kind of quick-boot less-featureful option too, but the beam scares me, and anyway, i just trust the smart compiler folks. :slight_smile:

then again, i’m a little happy that everyone is still find use for their fav little scripting language in 2023/4. To each their own. Except those that use bash. What is wrong with you!?

You could start an Erlang node and then use erl_call to run the script.

1 Like