Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tcl is an aw some configuration language. Delete all the commands to make it non-Turing complete. Throw in infix assignment for ergonomics and you have a minimal configuration language that can be enhanced by adding back more commands as needed.


I think I get this. Would you have any code examples laying around?


MacPorts' Portfile[1], maybe? Portfile is being evaluated entirely within interp[2] with only few functions exposed inside the environment

[1]: https://github.com/macports/macports-ports/blob/master/lang/...

[2]: https://www.tcl.tk/man/tcl8.4/TclCmd/interp.htm


Very decent, that file from the Macports repo looks very clean and sane. Thank you.



Aw some?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: