Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Nick Bowler
changes, or if you don't want to maintain a package any more, or if you simply change your mind about receiving status updates by email, then if this gets hardcoded in the .cabal file you have no recourse. Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Comment Syntax

2011-06-06 Thread Nick Bowler
, the above is not necessarily a comment. Furthermore, even with the default character classifications, \% does not introduce a comment. \% not introducing a comment in (La)TeX doesn't seem a whole lot different from --- not introducing a comment in Haskell. -- Nick Bowler, Elliptic Technologies (http

Re: [Haskell-cafe] Comment Syntax

2011-06-06 Thread Nick Bowler
On 2011-06-06 13:39 -0400, Nick Bowler wrote: On 2011-06-06 13:08 -0400, Albert Y. C. Lai wrote: Recall that the problem is not with isolated characters, but whole strings. [...] in LaTeX, %%@#$^* is a comment. This example probably does not help your position. Since (La)TeX allows

Re: [Haskell-cafe] Calling a C function that returns a struct by value

2011-05-25 Thread Nick Bowler
); *x = tmp.x; *y = tmp.y; } Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Exception for NaN

2011-05-12 Thread Nick Bowler
. Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-28 Thread Nick Bowler
) with different versions of some file, and you share a build directory between them, it is very likely that after building A, a subsequent build of B will fail to work correctly. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-28 Thread Nick Bowler
not cause your build system to ignore them.  It can happen for any number of reasons: restoring from backup, switching repository, bisecting the history of a repo, clock skew on different machines, All of these operations update the mtimes on the files... -- Nick Bowler, Elliptic Technologies

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-26 Thread Nick Bowler
a checkout; gitk can visualize any or all branches of the repository simultaneously. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Fast conversion between Vector Double and Vector CDouble

2011-04-04 Thread Nick Bowler
function. However, there are (or were) broken RULE pragmas in GHC which do this sort of transformation. Such RULEs make realToFrac really fun because your program's correctness will depend on whether or not GHC decides to inline things. -- Nick Bowler, Elliptic Technologies (http

Re: [Haskell-cafe] bug in Prelude.words?

2011-03-28 Thread Nick Bowler
space refers to breaking text into lines. In other words, if two words are separated by a non-breaking space, then a line break will not be put between those words. A non-breaking space does *not* make two words into one word. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Re: Re: Reply-To: Header in Mailinglists

2010-11-22 Thread Nick Bowler
posters to this very list use it. However, it needs to be used with care because it can fragment cross- list discussions and/or prevent non-subscribers from receiving messages. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Finding the contents of haskell platform?

2010-11-05 Thread Nick Bowler
. It might be be simpler to drop into the Symbol font (should be present for all broswers) and use arrowright - code 0o256. Except that the Symbol font family is not available in all browsers. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Red links in the new haskell theme

2010-11-01 Thread Nick Bowler
is such that the style sheet resets to the default if you reload the page or follow any link. This makes the feature completely useless in practice. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Generating random tuples

2010-11-01 Thread Nick Bowler
(a lexicographic ordering) and for this case I think it would make the most sense to use that: select an element from the set { x : lo = x = hi } -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Generating random tuples

2010-11-01 Thread Nick Bowler
On 2010-11-01 20:09 +0100, Daniel Fischer wrote: On Monday 01 November 2010 19:55:22, Nick Bowler wrote: That being said, there is an Ord instance for tuples (a lexicographic ordering) and for this case I think it would make the most sense to use that: select an element from the set { x

Re: [Haskell-cafe] Re: OpenGL Speed!

2010-09-20 Thread Nick Bowler
Shouldn't that be bits/s, or 800*600*3*30 = 41 MB/s? yep, blame that on lack of sleep, I guess... Nevertheless, 4x AGP (circa 2000) can easily sustain the significantly exaggerated rate of 329 MB/s. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Why do unsafe foreign calls block other threads?

2010-08-05 Thread Nick Bowler
. I thought safe meant the foreign function is allowed to call Haskell functions, which seems to not have anything to do with whether the function is re-entrant (a very strong condition). -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] OpenGL Speed!

2010-07-29 Thread Nick Bowler
is absolutely *not* a problem. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-27 Thread Nick Bowler
they still haven't fixed yet. But that's a client bug. Use a different client and it goes away.] The same can be said about email threading. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Nick Bowler
that is directly connected to their mailing lists: each post on the forum is sent to the corresponding list and vice versa. The web forum interface doesn't support proper threading, but it otherwise seems to work OK. Perhaps something like that would be useful? -- Nick Bowler, Elliptic Technologies (http

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-26 Thread Nick Bowler
control, moderation, topic subdivisions, the ability to correct posts, and threading (usually web forums have these things and mailing lists do not). Since when do mailing lists not have threading? Web forums with proper support for threading seem to be few and far apart. -- Nick Bowler

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Nick Bowler
to gmane.comp.lang.haskell.cafe. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-26 Thread Nick Bowler
approach to continue to use that. It seems to me, then, that a wine-like web forum - mailing list gateway would satisfy everyone without fragmenting the community? See http://forum.winehq.org/viewforum.php?f=2. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-26 Thread Nick Bowler
://news.gmane.org/gmane.comp.lang.haskell.cafe Ah, I didn't realise the gmane web interface supported followups (I knew the NNTP interface did, and mentioned this elsewhere in this thread). Looks like we've already got a web forum, then, so I guess there's nothing to do! :) -- Nick Bowler, Elliptic

Re: [Haskell-cafe] Heavy lift-ing

2010-07-23 Thread Nick Bowler
with type (Num a, Monad m) = m a - m a - m a But how does one add [0,1] and [0,2] to get [0,2,1,3]? liftM2 (+) [0,1] [0,2] gives the list [0+0, 0+2, 1+0, 1+2] (recall that (=) in the list monad is concatMap). -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com

Re: [Haskell-cafe] Comments on Haskell 2010 Report

2010-07-13 Thread Nick Bowler
On 16:21 Fri 09 Jul , John Meacham wrote: I would think it is a typo in the report. Every language out there seems to think 0**0 is 1 and 0**y | y /= 0 is 0. I am not sure whether it is mandated by the IEEE standard but a quick review doesn't say they should be undefined (and the report

Re: [Haskell-cafe] Re: Float instance of Data.Bits

2010-07-12 Thread Nick Bowler
these types and related operations conform to the IEEE floating point standard. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Re: Float instance of Data.Bits

2010-07-09 Thread Nick Bowler
binary encodings. In fact, it permits 'Float' to be a decimal floating point type. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell-cafe] Proper Handling of Exceptional IEEE Floating Point Numbers

2010-04-22 Thread Nick Bowler
from the map (at least as far as Data.Map.lookup is concerned). Using sort on a list of doubles exposes the underlying sorting algorithm used. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell

Re: [Haskell-cafe] Proper Handling of Exceptional IEEE Floating Point Numbers

2010-04-22 Thread Nick Bowler
, it's not reflexive in the presence of NaNs. Sure, it's not antisymmetric in the presence of negative zeros. On the other hand, it does satisfy a restricted form of reflexivity and antisymmetry: * x == y implies x = y * x = y and y = x implies x == y -- Nick Bowler, Elliptic Technologies (http

Re: [Haskell-cafe] Re: instance Eq (a - b)

2010-04-15 Thread Nick Bowler
:: Double - Double g x = 1/x are not equal, since (-0.0 == 0.0) yet f (-0.0) /= g (0.0). -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Re: GSoC: Hackage 2.0

2010-04-09 Thread Nick Bowler
are proposing that users can perform any change whatsoever on hackage? -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] More Language.C work for Google's Summer of Code

2010-03-30 Thread Nick Bowler
. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Bytestrings and [Char]

2010-03-23 Thread Nick Bowler
second, correct length. Is this a mistake? Your own report shows String readFile being an order of magnitude faster than everything else, contrary to your earlier claim. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe

Re: [Haskell-cafe] Bytestrings and [Char]

2010-03-23 Thread Nick Bowler
On 18:25 Tue 23 Mar , Iustin Pop wrote: On Tue, Mar 23, 2010 at 01:21:49PM -0400, Nick Bowler wrote: On 18:11 Tue 23 Mar , Iustin Pop wrote: I agree with the principle of correctness, but let's be honest - it's (many) orders of magnitude between ByteString and String and Text

Re: [Haskell-cafe] ptys and hGetContent problem

2010-03-08 Thread Nick Bowler
characters are normally configured by termios. If suitably configured, the appropriate action will be performed when the control characters are written to the master port. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell

Re: [Haskell-cafe] Re: New OpenGL package: efficient way to convert datatypes?

2010-03-05 Thread Nick Bowler
On 14:30 Fri 05 Mar , Achim Schneider wrote: Nick Bowler nbow...@elliptictech.com wrote: I meant to say that fromRational . toRational is not appropriate for converting values from one floating point type to another floating point type. It gets even worse: My GPU doesn't know about

Re: [Haskell-cafe] New OpenGL package: efficient way to convert datatypes?

2010-03-04 Thread Nick Bowler
thing to do. I've tried to start some discussion on the haskell-prime mailing list about fixing this wart. In the interim, the OpenGL package could probably provide its own CDouble=GLDouble conversions, but sadly the only way to correctly perform Double=CDouble is unsafeCoerce. -- Nick Bowler

Re: [Haskell-cafe] New OpenGL package: efficient way to convert datatypes?

2010-03-04 Thread Nick Bowler
On 17:45 Thu 04 Mar , Daniel Fischer wrote: Am Donnerstag 04 März 2010 16:45:03 schrieb Nick Bowler: On 16:20 Thu 04 Mar , Daniel Fischer wrote: Yes, without rules, realToFrac = fromRational . toRational. snip I think one would have to add {-# RULES #-} pragmas