Re: Higher-order function application

2000-08-23 Thread Ralf Muschall
Bjorn Lisper [EMAIL PROTECTED] writes: cos+sin-- intent: \x-((cos x)+(sin x)) cos(sin) -- intent: \x-cos(sin(x)) have equivalents in Fortran 90 and HPF, although with arrays rather than functions. For instance, one can write "A+B" to mean an array with value But I'd

Re: A small problem.

2000-08-22 Thread Ralf Muschall
Jan Skibinski [EMAIL PROTECTED] writes: then take half of its norm; 1/2 * sqrt (r1^2 + r2^2 + r3^2). In his problem, not even that is necessary: Just taking the z-component is enough (or even better if the big polygon is not convex). It will fail if the polygon is not plane, but then

Re: The importance and relevance of FP

2000-08-16 Thread Ralf Muschall
"Craig Dickson" [EMAIL PROTECTED] writes: I agree, and would add (if I'm recalling correctly) that LISP lacks lexical scoping, which may not be an absolute requirement for functional programming Some old dead lisps might lack lexical scoping, at least CL has it since a long time. The only

Re: doubles

2000-08-10 Thread Ralf Muschall
Sebastian Schulz [EMAIL PROTECTED] writes: John Peterson wrote: Or you can just set USE_DOUBLE_PRECISION in options.h if you want to I did that (to be precise, I had to do it every time when building hugs :-( ). pi::Double is defined by the prelude as primPiDouble, and this seems to be

Re: Precision problem

2000-07-23 Thread Ralf Muschall
Julian Assange [EMAIL PROTECTED] writes: complex-tecture pov-ray picture distributed to a 56 bit IEEE machine and a 64 bit one. The when the picture elements are stitched back Is this really due to color differences of the order of 10^-17, or rather due to different libc-inherited random

Re: string to Integer

2000-04-06 Thread Ralf Muschall
Ronny Wichers Schreur schrieb: If you think of the (types of) functions as domino stones, |. makes them fit. And if I call the label on the stones "integer_from_string" and "integer_from_intlist", unflipped (.) does as well. The same applies to the other answers: On could write f . g (which

Re: Unicode (Re: Reverse composition)

1999-10-12 Thread Ralf Muschall
Lennart Augustsson wrote: It's not hard to find a text editor, use w.g. wily. It's widely available. But it is hard to use some nonstandard (i.e. neither vi nor emacs) editor just for one special kind of source code - it means to lose all the keybindings, highlight settings,

Re: Haskell mailing list

1999-10-08 Thread Ralf Muschall
[EMAIL PROTECTED] wrote: set up comp.lang.haskell? I agree with the above. This is IMHO the best solution for a lot of reasons: 1. With many providers/client_softwares, you cannot ignore a mail without downloading and deleting it. This makes it hard to ignore a thread which one is not

Re: Haskell's efficiency

1999-09-22 Thread Ralf Muschall
S.D.Mechveliani wrote: Thus, the recent example with the Cryptarithm solver was a very in-correct comparison, due to the unknown permutation generating order. I did not study the problem in detail, but I think giving it an unsolvable puzzle would force it to try *all* permutations, thus

primShiftInt broken or strange in C

1999-07-24 Thread Ralf Muschall
Today I saw a strange behavior of primShiftInt in hugs98 (and all other functions which are implemented using the operators " or ""). The effect is that an expression like "x y" in C behaves as if it were x (y 0x001F). E.g. 64 68 gives 4 instead of 0. I tried this with different versions of

Re: Permission to distribute the Haskell 98 reports as part of Debian?

1999-03-20 Thread Ralf Muschall
chris angus wrote: I was under the impression that Haskell the language (and by inference any definition of Haskell) were "free", period. i.e. may be distributed freely in a GNU/GPL manner. is this not correct? As Fergus already said, something becomes free only if all of its authors