Updated 2018-01-16 06:01:07 by APN

The Tcl Programming Language is a comprehensive guide to Tcl, covering the latest (8.6) version of the language. Both the ebook and print versions are available.

Purchase information edit

Ebook version

The ebook version (PDF format), priced at $17.95, is available from Gumroad.

Print version

The print version is available from Amazon in USA/Canada and their European sites including UK, Germany, France, Spain and Italy. The print book is priced at $34.95 on Amazon USA. Prices outside the US/Canada will vary based on exchange rates, VAT and other taxes. If you like the book, positive reviews on Amazon are greatly appreciated.

You can also purchase the book directly from CreateSpace although you will not save any money and shipping charges might be rather high if you do not live in North America.

Print and Ebook bundle

Unfortunately, because of the different distribution methods (Amazon and Gumroad), there is no print+ebook bundle. However, if you are interested in both formats, you can avail of a discount with the following procedure:

  • If you buy the print version first, send an email with the invoice/order no. (no need for the whole receipt) to apnmbx-wits at yahoo and I will send back a coupon for $10 off on the Ebook at Gumroad. This method is particularly recommended for non-US customers.
  • If you buy the Ebook, you should automatically receive an email within a day with a coupon code for $10 off the print version. However, this coupon can only be used on CreateSpace, not Amazon as the latter has no such facility. Unfortunately, non-US customers may incur higher shipping charges but that's the best I can do for now.

Book description edit

Paperback: 668 pages
Publisher: CreateSpace Independent Publishing Platform (July 18, 2017)
Language: English
ISBN-10: 154867964X
ISBN-13: 978-1548679644
Product Dimensions: 7.5 x 1.5 x 9.2 inches

For a full Table of Contents, download this PDF.

From the back cover:
The Tcl Programming Language is a comprehensive guide to the current
version (8.6) of this immensely flexible and versatile
language. Starting with the basic features, it expands its scope to
include the more advanced concepts, facilities and programming idioms
from which the language derives its power.

* Begin with the basics of Tcl syntax and commands for operating on

* Get acquainted with the flexible and uniform execution model that
enables metaprogramming, custom control structures etc.

* Learn to modularize your code with namespaces, object-oriented
design and packages.

* See how intrinsic support for Unicode and encodings makes it a
breeze to localize your applications.

* Become conversant with the integrated event loop and how it
facilitates efficient asynchronous I/O models and the reactive style
of programming.

* Delve into Tcl's sophisticated I/O framework and write your own
reflected channels, transforms and virtual file systems.

* Understand the built-in facilities for inter-process communication
using pipes or the network.

* See how concurrent programming facilities like coroutines and
threads can simplify your code and make it more performant.

* Learn how to secure your application through the use of safe
interpreters for sandboxing.

* Interact with databases through the Tcl Database Connectivity

* Discover how software distribution and installation headaches are
eliminated with starkits and single file deployment.

The breadth of coverage and numerous examples will familiarize
newcomers to every aspect of Tcl programming. At the same time, the
depth and level of detail, and an exhaustive index, make The Tcl
Programming Language a valuable reference in every Tcl programmer's

Reviews edit

Support edit

Please send any errors or other comments about the book to apnmbx-wits at yahoo.

The sample scripts from the book are available at https://sourceforge.net/projects/magicsplat/files/ttpl/

Errata edit

Section, bottom of page 97, in the code example
    regexp {(?ic)RE} STRING

should be
    regexp {(?in)RE} STRING

Thanks to Saurabh G. for his careful reading! Executable scripts on Windows
    C:\temp>ftype TclApp=C:\Tcl\bin\tclsh.exe

should be
    C:\temp>ftype TclApp=C:\Tcl\bin\tclsh.exe "%1" %*

Section 6.4, bottom of page 162, the syntax description of dict for should be

Thanks to Gregor E.

Discussion edit

JJM - 2017-07-25 - Got the book in the mail, looks really great. Nice job.

arjen - 2017-07-06 19:35:22

Congratulations! It is a welcome addition to the Tcl library and a voluminous one at that :)

bll 2017-7-6 Looks very comprehensive. Looking forward to reading it.

ALX 2017-07-09 17:45 Year! First! :-) "Well, thanks for your prompt purchase! You are the very first buyer of my book! /Ashok"

RLH: Will there be a book/ebook bundle? APN No bundle because of the different distribution channels. But you might be able to make use of the discounted price as noted above. RLH Got them both. Reading through the book now. :)

MHo This book is simply overwhelming!

JOB - 2017-11-14 22:15:55

Congratulations as well! I quickly went through the TOC which looks really promising. Good to see that all those extensions and functionality recently added to the core like coroutines, TclOO, threads, database connectivity, etc. are all covered by the book. APN Thanks, and that was indeed one of the primary motivations behind writing the book.

SYStems did anyone buy the ebook via gumroad, I googled gumroad and the reviews are really bad.

APN When you say reviews, I presume you mean Gumroad and not the book :-) I'm surprised you saw so many negative reviews of gumroad because I chose it based on the positive reviews I'd seen. (Also because they take care of EU VAT without my having to individually file.) I think most negative reviews of gumroad are from the seller's perspective (which would be me), not the buyer's. Personally, I have had no issues with selling through them. About a hundred e-book copies have downloaded so far and have not heard of any complaints from buyers.

SYStems yes 100% I meant gumroad, not the book :)

DPG This book is great! I got the physical version because I'm just physical like that ;) This book has a good Index, which is important to physical book people. APN Thanks, appreciated. However, such comments on the book's Amazon page would be appreciated even more, hint, hint :-)