TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Thoughts on Tcl as a Language in 2024?

19 点作者 Decabytes10 个月前

8 条评论

johnbuckman10 个月前
<a href="https:&#x2F;&#x2F;www.mistachkin.com&#x2F;joe&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mistachkin.com&#x2F;joe&#x2F;</a> has been talking about setting up a Tcl Foundation and to use that to try to corral corporate donations toward further development. I think it’s a good idea and I’m trying to help. I’d recommend contacting Joe if you’d like to help.
johnbuckman10 个月前
We’re using tcl’s Androwish build, to write tablet apps for Android to control our espresso machine, and the app runs nicely on Mac&#x2F;win&#x2F;linux “for free” and also makes app development more pleasant.<p>Distribution of an app with source easily modified (no build step) encourages tinkering.<p>Androwish also has a cool mp4 casting mode which replaces the screen rendering, that lets you use your app inside a web browser. <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=2GBmB6JSDnQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=2GBmB6JSDnQ</a>
restore2410 个月前
IMO, it has the best ergonomics among scripting languages for embedding into native applications. I&#x27;m using it as a serialization format for a game, with the JimTcl interpreter. It&#x27;s easy to create fluent hierarchical structures that straddle the line between code and data:<p><pre><code> object &quot;player&quot; { health 100 ammo 10 } </code></pre> <a href="https:&#x2F;&#x2F;github.com&#x2F;msteveb&#x2F;jimtcl">https:&#x2F;&#x2F;github.com&#x2F;msteveb&#x2F;jimtcl</a>
评论 #41113248 未加载
ofalkaed10 个月前
I feel much better about it in 2024 than I did in any year prior, probably because I finally sat down to actually learn it and tk. I am enjoying it quite a bit and I no longer hate doing GUI stuff.
mayd10 个月前
Apart from the Tk and Expect extensions, one of the best parts of Tcl its general extensibility through the Tcl C API. Unfortunately, this is one of Tcl&#x27;s less well-documented features. Most books and online tutorials either ignore it completely or, at best, provide perfunctory discussion and examples.<p>The 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.<p>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.
评论 #41113129 未加载
nrclark10 个月前
I like Tcl. It&#x27;s still very common in the electronics design industry, and it&#x27;s a fun language to write things in. Kind of feels halfway in-between LISP and Bash. Tcl is also found in Python (weirdly) as the implementation language of Tkinter.<p>It&#x27;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&#x27;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.<p>These days, I think that Lua and Python are more common as extension languages - and that&#x27;s totally fine. But there will always be room in my toolbox for Tcl.
评论 #41091516 未加载
vincent-manis10 个月前
It&#x27;s really sad that Tk has gotten a lot less love in recent years. With the advent of multi-megabyte UI frameworks (one is named for a subatomic particle), we have forgotten the benefits of a small, well-documented UI interface that is highly portable across OSes and architectures, and whose API can be invoked from virtually any language, with only a thin wrapper (I routinely use Tk from Scheme, for example).<p>Yes, Tk UIs nowadays look kind of clunky, and they don&#x27;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.
评论 #41089993 未加载
turtleyacht10 个月前
Commercial support available for 8.6.<p>8.6.14 released February of this year, with 9.x beta May 2024.<p>Tcler&#x27;s Wiki has recent posts:<p><a href="https:&#x2F;&#x2F;wiki.tcl-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wiki.tcl-lang.org&#x2F;</a><p>Still hoping the older books are relevant.
评论 #41089176 未加载