News for hackers. Stuff that matters.
Re:Typed Config Languages by amelius on Friday January 21, 2022 @08:41PM (#30032290)
The trick is to not use config languages, but use the same language as you already wrote the rest of the application in.

Your application then becomes a library that is invoked by the config file.

This also enables advanced features such as configuring call-back functions.

Re:Typed Config Languages by nonbirithm on Friday January 21, 2022 @08:49PM (#30032343)
This works well if the program is written in a dynamic language like Lua, but in a compiled language it not only requires a recompile per change, but an entire development environment set up in order to modify the config at all.
Re:Typed Config Languages by amelius on Saturday January 22, 2022 @03:59AM (#30034971)
You could also use a dynamic language and make calls using a FFI.