Description:
The Tcl programming language and related tools.
|
|
|
Google's Go language and "goroutines"
|
| |
Has anyone who understands Tcl 8.6 coroutines looked at Google's new "Go" language and its "goroutines"? ([link]). From the little I know, it seems to me that Tcl 8.6 could support a very similar model of concurrency.
|
|
exec command changing forward slash in windows & cmd.exe fails
|
| |
(bin) 9 % exec cmd.exe /c edit.com Works fine (bin) 10 % set t "cmd.exe /c edit.com" cmd.exe /c edit.com (bin) 11 % exec $t & couldn't execute "cmd.exe \c edit.com": no such file or directory (bin) 12 % the /c is changed to \c. I tried //c & \\c with the same results I also put the full path to cmd.exe with the same results.... more »
|
|
Embarassingly simple Tk question
|
| |
I'm writing a little application to update a database table. I read everything in and display it in a tablelist which is gridded into a toplevel with a couple of scrollbars. (There are only a couple of hundred rows and a couple of columns, so it's feasible to read everything in once-and-for-all.)... more »
|
|
Regular expressions, compilation & tcl 8.6...
|
| |
Hi all, Has anything changed noticeably in the cache Tcl uses for caching regular expressions? I tried to verify a large set (thousands) of small & simple regular expressions, with "regexp $one {}" and Tcl resulted in occupying 800MB or RAM. Is this expected? (I remembered that the last N expression compilations were kept in... more »
|
|
center a toplevel
|
| |
Hi all, I want to center a toplevel on the screen. I create it, and then center it, for example: package require Tk ...proc center_win {win} { wm geometry $win +[expr {([winfo screenwidth $win] - [winfo width $win]) / 2}]+[\ expr {([winfo screenheight $win] - [winfo height $win]) / 2}] ...proc create_toplevel {} {... more »
|
|
O_DIRECT and tcl
|
| |
Hi, I'm writing a pure TCL application that one program is reading commands from a file in NFS (network file share). I'm using "open" command and "gets" command, than "seek" to the first line and "gets" again. One scripts is writing to the file locally and other script reads it from NFS. the file is being changed in 100 ms rate.... more »
|
|
tcl ssh extension library?
|
| |
Before proceeding let me say yes I know I can use expect and even tcl to call the ssh client executable. Been doing that with success for some. What I would like to find out is if someone has put together a tcl extension that directly accesses the libssh2 libraries. I know that tclcurl says it does but this is for purposes of sftp file transfers.... more »
|
|
Using Snit options
|
| |
Hi I am doing my first experiments with Snit and was definately enjoying the experience until I got stuck trying to use options with a - configuremethod... In my constructor I want to use an option, say -radius, to initialise the size of a circle. I then calculate the x,y coordinates based on the value $options(-radius). Fine.... more »
|
|
|