Distribution of an app with source easily modified (no build step) encourages tinkering.
Androwish also has a cool mp4 casting mode which replaces the screen rendering, that lets you use your app inside a web browser. https://www.youtube.com/watch?v=2GBmB6JSDnQ
object "player" {
health 100
ammo 10
}
https://github.com/msteveb/jimtclThe other poorly documented feature is the objected-programming framework which was belatedly added after Tcl fell out of the mainstream of programming languages and so languishes unused.
The biggest problem of all is that that there is no online forum for Tcl users now that Google has dropped Groups. Usenet comp.lang.tcl was the main discussion forum and it is now gone.
There is also a fair amount of activity on the Tcl Wiki: https://wiki.tcl-lang.org .
It's not exactly a popular language these days, but it has its niches. It has a small runtime with an event loop and a nice GUI extension. It's stable, easy to embed into other programs, easy to write, supports networking and all kinds of OS operations, and has a large body of libraries and examples out there. Its performance is also pretty reasonable these days.
These days, I think that Lua and Python are more common as extension languages - and that's totally fine. But there will always be room in my toolbox for Tcl.
Yes, Tk UIs nowadays look kind of clunky, and they don't cover the entire span of things that a UI should manage. Neither of these is a fatal flaw; if somebody wanted to put in a small amount of money, both could be easily addressed. Since there is apparently no prospect of this happening, I expect Tk to fall further and further behind. Shame.
https://tkdocs.com/tutorial/styles.html
Personally part of what drew me to Tk is the old clunky aesthetic which ended up freeing me from fighting the QT or GTK or what ever aesthetic which tends to work against the things I want to do and caused me endless grief. Tk just works for me and I can mostly forget about themes, just make my UI and get on with it.
Re Scheme: you can do anything in Tk from Scheme as in any other language, if you're willing to use the Tcl (text-based) interface, as I do. The ease of interfacing to Tk via Tcl is one of the things I like most (I imagine somebody could do it from Cobol!), although there is a C interface as well.
I'm not particularly fond of Tcl as such (though one year I used it in the software engineering course I used to teach), but the integration of Tcl and Tk is a thing of beauty.
I loathed Tcl until I started into Tk, still causes me some grief but as a hobbyist the headaches of Tcl tend to be considerably smaller and easier to solve than the headaches of things like QT, wxWidgets, etc or even Tk from another language, which all left me spending more time looking for answers than programming. Tcl is growing on me, it and Tk are small enough that I can actually learn them well (at least well enough that I can generally answer my own questions), which is a huge plus for those of us who are learning to program in our freetime for our own projects. I can see why the professional programmers tend to push against them, there are better alternatives to Tcl these days and it will not be easy to create those flashy professional looking applications which draw in the consumers with Tk. Very much function over form here.
8.6.14 released February of this year, with 9.x beta May 2024.
Tcler's Wiki has recent posts:
Still hoping the older books are relevant.
The older books which are still in publication seem to all be 8.5 or 8.6 and are relevant, I don't recall coming across anything which did not work yet but I am not exactly working through them cover to cover, used them to get the basics and am now using them more as a reference than a guide. Might not be the latest and greatest methods but will get you going. Probably nearing end of life since 9 is in beta, hopefully they will get updated.