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

2011-11-01 Thread Nick Bowler
is a mistake, since there is no way to change it after uploading. If your mail address 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. C

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

Re: [Haskell-cafe] Comment Syntax

2011-06-06 Thread Nick Bowler
ged at any time, 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, El

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

2011-05-25 Thread Nick Bowler
polar(double theta, double *x, double *y) { point_t tmp = polar(theta); *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
later point, in which case the NaNs can be discarded. 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
gt; timestamp rather than a newer one.  This should 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

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-28 Thread Nick Bowler
epo directories (call them A and B) 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 Technol

Re: [Haskell-cafe] A small Darcs anomoly

2011-04-26 Thread Nick Bowler
head], > checkout/update to foo's head/tip and compare. No need to do a checkout; gitk can visualize any or all branches of the repository simultaneously. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe

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

2011-04-04 Thread Nick Bowler
> 2) Can the same improvement be accomplished using RULE pragma's? No, because the two methods do not compute the same 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'

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

2011-03-28 Thread Nick Bowler
art of non-breaking 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://w

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

2010-11-22 Thread Nick Bowler
is another header, Mail-Followup-To, which tells MUAs to also drop the To and CC lists. I know several 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 receivin

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

2010-11-05 Thread Nick Bowler
ifferent matter. 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, Ell

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

Re: [Haskell-cafe] Generating random tuples

2010-11-01 Thread Nick Bowler
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 : lo <= x <= hi } -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)

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

2010-11-01 Thread Nick Bowler
tion in Firefox 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-Ca

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

2010-09-20 Thread Nick Bowler
= 329 MB/s which is larger > > > > 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 Bo

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

2010-08-05 Thread Nick Bowler
and would be more > future-proof against changes in the RTS or between compilers. 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 (

Re: [Haskell-cafe] OpenGL Speed!

2010-07-29 Thread Nick Bowler
at modern system 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
I haven't encountered an issue with gmane and this list, although admittedly I don't use it often. > [Well, apart from that stupid Thunderbird bug 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 abou

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-26 Thread Nick Bowler
mentary. > > http://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 nothi

Re: [Haskell-cafe] Re: Haskell Forum

2010-07-26 Thread Nick Bowler
lish one and use > it, and for those who prefer the mailing list 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.p

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Nick Bowler
as a server in your newsreader and subscribe 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
of issues of spam 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

Re: [Haskell-cafe] Haskell Forum

2010-07-26 Thread Nick Bowler
web forum 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, Ellip

Re: [Haskell-cafe] Heavy lift-ing

2010-07-23 Thread Nick Bowler
rgument' function to Monads (this is not possible on mere Functors, hence there's no fmap2). > It would seem that the monad values must understand the function > that's being promoted, like Ints understand (+). Yes, liftM2 (+) gives you a new function with type (Num a, Mona

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
cial applications would likely define Float as the decimal64 format, and Double as the decimal128 format. isIEEE would return True since these types and related operations conform to the IEEE floating point standard. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) _

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

2010-07-09 Thread Nick Bowler
quire IEEE 754 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/

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

2010-04-22 Thread Nick Bowler
all intents and purposes, a class for partial orders would be totally fine for floating point. Sure, 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

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

2010-04-22 Thread Nick Bowler
you have observed). Data.Map.insert with Double keys can cause elements to disappear 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.ellipt

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

2010-04-15 Thread Nick Bowler
, or maybe nowadays I might call them > improper functions. The "good" functions are respectful functions or > proper functions. > Try using the (x == y) ==> (f x = g y) test yourself. Your definitions seem very strange, because according to this, the functions f :: Doubl

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

2010-04-09 Thread Nick Bowler
ones > I would like to include, and then click the "Download darcs/git/whatever > patch" button. (rather than get hit by emails ) The resulting patches will be patently useless, because the only sort of changes they can make is to append bullet points to existing documentation. U

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

2010-03-30 Thread Nick Bowler
preprocessor". This work is certainly within the scope of a summer project. -- 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
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 magnit

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

2010-03-23 Thread Nick Bowler
ta.Text.Lazy (system readFile + pack + length) - 26s, correct length. > > String (system readfile + length) - ~1 second, correct length. Is this a mistake? Your own report shows String & readFile being an order of magnitude faster than everything else, c

Re: [Haskell-cafe] ptys and hGetContent problem

2010-03-08 Thread Nick Bowler
l-d or ctrl-c? > tail -f needs ctrl-c (or I need to kill the process) These so-called "control characters" are normally configured by termios. If suitably configured, the appropriate action will be performed when the control characters are written to the

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 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:

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. > > > > > > > > > I think o

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

2010-03-04 Thread Nick Bowler
y way to "correctly" perform Double<=>CDouble is unsafeCoerce. -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe