Re: Tabs versus Spaces in Source Code

2006-05-18 Thread Pascal Bourguignon
Edmond Dantes <[EMAIL PROTECTED]> writes: > It all depends on your editor of choice. Emacs editing of Lisp (and a few > other languages, such as Python) makes the issue more or less moot. I > personally would recommend choosing one editor to use with all your > projects, and Emacs is wonderful in t

Re: Tabs versus Spaces in Source Code

2006-05-18 Thread Pascal Bourguignon
"Jonathon McKitrick" <[EMAIL PROTECTED]> writes: > Pascal Bourguignon wrote: >> (defun ιοτα (&key (номер 10) (단계 1) (בכוכ 0)) >> (loop :for i :from בכוכ :to номер :by 단계 :collect i)) > > How do you even *enter* these characters? My browser seems to trap

Re: Software Needs Philosophers

2006-05-21 Thread Pascal Bourguignon
"SamFeltus" <[EMAIL PROTECTED]> writes: > Software needs philosophers is an interesting point, perhaps the most > important function of Philosophers is exposing Sacred Cows as just > Cattle. As I see it philosophers have a big problem: nobody need them, so they're out of job. That's why we see oc

Re: Software Needs Philosophers

2006-05-23 Thread Pascal Bourguignon
John D Salt writes: > <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > [Snips] >> Wrong. We live in a paradise of ideas and possibilities well beyond the >> wildest dreams of only 20 years ago. > > What exciting new ideas exist in software that are both important and > cannot be traced b

Re: programming by evolution?

2009-02-06 Thread Pascal Costanza
Xah Lee wrote: Pascal Constanza is a Common Lisp fanatic. It's Costanza, not Constanza. Thank you, Pascal -- ELS'09: http://www.european-lisp-symposium.org/ My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://c

Re: Python interpreter speed

2009-04-19 Thread Pascal Chambon
formance I think - that's both the power and the drawback of this (awesome) language. Regards, Pascal PS : I guess core python developpers will have much more accurate things to say about it ^^ Ryniek90 a écrit : Hi. Standard Python interpreter's implementation is written

Re: The Python standard library and PEP8

2009-04-19 Thread Pascal Chambon
icient ? I know they're not usual in OOP languages, but builtins like len() and iter() might be better anyway, since they deal with some magical problems (CF "special attributes lookups" in the python documentation) Regards, Pascal Emmanuel Surleau a écrit : Hi there, Exploring

Re: print as a function in 2.5 ?

2009-04-19 Thread Pascal Chambon
behaviour of Py3k's print() function. That way, if one day you switch to upper versions, a simple mass text replacing operation on all your files will do it in an instant B-) Regards, Pascal Stef Mientki a écrit : hello, For several reasons I still use Python version 2.5. I understand th

Re: How can I get path/name of the softlink to my python script when executing it

2009-04-19 Thread Pascal Chambon
Regards, Pascal Saravanan Shanmugham (sarvi) a écrit : Hi, I am writiing a script say "wabexec" in python I will then have softlinks from other softlinks like ls, waf,hello, etc that are in the same directory and pointing to wabexec. When some executes ./waf or ./he

Re: iterate to make multiple variables?

2009-04-20 Thread Pascal Chambon
Mark Tolonen a écrit : "Tairic" wrote in message news:95ea7bdf-2ae8-4e5e-a613-37169bb36...@w35g2000prg.googlegroups.com... Hi, I'm somewhat new to programming and especially to python. Today I was attempting to make a sudoku-solver, and I wanted to put numbers into sets call box1, box2, ...

Re: Interest in generational GC for Python

2009-04-20 Thread Pascal Chambon
to periodic GCs, like tracing garbage collectors. Or is CPython using a mix of both technologies (to prevent cycles for example) ? Regards, pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: and [True,True] --> [True, True]?????

2009-04-20 Thread Pascal Chambon
't work in all cases (if res1 evaluates to false, res2 will ALWAYS be returned), so we'd better use "res1 if bool else res2", the python dedicated operator B-) Regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Daemonic processes in multiprocessing

2009-04-25 Thread Pascal Chambon
s gets terminated (by its parent), they'll simply get adpoted by init, won't they ? Thanks a lot for helping me get rid of my confusion, regards, Pascal =QUOTES== daemon¶ <http://docs.python.org/library/multiprocessing.html#multiprocessing.Process.daemon>

Re: Marshal vs pickle...

2009-04-25 Thread Pascal Chambon
python as easy serializers. Regards, Pascal Lawson English a écrit : Marshalling is only briefly mentioned in most python books I have, and "pickling" is declared teh preferred method for serialization. I read somewhere that Marshalling is version-dependent while pickling is

Re: import and package confusion

2009-04-29 Thread Pascal Chambon
r) the submodule name must be in the __all__ attribute of the package (i.e, the __all__ array defiend in the package __init__.py file). I hope I haven't made you more confused with these quick explanations :p Regards, pascal Dale Amon a écrit : I am trying to get to the heart o

Re: Generator oddity

2009-05-01 Thread Pascal Chambon
use "for c2 in gen()]", at each loop of c1, a new gen is instanciated and looped-over to continue building the list. Whereas when you use "for c2 in it2)", it's always the same instance of gen which is used (it2), so after 3 loops on c2 this instance is exhausted, and the following iterations on c1 (and then attempts of looping on c2) don't give anything because the looping on c2 gives an exception "StopIteration". Regards, pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Tools for web applications

2009-05-01 Thread Pascal Chambon
toolkits I've tried). Regards, pascal Mario a écrit : What easyToLearn tools you suggest for creating: 1. powerfull web applications 2. desktop applications -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: File handling problem.

2009-05-02 Thread Pascal Chambon
code ? It might be a buffering problem (although when the file closes, I think buffers get flushed), else it's really weird... Regards, pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Warning of missing side effects

2009-05-02 Thread Pascal Chambon
warning if it returns "None". But the problem is, sometimes you WANT them to return None If you want to detect methods that don't have explicit "return" statements, then you'll have to play with abstract syntax trees it seems... much trouble for not much gain. I guess you'll quickly get the pythonic habits without needing all that ^^ Regards, pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: for with decimal values?

2009-05-02 Thread Pascal Chambon
t I'd check (my search yielded nothing). Write a function Else you can work on integers - for i in range (-105, 105) - and divide by ten just below... but concerning performances I don't know if it's a good idea ^^ Regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Daemonic processes in multiprocessing - solved

2009-05-02 Thread Pascal Chambon
Pascal Chambon a écrit : Hello everyone I've just read the doc of the (awesome) "multiprocessing" module, and there are some little things I don't understand, concerning daemon processes (see quotes below). When a python process exits, the page says it attempts to jo

Re: Which one is best Python or Java for developing GUI applications?

2009-05-05 Thread Pascal Chambon
nged. Anyway, I'd advocate the use of PyQt, which really offers tremendous possibilities - if your application isn't a simple office application, its' really worth turning towards pyqt. Regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Which one is best Python or Java for developing GUI applications?

2009-05-08 Thread Pascal Chambon
On Thu, May 7, 2009 at 1:42 PM, Pascal Chambon mailto:chambon.pas...@wanadoo.fr>> wrote: Hello When a lot of code using wxwidgets is in place, it's sure that moving to qt is a big task ; even though, thanks to qt's GUI designer, it's possible to quickly re

Re: php to python code converter

2009-05-08 Thread Pascal Chambon
udl be mandatory :p I'd like to have the opinion of people around : do you think that complete language translators like php<->python or ruby<->python are possible ? Impossible ? Not worth the effort ? Or must be reached by another way (eg. Parrot and stuffs) ? Regards, Pascal P

Re: php to python code converter

2009-05-08 Thread Pascal Chambon
D'Arcy J.M. Cain a écrit : On Fri, 08 May 2009 17:19:13 +0200 Pascal Chambon wrote: That's funny, I was precisely thinking about a php to python converter, some weeks ago. Such a tool, allowing for example to convert some CMS like Drupal to python, would be a killer app, when w

Re: php to python code converter

2009-05-08 Thread Pascal Chambon
D'Arcy J.M. Cain a écrit : On Fri, 08 May 2009 17:19:13 +0200 Pascal Chambon wrote: That's funny, I was precisely thinking about a php to python converter, some weeks ago. Such a tool, allowing for example to convert some CMS like Drupal to python, would be a killer app, when w

Re: Thread locking question.

2009-05-09 Thread Pascal Chambon
there (another data structure might give bugs, if not explicitly locked before use). On the contarry, there will be mixes on the console (stdout), since each thread can write to it at any moment. It's likely that the sources of all the pages will get mixed, on your screen, yep. ^^ Regards, pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: stand alone exec

2009-05-11 Thread Pascal Chambon
what's missing, but on windows, exept that tool I don't know much. Regards, Pascal prakash jp a écrit : Hi all, I want to run dos commands through python stand alone execs. The created Python stand alone executable (py2exe) works fine in my machine but on transferring the "

Implementing new encodings in python

2008-08-31 Thread Pascal Bach
how to do it. If somebody can tell me how I have to do it, or even point me to an example? Thank you for you help Regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-20 Thread Pascal Bourguignon
Mark Carter <[EMAIL PROTECTED]> writes: > I'd like to propose a coding challenge of my own. The challenge is to > reproduce the TEA (Tiny Encryption Algorith): > http://www.simonshepherd.supanet.com/tea.htm > in your language of choice. > > Here's the code, just two simple functions: > > void enci

__getattribute__ and __slots__

2006-04-14 Thread pascal . parent
Hi, I try to define a (new-style) class who: - have a __slots__ defined to be strict attributes, - return None if the attribute is 'ok' but not set, or raise a 'normal' error if the attribute isn't in __slots__. This code runs, but is it the good way? Thanks. class test(object): __slots__ =

Intra-package C extensions with freeze.py

2010-01-13 Thread Pascal Chambon
, pyrex, cx_freeze...) do that ? I haven't seen such things so far in their docs. Thanks for the attention, Regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Castrated traceback in sys.exc_info()

2010-03-17 Thread Pascal Chambon
rting from the exception catching frame. Regards, Pascal 2010/3/17 Michael Ricordeau > Hi, > > to log tracebacks, you can probably try traceback module. > > I use it like this : > > import traceback > # your code > > for line in traceback.format_exc().splitli

Precedence of py, pyd, so, egg, and folder modules/packages when importing

2010-03-20 Thread Pascal Chambon
dule types, when several of them are in the same path ? I have found nothing about it online. Thanks for the attention, regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Castrated traceback in sys.exc_info()

2010-03-22 Thread Pascal Chambon
Gabriel Genellina a écrit : En Wed, 17 Mar 2010 09:42:06 -0300, Pascal Chambon escribió: traceback functions indeed allow the manipulation of exception tracebacks, but the root problem is that anyway, since that traceback is incomplete, your "traceback.format_exc().splitlines()"

Re: Castrated traceback in sys.exc_info()

2010-03-23 Thread Pascal Chambon
Gabriel Genellina a écrit : En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon escribió: Allright, here is more concretely the problem : ERROR:root:An error Traceback (most recent call last): File "C:/Users/Pakal/Desktop/aaa.py", line 7, in c return d() File "C:/User

Directly calling python's function arguments dispatcher

2010-12-12 Thread Pascal Chambon
Hello I've encountered several times, when dealing with adaptation of function signatures, the need for explicitly resolving complex argument sets into a simple variable mapping. Explanations. Consider that function: def foo(a1, a2, *args, **kwargs): pass calling foo(1, a2=2, a3=3) wi

Re: Directly calling python's function arguments dispatcher

2010-12-13 Thread Pascal Chambon
Le 12/12/2010 23:41, Peter Otten a écrit : Pascal Chambon wrote: I've encountered several times, when dealing with adaptation of function signatures, the need for explicitly resolving complex argument sets into a simple variable mapping. Explanations. Consider that function: def f

[CfP] DLS'10

2010-04-19 Thread Pascal Costanza
Dynamic Languages Symposium 2010 October 18, 2010 Co-located with SPLASH (OOPSLA) 2010 In cooperation with ACM SIGPLAN John Ascuaga's Nugget, Reno/Tahoe, Nevada, USA http://www.dynamic-languages-symposium.org/dls-10/ * Call for papers * The 6th Dynamic Languages Symposium (DLS) at the

Troubles with python internationalization

2010-05-25 Thread Pascal Chambon
#x27;t sound cool to me. Does anyone know tools/program flags which would list/extract translations that don't seem used anymore ? Thanks for you help, regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal Costanza
On 10/06/2010 23:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? I guess somebody's just enjoying flame wars too much. Pascal

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-12 Thread Pascal Costanza
e. In fact, it seems to me that it's quite common that Common Lisp users do use several implementations on a regular basis, taking advantage of their various strengths depending on the task at hand. Just my €0.02. Pascal -- My website: http://p-cos.net Common Lisp Document Reposi

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-12 Thread Pascal Costanza
hat is not covered elsewhere. If you are interested in some fundamental AI concepts at the same time, this is one of the best choices. Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/c

Direct interaction with subprocess - the curse of blocking I/O

2009-06-29 Thread Pascal Chambon
ith a subprocess ? Or would this really require a library handling each case separately (win32 api, select().) ? Thanks a lot for your interest and advice, regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Direct interaction with subprocess - the curse of blocking I/O

2009-07-02 Thread Pascal Chambon
classes, I'll explore the opportunity for a higher level "file" object too whenever possible (a new filesystem api is in progress here at europython2009, it might be the occasion). regards, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal Costanza
"blow up". They may throw an exception, on which you can act. You make it sound like a core dump, which it isn't. Pascal -- My website: http://p-cos.net Common Lisp Document Repository: http://cdr.eurolisp.org Closer to MOP & ContextL: http://common-lisp.net/project/closer/ -- http://mail.python.org/mailman/listinfo/python-list

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal Bourguignon
TheFlyingDutchman writes: > In this example RG is passing a long literal greater than INT_MAX to a > function that takes an int and the compiler apparently didn't give a > warning about the change in value as it created the cast to an int, > even with the option -Wall (all warnings). I think it's

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal Bourguignon
Nick Keighley writes: > On 27 Sep, 20:29, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> If you start with the mindset of static type checking, you will consider >> that your types are checked and if the types at the interface of two >> modules matches you&#x

Problem installing psycopg2 in virtualenv (Ubuntu 10.04, Python 2.5)

2010-10-04 Thread Pascal Polleunus
ory ./psycopg/python.h:34:4: error: #error "psycopg requires Python >= 2.4" In file included from psycopg/psycopgmodule.c:32: Does anyone have any idea how to solve that? Thanks in advance, Pascal -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem installing psycopg2 in virtualenv (Ubuntu 10.04, Python 2.5)

2010-10-04 Thread Pascal Polleunus
On 05/10/10 00:11, Diez B. Roggisch wrote: Pascal Polleunus writes: Hi, I've problems to install psycopg2 in a virtualenv on Ubuntu 10.04. My problem is also explained on stackoverflow: http://stackoverflow.com/questions/3847536/installing-psycopg2-in-virtualenv-ubuntu-10-04-python-2-

Re: "Strong typing vs. strong testing"

2010-10-05 Thread Pascal Costanza
ecause they offer both type safety and succinctness. And when we need algorithms that should work the same independent of types, Haskell has typeclasses which are pretty intuitive, unlike the horrible C++ templates. Static typing still doesn't mesh well with certain kinds of reflection. Pas

Re: Problem installing psycopg2 in virtualenv (Ubuntu 10.04, Python 2.5)

2010-10-05 Thread Pascal Polleunus
On 05/10/10 10:18, Alex Willmer wrote: On Oct 5, 7:41 am, Pascal Polleunus wrote: On 05/10/10 00:11, Diez B. Roggisch wrote: Install the python-dev-package. It contains the Python.h file, which the above error message pretty clearly says. Usually, it's a good idea to search pa

Re: Is Programing Art or Science?

2012-04-02 Thread Pascal J. Bourguignon
ccc31807 writes: > Programming is neither an art nor a science, but a trade. > > It's not an art in the sense of painting, music, dance, poetry, etc., > because the objective isn't to make a beautiful something, but to give > instructions to a machine to accomplish some useful task. > > It's not

Re: Is Programing Art or Science?

2012-04-03 Thread Pascal J. Bourguignon
ccc31807 writes: > On Apr 2, 5:48 pm, "Pascal J. Bourguignon" >> This is a narrow-minded definition of programming. > > Well, that's the point. > > If we make a list and include things like: > computer science > software engineering > computer

Re: f python?

2012-04-11 Thread Pascal J. Bourguignon
Shmuel (Seymour J.) Metz writes: > In <87wr5nl54w@sapphire.mobileactivedefense.com>, on 04/10/2012 >at 09:10 PM, Rainer Weikusat said: > >>'car' and 'cdr' refer to cons cells in Lisp, not to strings. How the >>first/rest terminology can be sensibly applied to 'C strings' (which >>are sim

Re: John Carmack glorifying functional programing in 3k words

2012-05-03 Thread Pascal J. Bourguignon
Tim Bradshaw writes: > On 2012-05-02 14:44:36 +, jaialai.technol...@gmail.com said: > >> He may be nuts > > But he's right: programmers are pretty much fuckwits[*]: if you think > that's not true you are not old enough. > > [*] including me, especially. You need to watch: http://blog.ted.co

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-13 Thread Pascal J. Bourguignon
Steven D'Aprano writes: > The actual physical cost of typing is a small part of coding. > Productivity-wise, optimizing the distance your hands move is worthwhile > for typists who do nothing but type, e.g. if you spend their day > mechanically copying text or doing data entry, then increasing

Re: Lisp refactoring puzzle

2011-07-12 Thread Pascal J. Bourguignon
Neil Cerutti writes: > What's the rationale for providing them? Are the definitions > obvious for collections that a not sets? The rational is to prove that Xah is dumb. -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.

Re: A question about Python Classes

2011-04-21 Thread Pascal J. Bourguignon
chad writes: > Let's say I have the following > > class BaseHandler: > def foo(self): > print "Hello" > > class HomeHandler(BaseHandler): > pass > > > Then I do the following... > > test = HomeHandler() > test.foo() > > How can HomeHandler call foo() when I never created an in

Re: English Idiom in Unix: Directory Recursively

2011-05-17 Thread Pascal J. Bourguignon
Roland Hutchinson writes: > Sorry to have to contradict you, Don't be sorry. > but it really is a textbook example of > recursion. Try this psuedo-code on for size: > > FUNCTION DIR-DELETE (directory) > FOR EACH entry IN directory > IF entry IS-A-DIRECTORY THEN DIR-DELETE (entry).

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Pascal J. Bourguignon
t...@sevak.isi.edu (Thomas A. Russ) writes: > Well, unless you have a tree with backpointers, you have to keep the > entire parent chain of nodes visited. Otherwise, you won't be able to > find the parent node when you need to backtrack. A standard tree > representation has only directional link

Re: English Idiom in Unix: Directory Recursively

2011-05-19 Thread Pascal J. Bourguignon
t...@sevak.isi.edu (Thomas A. Russ) writes: > "Pascal J. Bourguignon" writes: > >> t...@sevak.isi.edu (Thomas A. Russ) writes: >> > >> > This will only work if there is a backpointer to the parent. >> >> No, you don't need backpointer

Re: Functional Programing: stop using recursion, cons. Use map & vectors

2011-05-23 Thread Pascal J. Bourguignon
torb...@diku.dk (Torben Ægidius Mogensen) writes: > Xah Lee writes: > > >> Functional Programing: stop using recursion, cons. Use map & vectors. >> >> 〈Guy Steele on Parallel Programing〉 >> http://xahlee.org/comp/Guy_Steele_parallel_computing.html > > This is more or less what Backus said in his

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

2009-10-02 Thread Pascal J. Bourguignon
Kenneth Tilton writes: > 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 Don't do that! If you want to watch the logo, just google for haskell

Re: Feedback wanted on programming introduction (Python in Windows)

2009-11-01 Thread Pascal J. Bourguignon
Thad Smith writes: > Richard Heathfield wrote: > >> ... so I cheerfully installed it on the user's desktop machine >> (Windows ME, would you believe), and then set about configuring the >> reader, when... ouch! No PDF reader on the machine. Not even an >> ancient Adobe version. Oh dear. Program s

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal J. Bourguignon
bolega writes: > Which is the best implementation of LISP family of languages for real > world programming ? What's the real world? What's real world programming? -- __Pascal Bourguignon__ http://www.informatimago.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal J. Bourguignon
bolega writes: > On Jun 10, 2:51 pm, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> bolega writes: >> > Which is the best implementation of LISP family of languages for real >> > world programming ? >> >> What's the real world? >>

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-12 Thread Pascal J. Bourguignon
bolega writes: > > > [PAIP] > > Is there anything in this old norvig book that makes it worth > pursuing as a text ? Yes. -- __Pascal Bourguignon__ http://www.informatimago.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-12 Thread Pascal J. Bourguignon
George Neuner writes: > On Sat, 12 Jun 2010 18:57:08 +0300, "Antti \"Andy\" Ylikoski" > wrote: > >>OT: (very Off Topic.) >>I would not trust dolphins to take care of my investments. > > Why not? Remember the chimpanzee that picked stocks and beat many > professional fund managers?

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-14 Thread Pascal J. Bourguignon
"Antti \"Andy\" Ylikoski" writes: > 12.6.2010 22:54, Pascal J. Bourguignon kirjoitti: >> bolega writes: >>> >>>> [PAIP] >>> >>> Is there anything in this old norvig book that makes it worth >>> pursuing as a text ? &g

Re: Jewish Pirates of the Caribbean

2010-06-16 Thread Pascal J. Bourguignon
Kryno Bosman writes: > Would you, please, be so nice to share *your* truth somewhere else? He has been long time ago kill-filed by everybody. Your quoting of his message puts you at risk of being kill-filed too. The only way to deal with this kind of post is the kill file and foremost not qu

Re: C interpreter in Lisp/scheme/python

2010-07-08 Thread Pascal J. Bourguignon
Nick Keighley writes: > 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 "

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

2010-07-19 Thread Pascal J. Bourguignon
Kenneth Tilton writes: > What we do not have is any interesting amount of "free as in speech" > software, because no one uses the GPL. I do. So far, I resist to calls to put my software in a less freedom-promoting license. Hey everybody! Switch from MIT or BSD to GPL! Now! -- __Pascal Bo

Re: If Scheme is so good why MIT drops it?

2009-07-21 Thread Pascal J. Bourguignon
Tim Bradshaw writes: > On 2009-07-19 19:31:36 +0100, Frank Buss said: > >> (e.g. I >> don't know of a free modern and stable Lisp implemenation with >> mulithreading support for Windows, with a licence with which you can use it >> in closed source commercial programs, like you can do with Python

Re: toy list processing problem: collect similar terms

2010-09-26 Thread Pascal J. Bourguignon
Xah Lee writes: > here's a interesting toy list processing problem. > > I have a list of lists, where each sublist is labelled by > a number. I need to collect together the contents of all sublists > sharing > the same label. So if I have the list > > ((0 a b) (1 c d) (2 e f) (3 g h) (1 i j) (2

Re: "Strong typing vs. strong testing"

2010-09-27 Thread Pascal J. Bourguignon
namekuseijin writes: >> 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. If someone >> tries to call it incorrectly it is a compile error. >> In a dynamic typed language maximum(a, b) can be called with incorrect >> dataty

Re: "Strong typing vs. strong testing"

2010-09-27 Thread Pascal J. Bourguignon
"Scott L. Burson" writes: > Pascal J. Bourguignon wrote: >> >> On the other hand, with the dynamic typing mindset, you might even wrap >> your values (of whatever numerical type) in a symbolic expression >> mentionning the unit and perhaps other meta d

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Pascal J. Bourguignon
George Neuner writes: > On Tue, 28 Sep 2010 12:15:07 -0700, Keith Thompson > wrote: > >>George Neuner writes: >>> On 28 Sep 2010 12:42:40 GMT, Albert van der Horst >>> wrote: I would say the dimensional checking is underrated. It must be complemented with a hard and fast rule about onl

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Pascal J. Bourguignon
Squeamizh writes: > In short, static typing doesn't solve all conceivable problems. > > We are all aware that there is no perfect software development process > or tool set. I'm interested in minimizing the number of problems I > run into during development, and the number of bugs that are in th

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
Ian Collins writes: > On 09/30/10 06:38 PM, Lie Ryan wrote: >> >> The /most/ correct version of maximum() function is probably one written >> in Haskell as: >> >> maximum :: Integer -> Integer -> Integer >> maximum a b = if a> b then a else b >> >> Integer in Haskell has infinite precision (li

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
RG writes: > One might hypothesize that the best of both worlds would be a dynamic > language with a static analyzer layered on top. Such a thing does not > exist. It makes an instructive exercise to try to figure out why. (For > the record, I don't know the answer, but I've learned a lot t

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
RG writes: > In article , > Seebs wrote: > >> On 2010-09-30, RG wrote: >> > You can't have it both ways. Either I am calling it incorrectly, in >> > which case I should get a compiler error, >> >> You get a warning if you ask for it. If you choose to run without all >> the type checking on

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
TheFlyingDutchman writes: >> >> > "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 blows up"? > >

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
RG writes: >> The main example of a sensible program that can't be written in a >> non-complete language is an interpreter for a Turing-complete language. >> But presumably a high-assurance application should never contain such a >> thing, since the interpreted programs themselves then wouldn't ha

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
Ian Collins writes: > On 10/ 1/10 02:57 AM, Pascal Bourguignon wrote: >> Nick Keighley writes: >> >>> On 27 Sep, 20:29, p...@informatimago.com (Pascal J. Bourguignon) >>> wrote: >>>> If you start with the mindset of static type checking, you will con

Re: "Strong typing vs. strong testing"

2010-09-30 Thread Pascal J. Bourguignon
Keith Thompson writes: > const double pi = 2.71828182845904523526; > > To a human reader, it's obviously either a mistake or deliberate > obfuscation, but I'm not sure I'd *want* my compiler to warn me > about it just because I named the object "pi" rather than "e". > (And if I called it "x",

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
Gene writes: > The FA or TM dichotomy is more painful to contemplate than you say. > Making appropriate simplifications for input, any modern computer is a > FA with 2^(a few trillion) states. Consequently, the gestalt of > computer science seems to be to take it on faith that at some very > lar

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
Seebs writes: > On 2010-10-01, Don Geddis 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. If someone >> tries to call it incorrectly it is a compile error. > > I would agree that the thi

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
rustom writes: > Some points that seem to be missed (or Ive missed them?) > > 1. A dichotomy is being made between 'static' languages like C and > 'dynamic' languages like python/lisp. This dichotomy was valid 30 > years ago, not today. In Haskell for example > > - static checking is stronger th

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
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 means that the test suite is > insufficient. :) > > Based on my experience thus

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
"BartC" writes: > "Pascal J. Bourguignon" wrote in message > news:87sk0qkzhz@kuiper.lan.informatimago.com... >> rustom writes: > >>> Much more mainstream, C# is almost as 'managed' as dynamic languages >>> and has efficiency

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
"BartC" writes: > "Pascal J. Bourguignon" wrote in message > news:87zkuyjawh@kuiper.lan.informatimago.com... >> "BartC" writes: >> >>> "Pascal J. Bourguignon" wrote in message > >>>> When Intel will realiz

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
Seebs writes: > On 2010-10-01, Pascal J. Bourguignon wrote: >> static dynamic >> >> compiler detects wrong type fail at compile fails at run-time >>

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
Seebs writes: > On 2010-10-01, Pascal J. Bourguignon wrote: >> Seebs writes: >>> On 2010-10-01, Pascal J. Bourguignon wrote: >>>> compiler passes wrong type wrong resultfails at run-time >>>>

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
"BartC" writes: > "Pascal J. Bourguignon" wrote in message > news:87sk0qkzhz@kuiper.lan.informatimago.com... > >> Nothing extraordinary here. Common Lisp is more efficient than C. >> http://www.lrde.epita.fr/~didier/research/verna.06.ecoop.pdf

Re: "Strong typing vs. strong testing"

2010-10-01 Thread Pascal J. Bourguignon
"BartC" writes: > "Pascal J. Bourguignon" wrote in message > news:877hi1iq2o@kuiper.lan.informatimago.com... >> "BartC" writes: > >>> (defun fib (n) >>> (if (< n 2) >>> n >>> (+ n (fib (- n

Re: "Strong typing vs. strong testing"

2010-10-06 Thread Pascal J. Bourguignon
Keith H Duggar writes: > On Sep 29, 9:01 pm, RG wrote: >> That the problem is "elsewhere in the program" ought to be small >> comfort.  But very well, try this instead: >> >> [...@mighty:~]$ cat foo.c >> #include >> >> int maximum(int a, int b) { return a > b ? a : b; } >> >> int main() { >>  

Re: "Strong typing vs. strong testing"

2010-10-12 Thread Pascal J. Bourguignon
Tim Bradshaw writes: > On 2010-10-12 20:46:26 +0100, BartC said: > >> You can't do all that if angles are just numbers. > > I think that the discussion of percentages is relevant here: angles > //are// just numbers, but you're choosing a particular way of > displaying them (or reading them). 100%

Re: "Strong typing vs. strong testing"

2010-10-13 Thread Pascal J. Bourguignon
Steven D'Aprano writes: > Hmmm, my ISP's news software really doesn't like it when I cross-post to > more than three newsgroups. So, trying again without comp.lang.c. > > On Wed, 13 Oct 2010 02:00:46 +0100, BartC wrote: > >> "RG" wrote in message >> news:rnospamon-20651e.17410012102...@news.alba

Re: "Strong typing vs. strong testing"

2010-10-13 Thread Pascal J. Bourguignon
Steven D'Aprano writes: > On Wed, 13 Oct 2010 17:28:42 +0200, Pascal J. Bourguignon wrote: > >>>> But what exactly *is* this number? Is it 0.25, 1.57 or 90? >>> >>> That's the wrong question. It's like asking, what exactly "is" the &g

<    1   2   3   >