Tclers

757 posts

Tclers

Tclers

@TclLang

Katılım Temmuz 2017
0 Takip Edilen283 Takipçiler
Tclers
Tclers@TclLang·
New feature in #Tcl9 – part 35: vwait - controlled by several new options Which one? Well, all! in Tcl 8.6 vwait did not have any options at all. Now, there are 🔟❗️Too many for a short post like this. Have a look yourself: 🔗 tcl-lang.org/man/tcl9.0/Tcl…
Tclers tweet media
English
0
0
3
40
Tclers
Tclers@TclLang·
A gem in Tcl (version 8.5.0+): calculating with different bases. How would you add the hexadecimal number 3f and the binary number 100011 in Tcl? expr 0x3f+0b100011 The result is decimal: 98 You can also use this for quick conversion: expr 0x3f44d1 You get: 4146385
English
0
0
3
60
Tclers
Tclers@TclLang·
•March 26th, 2026: Registration opens •June 17th, 2026: Deadline for submissions of abstracts •June 19th, 2026: Notification of acceptance; tentative program •June 30th, 2026: Registration ends •July 15th, 2026: Meet & greet
English
0
0
0
34
Tclers
Tclers@TclLang·
Registration to the OpenACS and Tcl/Tk Conference 2026 is now open! The conference is in Vienna, Austria, July 16th - July 17th Here are the important dates:
English
1
1
0
64
Tclers
Tclers@TclLang·
You may know that Tcl can do this: set a 2; set b 5 return [expr {$a<$b ? 1 : 0}] It returns 1 when $a<$b, otherwise 0. But did you know that this works as well: return [expr {$a<$b ? -1 : $a>$b ? 1 : 0}] It will return -1 when $a<$b, 1 when $a>$b, else 0!
English
0
0
0
49
Tclers
Tclers@TclLang·
Looking for a language server (LSP) for Tcl with multi-editor support? This one seems pretty comprehensive: 🔗 github.com/bitwisecook/tc… From highlighting, call hierarchy, shimmer detection ... to code action and more, it is packed with features.
English
0
0
1
106
Tclers
Tclers@TclLang·
Well, of course you can easily build such a command in Tcl and learn a lot doing so.
English
0
0
0
27
Tclers
Tclers@TclLang·
Today's random page from the Tcler's Wiki: 🔗 wiki.tcl-lang.org/page/Block%2Dl… Tcl has global variables and variables that are local to procedures. Does it also have block variables, i.e. variables local to a block of code?
English
1
0
0
42
Tclers
Tclers@TclLang·
New feature in #Tcl9 – part 34: socket ... -nodelay ... -keepalive ... Network sockets can now be configured to set or query the TCP keepalive and nodelay options on the socket. Hmm, I have no useful example of this as I haven't actually used `socket` ...
English
0
0
3
65
Tclers
Tclers@TclLang·
That is what the new `-command` option is good for. You can provide a command that takes the matches (substrings) and does with them want you want to happen!
English
0
0
1
49
Tclers
Tclers@TclLang·
New feature in #Tcl9 – part 33: regsub -command ... — Generate the replacement for a regular expression by calling a command Sometimes, a simple `regsub` is not good enough. You may need to do more than just substituting matches into placeholders.
English
2
0
2
75
Tclers
Tclers@TclLang·
Lots of new features have been added, e.g. support for numbered lists, block quotes, tables, and HTML entities. See here for details: 🔗@dont-email.me%3E" target="_blank" rel="nofollow noopener">newsgrouper.org/%3C10o6d61$1u2…
English
0
0
0
54
Tclers
Tclers@TclLang·
Ruff!, the "Runtime function formatter" has released version 3.0.4 This library takes Tcl comments written into your source code and formatted mainly as markdown, and produces HTML documentation pages from this. 🔗 ruff.magicsplat.com
English
1
0
0
85
Tclers
Tclers@TclLang·
There have been a few Tcl-related articles on 🔗 medium.com lately. If you have a subscription, you can read about: - Tcl: The Most Underrated, But The Most Productive Programming Language - Tcl vs. Bash: When Should You Choose Tcl?
English
1
0
1
109
Tclers
Tclers@TclLang·
lsearch -stride 3 {a A amen b B bank c C citron} c 6 Here, each three elements "a a amen", "b B bank" and so on are regarded as one group. Together with the `-index` option, you can search in any group element!
English
0
1
1
63
Tclers
Tclers@TclLang·
New feature in #Tcl9 – part 32: lsearch ... -stride ... — Search a list by groups of items [lsearch ...] is powerful. For flat lists, the -stride option in Tcl 9 can kind of pretend that your list is "nested". In fact, it groups a number of items and treat them as a unit:
English
1
0
2
85
Tclers
Tclers@TclLang·
- ... - Cookies, redirects, retries, challenge-response authentication handled automatically - Built-in proxy support - Non-blocking operation (even during name resolution) - Client side WebSockets, HTTP/2, TLS 2.0
English
0
0
1
54
Tclers
Tclers@TclLang·
Need another Tcl package to access web resources? Try www – version 2.9 🔗 chiselapp.com/user/schelte/r… - Pure Tcl package - Commands directly return requested data (no need to deal with tokens or cleanup) - ...
English
1
0
2
61