Re: div bug
Re: div bug
- Subject: Re: div bug
- From: Philip Aker <email@hidden>
- Date: Tue, 4 Aug 2009 07:08:56 -0700
On 2009-08-04, at 03:04:21, Michael Ghilissen wrote:
I am discovering the value of tclsh, after reading your post and I
would like to explore from there.
Does that mean that tclsh could be used as a calculator to overcome
the math shortcomings in AS?
Yes, but see below…
I found these tutorials:
http://www.beedub.com/book/3rd/Tclintro.pdf
http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html
I learned the Tcl basics from Brent Welsh's book after bumbling around
for years in the Alpha application on Systems 7-9. Tcl's math
capabilities have improved since that edition. I have benefitted
enormously from that book and found the developmental presentation to
be well considered.
On Mac OS X, there are many extra facilities available (including a
math package) in the stock system install (look in /System/Library/Tcl).
For Tcl in general on the Mac, the best is yet to come -- it's
graphical end (Tk) was recently integrated integrated with the Cocoa
UI widgets. I'm not sure if it will get out of beta before Snow
Leopard but it's a spectacular intertwining of a traditional unix
event loop and the Mac OS X Cocoa runtime (the analogy is like having
a machine with both hemispheres of the brain working). This is
radically different from the Ruby/Python design and I think bears more
promise than those implementations.
[…]
Do you think it's overkill; or is there a benefit in pursuing this
approach to integrate complex calculations/computaions in AS?
Well, yes and no.
For the occasional value easily attained in Tcl (or from Perl, Python
and Ruby) I'll use dss integrated into an AppleScript.
As a consistent policy for using more complicated/lengthy scripts, I
either:
* Use a script bundle format and keep the other language script files
in the Resources/Scripts subfolder of the bundle and call them with a
dss -- basically I dislike having to escape quote scripts.
or,
* Use a dedicated language component (see: <http://www.vcn.bc.ca/~philip/osa/index.html
>) if I need an applet or droplet completely done in one or another
of those languages.
HTH,
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >div bug (From: julifos <email@hidden>) |
| >Re: div bug (From: Philip Aker <email@hidden>) |
| >Re: div bug (From: Michael Ghilissen <email@hidden>) |