DEV Community

What is the best language for scripting?

Victor Osório on December 06, 2019

In your opinion, what is the best language for scripting? Trade-offs Here is some trade-offs: It MUST be an interpreted language It S...
Collapse
 
benbot profile image
Benjamin Botwin

It doesn’t have a big web dev presence, but Lua is a fast and fantastic language for scripting. It’s so small that its entire interpreter is meant to be embedded into larger programs. That’s why so many games are made with Lua scripting support.

Check out neovim and love2d for some great programs with Lua apis

Collapse
 
deciduously profile image
Ben Lovy

I've had a surprisingly lovely experience with ClojureScript, using lumo or planck. It's a great language for small automation tasks, robust built-in library, easy to extend and maintain, runs quick enough for me when using these solutions (JVM Clojure is too heavy for this). In terms of expressivity, if you know Clojure, it's second to none. If you don't though, it's not easy to read, so if your scripts need to be shared around a lot it might not be the best choice either. It's definitely a niche tool, so you're largely on your own for support. For personal use, though, I haven't found a better experience.

Collapse
 
vepo profile image
Victor Osório

Clojure as scripting... Oh my God!!! I need to learn more clojure. We usually use the language we already know.

In the company that I work, we have a proprietary language that is optimized for speed... The have some process with that language + python + bash. It is horrible to make any change!

Collapse
 
devhead profile image
dev-head

You already picked them; however I'd add Go.