Re: "Strong typing vs. strong testing"

2010-10-17 Thread Nick Keighley
On 10 Oct, 10:44, Lie Ryan wrote: > On 10/02/10 20:04, NickKeighleywrote: > >>> > > In a statically typed language, the of-the-wrong-type is something > >>> > > which > >>> > > can, by definition, be caught at compile time. > > >> > Any time something is true "by definition" that is an indicati

Re: "Strong typing vs. strong testing"

2010-10-02 Thread Nick Keighley
On 1 Oct, 19:33, RG wrote: > In article , >  Seebs wrote: > > On 2010-10-01, RG wrote: > > >> Those goal posts are sorta red shifted at this point. [...] > > > Red shifted? > > > Moving away fast enough that their color has visibly changed. doppler shift for instance or one of them cosmologi

Re: "Strong typing vs. strong testing"

2010-10-02 Thread Nick Keighley
On 1 Oct, 11:02, p...@informatimago.com (Pascal J. Bourguignon) wrote: > Seebs writes: > > On 2010-09-30, Ian Collins wrote: > >> Which is why agile practices such as TDD have an edge.  If it compiles > >> *and* passes all its tests, it must be right. > > > So far as I know, that actually just

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Nick Keighley
On 27 Sep, 18:46, namekuseijin wrote: > Fact is:  almost all user data from the external words comes into > programs as strings.  No typesystem or compiler handles this fact all > that graceful... snobol? -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Nick Keighley
On 30 Sep, 15:24, TheFlyingDutchman wrote: > > > If I had to choose between "blow up" or "invalid answer" I would pick > > > "invalid answer". > > > there are some application domains where neither option would be > > viewed as a satisfactory error handling strategy. Fly-by-wire, petro- > > chemic

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Nick Keighley
On 30 Sep, 11:14, TheFlyingDutchman wrote: > > > "in C I can have a function maximum(int a, int b) that will always > > > work. Never blow up, and never give an invalid answer. " > > > > Dynamic typed languages like Python fail in this case on "Never blows > > > up". > > > How do you define "Never

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Nick Keighley
On 27 Sep, 20:29, p...@informatimago.com (Pascal J. Bourguignon) wrote: > namekuseijin writes: > > Fact is:  almost all user data from the external words comes into > > programs as strings.  No typesystem or compiler handles this fact all > > that graceful... > > I would even go further. > > Ty

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Nick Keighley
On 19 Aug, 16:25, c...@tiac.net (Richard Harter) wrote: > On Wed, 18 Aug 2010 01:39:09 -0700 (PDT), Nick Keighley > wrote: > >On 17 Aug, 18:34, Standish P wrote: > >> How are these heaps being implemented ? Is there some illustrative > >> code or a book showing how

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-18 Thread Nick Keighley
On 17 Aug, 21:37, Elizabeth D Rather wrote: > On 8/17/10 10:19 AM, Standish P wrote > > On Aug 17, 12:32 pm, John Passaniti  wrote: > >>> It is true that the other languages such as F/PS also have borrowed > >>> lists from lisp in the name of nested-dictionaries and mathematica > >>> calls them n

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-18 Thread Nick Keighley
On 17 Aug, 18:34, Standish P wrote: > On Aug 16, 11:09 am, Elizabeth D Rather wrote: > > On 8/15/10 10:33 PM, Standish P wrote: > > > >>> If Forth is a general processing language based on stack, is it > > >>> possible to convert any and all algorithms to stack based ones and > > >>> thus avoid m

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-16 Thread Nick Keighley
On 16 Aug, 09:33, Standish P wrote: > On Aug 16, 12:47 am, Nick Keighley > > On 16 Aug, 08:20, Standish P wrote: this is heavily x-posted I'm answering from comp.lang.c I also note that another poster has suggested you are a troll/loon you seem to be using some computer scie

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-16 Thread Nick Keighley
this is heavily x-posted I'm answering from comp.lang.c On 16 Aug, 08:20, Standish P wrote: > [Q] How far can stack [LIFO] solve do automatic garbage collection and > prevent memory leak ? I'm having trouble understanding your question (I read your whole post before replying). I strongly suspec

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-19 Thread Nick Keighley
On 18 July, 09:38, Emmy Noether wrote: > On Jul 18, 1:09 am, Nick <3-nos...@temporary-address.org.uk> wrote: > > Emmy Noether writes: > > > In this video, Stall man makes 4 promises to public but stalls on 2nd > > > of them. > > > I have no idea of the rights or wrongs of this case.  But I've

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-16 Thread Nick Keighley
On 16 July, 09:24, Mark Tarver wrote: > On 15 July, 23:21, bolega wrote: > > >http://www.gnu.org/philosophy/stallman-kth.html > > > RMS lecture at KTH (Sweden), 30 October 1986 did you really have to post all of this... > > read more »... ...oh sorry only about a third of it... > Perhaps as

Re: C interpreter in Lisp/scheme/python

2010-07-08 Thread Nick Keighley
On 8 July, 08:08, Nick Keighley wrote: > On 7 July, 17:38, Rivka Miller wrote: > > Anyone know what the first initial of L. Peter Deutsch stand for ? > > Laurence according to wikipedia (search time 2s) oops! He was born Laurence but changed it legally to "L." i

Re: C interpreter in Lisp/scheme/python

2010-07-08 Thread Nick Keighley
On 7 July, 17:38, Rivka Miller wrote: > Although C comes with a regex library, C does not come with a regexp library > Anyone know what the first initial of L. Peter Deutsch stand for ? Laurence according to wikipedia (search time 2s) -- http://mail.python.org/mailman/listinfo/python-list

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 13:50, Bruno Desthuilliers wrote: > Nick Keighley a écrit : > > > > > > > On 9 June, 10:35, Bruno Desthuilliers > 42.desthuilli...@websiteburo.invalid> wrote: > >> Nick Keighley a crit : > > >>> I'm trapping mouse cli

Re: passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
On 9 June, 10:35, Bruno Desthuilliers wrote: > Nick Keighley a crit : > > I'm trapping mouse clicks using > > > canvas.bind("", mouse_clik_event) > > > def mouse_clik_event (event) : > >      stuff > > > What mouse_clik_event does is modif

passing data to Tkinter call backs

2010-06-09 Thread Nick Keighley
to pass data to the callback function? Some GUIs give you a user-data field in the event, does Tkinter? Or am I reduced to using global data? A Singleton is just Global Data by other means. -- Nick Keighley This led to packs of feral Global Variables roaming the address space. -- http://mail.pyt

Re: Haskell's new logo, and the idiocy of tech geekers

2009-10-03 Thread Nick Keighley
On 3 Oct, 00:33, Xah Lee wrote: > Haskell has a new logo. A fantastic one. Beautiful. For creator, > context, detail, see bottom of: > > • A Lambda Logo Tour >  http://xahlee.org/UnixResource_dir/lambda_logo.html I'm amazed he thinks anyone would donate 3 USD to that site -- http://mail.python