|
|
|
|
|
by yolkedgeek
17 days ago
|
|
This is a great comparison and I've been wondering about it for a while. Between babashka, janet(i discovered it just now), fennel, guile.
Which one would be a better scripting language?
Please tell me you experience, and if you are interested, we can work on a small article and benchmark about this. |
|
Babashka has replaced bash-scripting for me. I don't hate Bash, but why would I ever choose to use a language that has no true REPL, if I don't have to? bb is pretty much Clojure, which is the greatest choice if you're dealing with data - any data. Clojure is incredibly data-driven, which wins me over Janet. I also reach out to nbb whenever I need to deal with Node. e.g. scraping scripts driven by Playwright.
Janet is great when you need tiny runtime or you're dealing with subprocess-heavy scripts - Janet feels closer to actual shell syntax; or when you have to embed it to C/C++ program.
Fennel is indispensable for any Lua - mpv, Hammerspoon, AwesomeWM and Neovim configs, etc.