Writing Mikrotik RouterOS scripts is like writing brainfuck.
@abstractcode @futzle My own experience of writing DSLs is that I can build on someone else's work.
* Tcl used to be popular, as it had a 'safe' mode which allowed for easy language embedding. Basically LISP without the forest of parenthesis. I used this several times for customisation of printing systems.
* Lua would be today's equivalent, but the language itself is not extendable. It does have some very fast JITs so you can use Lua in the packet forwarding plane if the router is doing high-touch CPU forwarding. Lua also has nice C integration, southbound: so technical functions do not need to be re-written, northbound: so it can be called from C (and thus almost anything else).
* Python is widely known. Packet forwarding in Python would not perform well. But Python is a good choice for *describing* a packet forwarding: the resulting datastructure can then be run by another language. The graphing package ggplot2 has the grammar of a graph being described by R functions, and the resulting grammar datastructure then being run by C++ code. Ggplot2 inspired a lot of programs to take a grammar-driven approach to devise input to high-performance subsystems. This seems to me to be superior to a standalone language (in the case of graphs, GNUplot; which is in the latest version is making a start to being grammar based).
@glent @abstractcode Yes, I have a soft spot for Lua, and became quite good at it where it was the embedded language for a home automation system. RouterOS scripting is less elegant but I suppose I shall learn to live with it.
@futzle
Only with more uncanny valley given that brainfuck looks nothing like language.
@futzle Writing a good DSL is hard and requires a lot of iteration and a context where it will add enough value to be worth learning it.
Developers are really bad at identifying the later and rarely do the former.