Earlier quoted context omitted.
It's my first choice if I have to build a standalone app with GUI. With freewrap you can build an executable for Windows and the same source works for Linux. I wonder why it isn't more popular.
There is a strong sentiment that Tk is not attractive/not platform specific enough. (I guess this has been at least somewhat remedied in later releases, but that doesn't necessarily have people taking a second look)
Tänzer – An industrial web server framework for Tcl
41–50 of 81 posts
Re: Tänzer – An industrial web server framework for Tcl
#42I have just took a quick glimpse and the source seems to be written very clearly. It is an excellent example of how coding in tcl looks like. Perhaps this could be used as an example when you are learning to program in tcl. I don't use tcl neither I know what the actual state of available libraries the performance is, but tcl honors its fame as an easy to read language, this is not Perl. One feature I like a lot is t…
Relating for xan: One of the things that keeps my heart beating and my pulse flowing is knowing that one day, maybe ONE DAY Tcl can take the limelight again on the stage of web application development and maybe even curl up into a cozy little niche in the ever privacy-abrogating cabal of IoT stuff, too. My choice of language for implementing tänzer is not just due to my love for Tcl's minimalist syntax, but also, as…
Edited: Grammar.
Re: Tänzer – An industrial web server framework for Tcl
#43I have just took a quick glimpse and the source seems to be written very clearly. It is an excellent example of how coding in tcl looks like. Perhaps this could be used as an example when you are learning to program in tcl. I don't use tcl neither I know what the actual state of available libraries the performance is, but tcl honors its fame as an easy to read language, this is not Perl. One feature I like a lot is t…
Re: Tänzer – An industrial web server framework for Tcl
#44Relaying for xan: Part of my reason for being so hellbent upon proliferating tänzer is to improve the state of affairs for Tcl's perception by the wider community. It's a beautiful language, and a well-considered ecosystem. It never really ceased being that as it aged ever so gracefully, so I figure I shall become some larger-than-life PARTY HARD AND LISTEN TO BEAUTIFUL MUSIC! figurehead to spread some cheer and joy…
+ It combines macro ish text substitution with really, really, really good scoping and loop constructs.
+ A built in event handler is awesome.
+ Tk widgets look just fine for the one off GUI that routinizes a single repetitive task.
+ (Surprisingly) I almost never need float math in a script, one of the things it's not good at.
+ Tcl doesn't try to provide what should be done in C anyway (Python, Perl, Ruby I'm looking at you....)
Re: Tänzer – An industrial web server framework for Tcl
#45Well now I feel old. I remember writing a web app in Tcl way back in 2000 or so right after I graduated. From what I recall, AOLServer was not as fun to program as this appears to be. http://aolserver.github.io/ TCL was actually a pretty OK language. I do remember that aolserver was a major improvement over CGI scripts.
With an abstraction layer similar in capabilities to what people know Rails for. With lots of C plugins as well.
Being part of the core developers meant I was a regular reader on tcl/tk forums, eagerly looking for the upcoming TIPs, following ActiveState work in the community and so on.
It was also the last time in my career that I used C on the job, instead of my then favourite C++.
I learned lots of stuff while there, but two important things in terms of programming languages were:
1 - scripting languages are great for prototyping
2 - if you ever plan to scale, use a compiled language for the get go instead (JIT/AOT)
On our case, due to certain circumstances, we were part of the .NET alpha program and started moving part of architecture to C#/Managed C++.
Re: Tänzer – An industrial web server framework for Tcl
#46Earlier quoted context omitted.
I know a couple of startuppy companies that are still using it, but it certainly feels like a language in decline. There's a lot that's elegant about it, but the syntax is awkward in practice, and compared to e.g. Python there are fewer libraries available and no really compelling advantage, IMO. It's a language that deserves better than it got - it should've become the standard for *nix config files (thanks RMS for…
> thanks RMS for the mess we have now I'm unfamiliar with the history you're referencing. Was it being anti-executable configs?
Re: Tänzer – An industrial web server framework for Tcl
#47set HOME [pwd] set DATABASE [lindex $argv 0] set DIM 10000
proc CalcLine {line} {
set termData [lindex $line 1]
set termDataLength [llength $termData]
foreach {x y} $termData {
set score1 0
set score2 0
set score3 0
foreach sData [split $y {:}] {
set sd [split $sData {,}]
set score1 [expr {$score1+[lindex $sd 0]}]
set score2 [expr {$score2+[lindex $sd 1]}]
set score3 [expr {$score3+[lindex $sd 2]}]
}
lappend newLine "$x [format %.4f [expr {($score1+$score2)/$score3}]]"
}
set returnVal "[lindex $line 0] [list [string map {\{ "" \} ""} [lsort -real -index 1 -decreasing $newLine]]]"
}proc Invoke {} { global HOME global DATABASE
set lCount 10
set wCount 0
set wData ""
set f1 [open $DATABASE "r"]
set f2 [open ${DATABASE}.j3 "TRUNC CREAT RDWR"]
while {[gets $f1 wordByte] >= 0} {
incr wCount
append wData [CalcLine $wordByte]\n
if {$wCount >= $lCount} {
puts -nonewline $f2 $wData
set lCount [expr {$lCount + 10}]
set wData ""
}
}
puts -nonewline $f2 $wData
close $f1
close $f2
}Invoke
Re: Tänzer – An industrial web server framework for Tcl
#48500 Internal Server Error The server was unable to fulfill your request. Generated by tanzer/0.1
Try again! Given that this thing is very much a work-in-progress, and I certainly wasn't ready to submit to HN (don't look at me like that! It wasn't me), I suppose one can forgive a little web framework that could of this sort of thing. I've got lighttpd in front of the site for now until I figure out what broke. :)