This kind of stuff is the bread and butter of Racket. For example Racket comes bundled with an implementation of Algol 60 that lets you write Algol in your Racket programs. https://docs.racket-lang.org/algol60/
There's two implementations of Javascript https://docs.racket-lang.org/ecmascript/index.html and https://docs.racket-lang.org/javascript/intro.html, an implementation of Forth https://docs.racket-lang.org/forth/index.html and a lot more.
https://github.com/racket/algol60/blob/master/examples/nquee...
I used to try to write things in the most popular language for those things, like writing Prometheus exporters in Go. But I eventually realised I just didn't care that much, and now I write them in Ruby, and everything is sunshine and happiness again.
At the end we did a demo where we clustered all of our pis and we could send messages to each other's lcd screens.
Edit: protip go to the GitHub of the training person: https://github.com/jjcarstens/nervesconf2021_training
I guess any languages that have some kind of macros, like C, scala or rust.
As a non Ruby programmer I still appreciate its culture whose community best seems to explore code as art. One of Ruby's contributors @mame (also a talented #1 IOCCC winner) does this a lot who's famous for quine-relay [1] but has lots of other interesting art code projects in their repos.
[1] https://github.com/mame/quine-relay