Develop Cross-Platform CLI and GUI Tools with Tcl/Tk
13 points by aryonoco 2 hours ago | 4 comments

em-bee 3 minutes ago
the problem with Tcl/Tk is Tcl. the author does write about the quirks and problems, so this is a good article, but the end of it is that Tcl is simply not a language that i am interested in mastering. just like shell scripting. i'll use it if i have to, but it is not my preference.

and as the article also mentions what makes the apps cross platform is the native or near-native GUI. and apparently Tk is good for that.

but i'd rather use a nicer language with it. again, the article does talk about python, and points out that the Tk bindings in python are simply not good enough. that was very insightful, and i am glad to know.

however i would like to know if any other languages do better here. what about go for example? has anyone tried Tk with other languages and can share some experience?

reply
piloto_ciego 7 minutes ago
Tkinter or other Tk based GUI interfaces are the immediate tool I reach for whenever I build something that's not in the CLI or in the browser.

My general "daily driver" is python and I love that I can just spin up a cross-platform tool immediately with it. Tcl/Tk rule and are insanely useful.

reply
em-bee 2 minutes ago
how is your experience with the problems with Tk and python as described in the article?
reply
mbirth 31 minutes ago
Fun fact: macOS hex editor "Hex Fiend" uses Tcl for its templating language:

https://github.com/HexFiend/HexFiend/tree/master/templates

reply