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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Tcl Programming Language: A Comprehensive Guide (2nd Edition)

134 点作者 teleforce大约 2 个月前

13 条评论

gricardo99大约 2 个月前
My favorite Tcl story is a little side note about how Tcl could have been the language of the web[1]<p><pre><code> the founding of Netscape occurred at the same time I was deciding where to go in industry when I left Berkeley in 1994. Jim Clarke and Marc Andreessen approached me about the possibility of my joining Netscape as a founder, but I eventually decided against it (they hadn&#x27;t yet decided to do Web stuff when I talked with them). This is one of the biggest &quot;what if&quot; moments of my career. If I had gone to Netscape, I think there&#x27;s a good chance that Tcl would have become the browser language instead of JavaScript and the world would be a different place! However, in retrospect I&#x27;m not sure that Tcl would actually be a better language for the Web than JavaScript, so maybe the right thing happened. </code></pre> Too humble Dr. Ousterhout! It would have been a far better language.<p>1 - <a href="https:&#x2F;&#x2F;pldb.io&#x2F;blog&#x2F;JohnOusterhout.html" rel="nofollow">https:&#x2F;&#x2F;pldb.io&#x2F;blog&#x2F;JohnOusterhout.html</a>
评论 #43588928 未加载
评论 #43589286 未加载
评论 #43593016 未加载
评论 #43591504 未加载
评论 #43588831 未加载
smj-edison大约 2 个月前
Funny that Tcl was mentioned today. I&#x27;ve recently been hacking on jimtcl[1] (a small footprint implementation of Tcl) to make objects multi-threaded safe, as that&#x27;s the core language that folk.computer[2] uses (the main authors are making the interpreter and reactive DB parallelizable rn, so I&#x27;ve been tinkering with how to reduce copying).<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;msteveb&#x2F;jimtcl">https:&#x2F;&#x2F;github.com&#x2F;msteveb&#x2F;jimtcl</a> [2] <a href="https:&#x2F;&#x2F;folk.computer&#x2F;" rel="nofollow">https:&#x2F;&#x2F;folk.computer&#x2F;</a>
dvektor大约 2 个月前
Surprised no mentions of sqlite yet :) I&#x27;ve always associated Tcl with sqlite because of how much it is used in their test suite and how you can have a tcl interpreter as a virtual table. Very interesting and seemingly often overlooked little language.
评论 #43592507 未加载
mdaniel大约 2 个月前
&gt; Some content has been removed in the second edition of the book because of limits on the number of pages<p>Lol, wut? The literal only working &quot;buy it now&quot; link is to a PDF. Page limits my ass. Or maybe &quot;Paperback: 660 pages&quot; was dangerously close to the Devil himself springing forth from the pages and turning all your codebase into VBScript
usr1106大约 2 个月前
I have known about Tcl since the 1990s. I remember Stallman advising not use it. Maybe he did not like the license?<p>Yesterday, over 30 years later I was forced to write my first code. Noticed that a Cisco switch had an incredibly bad ssh implemtation, so to automate some commands I needed expect scripting. Expect is based on Tcl.
评论 #43589142 未加载
评论 #43588543 未加载
评论 #43588682 未加载
7thaccount大约 2 个月前
I own the first edition of this book and it&#x27;s really good. I&#x27;ve written a few tcl scripts with it, but nothing major. Python just has the better ecosystem now for my needs. I might use tcl if I needed something really small though.
评论 #43590234 未加载
pjmlp大约 2 个月前
Nice memories of having our own AOLServer like clone, Vignette, routinely writing extensions in C, and also why since 2003 I tend to avoid languages without JIT&#x2F;AOT unless it is for banal OS and application scripting task.
at_a_remove大约 2 个月前
I may have to learn its other half, Tk, as a side project of mine is starting to feel less like something I can pull off as a &quot;wizard&quot; on the command line. I had wrestled with wxPython many moons ago and, while I got through it, I felt like I had perhaps taken a wrong turn.<p>As a side note, while I have seen many UI elements over the decades, I cannot help but think that the wizard (or whatever you would like to call it) has somehow escaped being listed as a standard UI element. Perhaps it is too large to count for many.
WillAdams大约 2 个月前
There is a source release at:<p><a href="https:&#x2F;&#x2F;www.tcl-lang.com&#x2F;software&#x2F;tcltk&#x2F;9.0.html" rel="nofollow">https:&#x2F;&#x2F;www.tcl-lang.com&#x2F;software&#x2F;tcltk&#x2F;9.0.html</a><p>but I&#x27;m not seeing an easy binary download --- used to be that the availability of a pre-compiled version, nicely packaged which would install easily on one&#x27;s platform of choice made it wonderfully accessible to new users.<p>Is that not a focus of the project these days?
评论 #43589792 未加载
评论 #43590224 未加载
VWWHFSfQ大约 2 个月前
&gt; this immensely flexible and versatile language<p>I would be interested to know if anyone ever built anything non-trivial that didn&#x27;t turn into a complete mess due to TCL&#x27;s general type-flimsyness and &quot;everything is a string&quot; philosophy.
评论 #43589109 未加载
评论 #43588089 未加载
评论 #43588797 未加载
评论 #43589511 未加载
评论 #43588413 未加载
评论 #43588671 未加载
评论 #43588622 未加载
评论 #43588529 未加载
评论 #43600042 未加载
评论 #43588572 未加载
评论 #43588017 未加载
评论 #43591745 未加载
评论 #43588136 未加载
评论 #43588084 未加载
评论 #43588426 未加载
synergy20大约 2 个月前
I had this book, it&#x27;s well written.
Fruitmaniac大约 2 个月前
Is Tcl still a thing? At my first job I extended with a set of data-processing commands.
评论 #43591703 未加载
评论 #43589021 未加载
fithisux大约 2 个月前
Best of the best. Bought it.