Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-27 Thread Donn Cave
Quoth Manfred Lotz manfred.l...@arcor.de, ... The problem seems to lie in the HaskellNet package. If for example I only fetch a specific message m - fetch con 2092 having a size of some 1.2m then I get the same stack overflow. If at runtime I specify +RTS -K40M -RTS it works but takes

Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-27 Thread Donn Cave
Quoth Manfred Lotz manfred.l...@arcor.de, In the end the only thing I need is to get the full message because I want to feed bogofilter to learn that a message is ham or spam. For the time being I decided to write my own program to fetch the data because it is a good exercise for a Haskell

Re: [Haskell-cafe] Stack space overflow in HaskellNet

2011-07-26 Thread Donn Cave
Quoth Manfred Lotz manfred.l...@arcor.de, ... I'm not quite sure I understand what you mean. Stack overflow comes from this: forM_ msgs (\x - fetch con x = print) If I change it to: mapM_ (\x - fetch con x = print) msgs there is the same stack overflow. I didn't

Re: [Haskell-cafe] partial inheritance

2011-07-18 Thread Donn Cave
Quoth Richard O'Keefe o...@cs.otago.ac.nz, [ ... re Werner Kuhn An Image-Schematic Account of Spatial Categories ... ] class BUILDING building where specify the behavior of buildings here, if any class BUILDING house = HOUSE house where specify additional behavior of houses here, if any

Re: [Haskell-cafe] Why aren't files flushed at exit?

2011-07-17 Thread Donn Cave
Quoth Felipe Almeida Lessa felipe.le...@gmail.com, On Sun, Jul 17, 2011 at 10:41 AM, Paul Johnson p...@cogito.org.uk wrote: If you open a file for writing and then exit with output unflushed, then Haskell does not flush the file for you.  In ghci the program seems to work, but then when you

Re: [Haskell-cafe] FFI for a beginner

2011-07-14 Thread Donn Cave
The docs http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi-ghc.html#glasgow-foreign-headers say that -#include pragmas no longer work, but fail to explain how to load code without them. Suffice to say I have no recourse but trial and error. Ah, now that is a GHC documentation

Re: [Haskell-cafe] how to change a process name

2011-07-07 Thread Donn Cave
Quoth Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=) k...@iij.ad.jp, I would like to know how to change a process name in Haskell. When we are programming in C, we can change it by overriding argv on Unix. But I cannot find the same way to do in Haskell. Can anyone suggest how in

Re: [Haskell-cafe] How to ensure code executes in the context of aspecific OS thread?

2011-07-06 Thread Donn Cave
Quoth Jason Dagit dag...@gmail.com, ... Yes. From my perspective (that of a library writer) that's what makes this tricky in GHCi. I need GHCi's cooperation. From GHCi's perspective it's tricky too. It seems to me that ideally, GHCi would do its thing in a child thread, like the extra

Re: [Haskell-cafe] How to ensure code executes in the context of aspecific OS thread?

2011-07-06 Thread Donn Cave
Quoth =?ISO-8859-1?Q?G=E1bor_Lehel?= illiss...@gmail.com, ... Stated another way: I suspect most GUI libraries don't really actually care that you only execute GUI code from the main OS thread, as much as they care that only one (thread-unsafe) GUI function is being called at any given time.

Re: [Haskell-cafe] How to ensure code executes in the context ofaspecific OS thread?

2011-07-06 Thread Donn Cave
Quoth Brandon Allbery allber...@gmail.com, ... I don't know about the general case, but OS X does treat the main thread specially here; the (native, not X11) framework sets up the connection to Core Graphics in the main thread before invoking the main program, so you can't make whatever it is

Re: How to install GhC on a Mac without registering?

2011-06-14 Thread Donn Cave
to believe. Donn Cave ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: How to install GhC on a Mac without registering?

2011-06-10 Thread Donn Cave
Quoth Manuel M T Chakravarty c...@cse.unsw.edu.au, Sean Leather: ... To simplify the process of installing GHC and to support people with versions of Mac OS X older than the most current. We want to spread the Haskell love as far as possible. The only simplification is that people who

Re: [Haskell-cafe] Replacing stdin from within Haskell

2011-06-09 Thread Donn Cave
Quoth Erik Hesselink hessel...@gmail.com, On Thu, Jun 9, 2011 at 13:40, Neil Davies semanticphilosop...@gmail.com wrote: Anyone out there got an elegant solution to being able to fork a haskell thread and replace its 'stdin' ? If you don't mind being tied to GHC you can use hDuplicateTo

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-05 Thread Donn Cave
Quoth Chris Smith cdsm...@gmail.com, That's interesting... whatever the reason, though, I concur that using Haskell seems much easier on Linux and Windows. I had to abandon a plan to introduce Haskell in a class I taught this past semester because of issues with getting it installed on the

Re: [Haskell-cafe] OK! I have a Mac with Snow Leopard 10.6.7

2011-06-05 Thread Donn Cave
Quoth KC kc1...@gmail.com, ... Xcode3.2.6, Haskell Platform 2011.2.0.1 What are 2or 3 ways so far to get a GUI graphics? http://www.haskell.org/haskellwiki/Using_Haskell_in_an_Xcode_Cocoa_project ... if you don't mind that there will be some Objective C involved. I have written only a very

Re: [Haskell-cafe] How to install GhC on a Mac without registering?

2011-06-03 Thread Donn Cave
Quoth Daniel Peebles pumpkin...@gmail.com, I thought Apple had stopped bundling the dev tools with installation DVDs? Do you have an install DVD with no Xcode on it? I have it on a 10.6 DVD, when would this have happened (or stopped happening)? Quoth Nathan Howell nathan.d.how...@gmail.com,

Re: testsuite, failures galore

2011-05-31 Thread Donn Cave
Quoth Daniel Fischer daniel.is.fisc...@googlemail.com, ... calling bfd_openr alone produces tons of undefined references, I've no idea what libraries I'd have to link with also :( Try -lbfd -liberty -lz ? Donn ___ Glasgow-haskell-users

Re: [Haskell-cafe] Status of Haskell + Mac + GUIs graphics

2011-05-18 Thread Donn Cave
Quoth =?iso-8859-1?Q?Jurri=EBn_Stutterheim?= j.stutterh...@me.com, ... So here's my (perhaps slightly provoking) question: do we need to care at all about good GUI toolkits being available? Web applications, especially with an HTML 5 front-end, have become increasingly more powerful. If we can

Re: [Haskell-cafe] Status of Haskell + Mac + GUIs graphics

2011-05-18 Thread Donn Cave
Quoth wren ng thornton w...@freegeek.org, ... But yes, the mere process of making bindings isn't especially cumbersome. Anyone interested in prior art should take a look at the Perl--ObjectiveC bridgework, CamelBones: http://camelbones.sourceforge.net/ Note (again) that there's

Re: [Haskell-cafe] Question on a common pattern

2011-03-15 Thread Donn Cave
a trick with the layout? Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Question on a common pattern

2011-03-15 Thread Donn Cave
the old thread mentioned earlier, a lambda with multiple definitions - fx = \ Opt1 - ... Opt2 - ... Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] How to daemonize a threaded Haskell program?

2011-03-05 Thread Donn Cave
main module to C that way, it probably calls hs_main() or something like that? and you could add your own xx_main() to the stack. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] Why is there no splitSeperator function inData.List

2011-02-14 Thread Donn Cave
Quoth Peter Simons sim...@cryp.to, ... having a dictator is not a necessary prerequisite for the ability to make decisions. It's quite possible to decide controversial matters without a dictator -- say, by letting people vote. The problem might be slightly miscast here, as an inability to

Re: [Haskell-cafe] Why is there no splitSeperator function inData.List

2011-02-13 Thread Donn Cave
character and you get a reversible split. It wasn't a new idea, the Bourne shell for example has a similar dual semantics depending on whether the separator is white space or not. Somehow doesn't seem right for Haskell, though. Donn Cave

Re: [Haskell-cafe] coding style vs. foreign interfaces

2011-02-07 Thread Donn Cave
of the the fairly commonly used ICANON flag, without looking at the source. If you're hoping that in the course of time a significantly functionally designed API will come along for any of these things, note that names it might have used are already taken. Donn Cave

[Haskell-cafe] coding style vs. foreign interfaces

2011-02-06 Thread Donn Cave
essentially unchanged, that the spellings also be preserved to whatever extent practicable. thanks! Donn Cave ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Data.Ranges show error

2011-01-22 Thread Donn Cave
For me, that's an en-dash (U+2013 / '\8211'). I believe something on your box mangled the UTF-8 encoding. When I saw this last night, I looked out of curiosity and saw the same thing, as my browser rendered the source with a dash. My thought was that this morning, someone would be embarrassed

Re: [Haskell-cafe] GHC 7.0.1 developer challenges

2010-11-30 Thread Donn Cave
Quoth Ryan Ingram ryani.s...@gmail.com, I suggest that we should be able to specify RTS options at compile/link time, or as pragmas in the Main module. It would be good for me in any case if I could specify the value of an option at compile time, though I suppose you mean to specify which

Re: Odd behavior of ncurses with -threaded

2010-11-12 Thread Donn Cave
solves the problem of an application that uses SIGALRM in its own timer. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Odd behavior of ncurses with -threaded

2010-11-11 Thread Donn Cave
to the ticket that I've seen here or on Haskell-cafe. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Odd behavior of ncurses with -threaded

2010-11-11 Thread Donn Cave
it does, beyond the SIGALRM difference. I run my own application this way without apparent serious harm, but it could be failing to reclaim memory for example, due to missed garbage collections. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users

Re: Fwd: Re: [Haskell-cafe] Type Directed Name Resolution

2010-11-11 Thread Donn Cave
Quoth John Lask jvl...@hotmail.com, ... By the way I am not arguing for TDNR, merely that all is not well with haskell records. And you have a lot of company there, but the discussion is taking place in a thread named Type Directed Name Resolution. When that has been put to rest, let's talk

Re: [Haskell-cafe] Re: Haskell is a scripting language inspiredby Python.

2010-11-05 Thread Donn Cave
Quoth Luke Palmer lrpal...@gmail.com, ... Scripting language strikes me as one of those terms that is used in heated arguments despite having no meaning (meaningless terms seem to proliferate as the heat is turned up). I dunno, I just don't think it is a big deal. Everybody seems to be

Re: [Haskell-cafe] Re: Haskell is a scripting language inspiredby Python.

2010-11-04 Thread Donn Cave
. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-02 Thread Donn Cave
about the typical application. And it's a moot point if there's no way to do it. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] If Python now has a good email library; how challenging is it to call Python from Haskell?

2010-10-27 Thread Donn Cave
to the HaskellNet IMAP support. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] concurrency vs. I/O in GHC

2010-10-23 Thread Donn Cave
. If safe, the two sleep intervals will overlap. I believe we all now expect that, but if it does come as a surprise, I hope someone will test it on a more common platform. +RTS -N2 makes no difference. Donn Cave, d...@avvanta.com --- {-# LANGUAGE

[Haskell-cafe] concurrency vs. I/O in GHC

2010-10-17 Thread Donn Cave
, but deterministically and at a rate much faster than normal, and anyway I suppose that's talking about green threads, not the OS threads where context switches are an OS function. Thanks! Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Donn Cave
Quoth Jeremy Shaw jer...@n-heptane.com, ... I wonder what it would take to make it so that the message body could be multipart mime... Well, here's what it takes for me - - function to determine file type of attachment (e.g., image/jpeg) - data encoding (base64, maybe quoted-printable, others)

Re: [Haskell-cafe] concurrency vs. I/O in GHC

2010-10-17 Thread Donn Cave
lamented and various confusing propositions were bandied about. I should dig that up if I can, and see if this practical example sheds some light on any of it. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] A rant against the blurb on the Haskell front page

2010-10-15 Thread Donn Cave
Quoth Ben Franksen ben.frank...@online.de, Enough. I think I have made my point. Yes, though possibly a little overstated it. While it's easy to share your distaste for the blurb, if you take a generous attitude towards it, most of it is true enough. The implementation specific features are

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-08 Thread Donn Cave
environments than just Java. But it isn't relevant here, right? Since neither the Haskell nor OpenSSL implementations are both compiled to CPU instructions. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-08 Thread Donn Cave
think managed? And in my confused present state I would say it's unmanaged. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Pronouncing Curry and currying

2010-10-06 Thread Donn Cave
Quoth Petr Pudlak d...@pudlak.name, I have a question for native English speakers: What is the correct pronunciation of the name Curry (in Haskell Curry) and the derived verb currying? I found on Wikitonary the name is (probably) of Irish orgin, so I suppose that the pronunciation may by

Re: [Haskell-cafe] Lambda-case / lambda-if

2010-10-05 Thread Donn Cave
Quoth Ketil Malde ke...@malde.org, ... Just that they seem to be natural generalizations. If it's just the single form of paramtrizing the condition, I think it's better served by a regular function, 'bool' or (??) or whatever. Well, yes, there's some logic to that. Like, bool b c a = if a

Re: [Haskell-cafe] Lambda-case / lambda-if

2010-10-04 Thread Donn Cave
Quoth Ketil Malde ke...@malde.org, Max Bolingbroke batterseapo...@hotmail.com writes: ... Prelude (if then Haskell else Cafe) False Cafe Presumably, this extends to Prelude (if False then else Cafe) Haskell Cafe and Prelude (if then Haskell else) False Cafe Cafe as well? I think

Re: [Haskell-cafe] Lambda-case / lambda-if

2010-10-04 Thread Donn Cave
Quoth Richard O'Keefe o...@cs.otago.ac.nz, ... Erlang manages fine with multiclause 'fun': (fun (1) - One ; (_) - Not-one end)(1) ML manages fine with multiclause 'fn': (fn 1 = one | _ = not-one)(1) In both cases, the same notation is used for multiclause lambda as for single

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-30 Thread Donn Cave
Quoth Henning Thielemann lemm...@henning-thielemann.de, On Thu, 30 Sep 2010, Bas van Dijk wrote: I believe UnicodeSyntax and symbols make code easier to read. If it can be read at all ... your Unicode symbol for '::' isn't shown in my terminal. Same here, of course. Win small, lose big.

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Donn Cave
Quoth Brandon S Allbery KF8NH allb...@ece.cmu.edu, ... They line up fine in a fixed width font. Programming in any indentation-sensitive language in a proportional font leads inevitably to use of tabs to make things line up properly, which leads directly to pain. I haven't noticed urgent

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-26 Thread Donn Cave
Quoth Alexander Solla a...@2piix.com, ... That's not so nice looking now, but consider what happens when you have four or five arguments: type Label = String type Address = String data Foo a b = Foo (Maybe Label) Address a | Bar Label b

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-25 Thread Donn Cave
Though it's common practice for sure, maybe universal, does the Don't insert a space after a lambda rule make sense? I found it confusing at first sight, because of course it looks like something else - in \n m - ..., to the uninitiated it represents a newline, for example. Now that I understand

Re: SIGALRM, SIGVTALRM, and third party libraries

2010-09-07 Thread Donn Cave
solved. Maybe over time, Haskell programmers will clean up all those problems in the foreign code they want to run. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org

Re: [Haskell-cafe] How to catch exception within the Get monad (theBinary package)

2010-09-07 Thread Donn Cave
very likely there's a simpler way to do this with Data.Serial as written, I am just a little backwards with state monads and that kind of thing. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] How to catch exception within the Get monad(theBinary package)

2010-09-07 Thread Donn Cave
Quoth Donn Cave d...@avvanta.com, ... I think it's very likely there's a simpler way to do this with Data.Serial as written, I am just a little backwards with state monads and that kind of thing. OK, another look at it reveals that mplus can be used for this application, so much more simply

Re: [Haskell-cafe] help me evangelize haskell.

2010-09-05 Thread Donn Cave
interest in their views on software engineering, etc., but mostly it comes down to your charisma. Never worked for me, but good luck! Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] How to catch exception within the Get monad (theBinary package)

2010-09-05 Thread Donn Cave
`fail'. `throw' raises an exception that can be caught only in IO, so you can't catch it inside Get. So ... while `fail' is a Monad function, it isn't implemented here in a way you could use, like it is in Maybe for example. Nor could it be, I think, which is kind of unfortunate. Donn Cave

Re: [Haskell-cafe] non-blocking recv from UDP socket

2010-08-26 Thread Donn Cave
surmised, it has worked fine. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Code that writes code

2010-08-24 Thread Donn Cave
code while debugging. Indeed, for my modest purposes it has been easy enough to generate code in a conventional, readable format - and honestly it's better self-documentation than the code I write directly. The mechanical consistency of generated code makes it especially transparent. Donn

Re: [Haskell-cafe] System.Posix, forked processes and psuedo terminals on Linux

2010-08-21 Thread Donn Cave
can turn ECHO off. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: SIGPIPE in the GHC runtime

2010-08-18 Thread Donn Cave
(though I think that would be an unusual implementation.) Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: SIGPIPE in the GHC runtime

2010-08-18 Thread Donn Cave
() and pthread_sigmask(); either worked the same for me, but something like this needs more testing. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Donn Cave
, `Text' should be a single type, if the encoding differences aren't semantically interesting. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Donn Cave
the problem. (Of course, ByteString.Char8 isn't a good way to deal with wide characters correctly, I'm just saying that's where I'd like to find the answer, not in some internal character encoding into which all text data must be converted.) Donn Cave, d...@avvanta.com

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Donn Cave
Quoth Bryan O'Sullivan b...@serpentine.com, On Sat, Aug 14, 2010 at 10:07 PM, Donn Cave d...@avvanta.com wrote: ... ByteString will continue to be the obvious choice for big data loads. Don't confuse I have big data with I need bytes. If you are working with bytes, use bytestring. If you

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Donn Cave
the attraction, you miss some of the historical lesson on emphasizing elegance and correctness over practical performance. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-15 Thread Donn Cave
. Not to belabor the point, but to dismiss all that as the work of morons who weren't as wise as we are, is the same mistake from the other side of the wall - performance counts. If you solve the problem by assigning a priority to one or the other, you aren't solving the problem. Donn Cave, d

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-14 Thread Donn Cave
-16 functions, for French UTF-8. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-14 Thread Donn Cave
be its most prominent open sore, don't you think? Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-13 Thread Donn Cave
. I'm thinking _all_ data is binary, and accordingly all inputs are ByteString; conversion to Text will happen as needed for ... uh, wait, is there a conversion from ByteString to Text? Well, if not, no doubt that's coming. Donn Cave, d...@avvanta.com

Re: [Haskell-cafe] Socket not released

2010-08-09 Thread Donn Cave
failed to preserve that. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Socket not released

2010-08-07 Thread Donn Cave
socket in the child fork, as well as the parent - if it's inherited by the child, it's held open there, even if the parent closes it. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] hGetContents: resource exhausted

2010-08-05 Thread Donn Cave
ghc is fundamentally broken - hGetContents, a very commonly used base library function, can't survive the runtime's own timer signals. Obviously this doesn't happen for other users, maybe even on OpenSolaris? I'm sure someone has a clue how this could happen. Donn Cave, d...@avvanta.com

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

2010-08-03 Thread Donn Cave
broken at this point - need to disable RTS timer signals ( -V0 ) to survive externally generated thread dispatch events.) thanks, Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] hGetContents: resource exhausted

2010-07-28 Thread Donn Cave
configure It shouldn't make any difference on its own, but then you can try options on the compile, like ghc -threaded, and runtime flags like Setup +RTS -V0 -RTS I suggest that because it cuts down on signal interrupts from the runtime, and your symptoms suggest a signal interrupt. Donn

Re: [Haskell-cafe] hGetContents: resource exhausted

2010-07-26 Thread Donn Cave
. The utility for this varies by platform, but e.g. strace or ktrace. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-28 Thread Donn Cave
have to comprehend if I read your code, and it might indeed be easier to read code that uses a type that, though unique to the code, has names that reflect its meaning. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Why Either = Left | Right instead of something like Result = Success | Failure

2010-05-28 Thread Donn Cave
for Control.Monad.Error, is mistaken, where at the top it says Example type: Either String a ... which should be Either Error a ... ? Though I can't really be sure what the documentation is trying to say.) Donn Cave, d...@avvanta.com ___ Haskell

Re: [Haskell-cafe] executeFile failing on macosx

2010-05-18 Thread Donn Cave
spawned by the application. Where would this be documented? thanks, Donn Cave, d...@avvanta.com On Mon, May 17, 2010 at 9:41 AM, Thomas Schilling nomin...@googlemail.comwrote: Works fine on 10.6.3. If you run with +RTS -N2, though, you'll get forking not supported with +RTS -Nn

Re: [Haskell-cafe] Re: Haskell and scripting

2010-05-06 Thread Donn Cave
about whether operations on that variable are global in effect. I'm guessing this would turn out clearer in Haskell, along with other things having to do with variables. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] are forkIO threads event-driven?

2010-05-01 Thread Donn Cave
processes (or threads) might be the only sane way to go. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: native threads vs. -threaded

2010-03-15 Thread Donn Cave
sorry to hear I'm doing everything right! Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: native threads vs. -threaded

2010-03-13 Thread Donn Cave
of foreign origin, with callbacks to Haskell foreign wrapper functions. Does the wrapper rts_lock() account for everything, or do threads need some initial setup I need to account for? Thanks! Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users

native threads vs. -threaded

2010-03-12 Thread Donn Cave
review of the ones I usually hear about, not so sure. If there's another library that uses OS threads this way, with Haskell bindings already, that might be something I could steal a clue from.) thanks! Donn Cave, d...@avvanta.com ___ Glasgow

Re: [Haskell-cafe] Re: A few ideas about FRP and arbitrary access in time

2010-03-03 Thread Donn Cave
Kind of a long shot, from what I can make out, but Timber might be interesting - Haskell-like programming language with a reactive model that supports time as a sort of event. http://www.timber-lang.org/ Certainly not much like what we're talking about, but I haven't picked up on the application

Re: [Haskell-cafe] Re: native threads vs. -threaded

2010-02-28 Thread Donn Cave
Quoth Achim Schneider bars...@web.de, Donn Cave d...@avvanta.com wrote: I imagine I'm at fault somewhere in this, since I am also responsible for the GHC port to Haiku, but just wondering if this suggests an obvious course of inquiry to anyone. I assume it's not working as intended, as from

[Haskell-cafe] native threads vs. -threaded

2010-02-27 Thread Donn Cave
to anyone. I assume it's not working as intended, as from the documentation I would rather have guessed that -thread would be required in this situation. thanks! Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] [offtopic] UNIX Shell (was: GHC RTS question)

2010-02-24 Thread Donn Cave
Quoth Roman Cheplyaka r...@ro-che.info, ... Well, this agrees with POSIX. So still I don't see the difference between $@ and ${1+$@}. Whatever the standards etc. may say, I believe $@ is reliably the same as ${1+$@}, for old Bourne shells and new. Donn

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-23 Thread Donn Cave
Quoth Brandon S. Allbery KF8NH allb...@ece.cmu.edu, On Feb 21, 2010, at 20:17 , Jeremy Shaw wrote: The PS3 does do something though. If we were doing a write *and* read select on the socket, the read select would wakeup. So, it is trying to notify us that something has happened, but we are

Re: [Haskell-cafe] Re: sendfile leaking descriptors on Linux?

2010-02-21 Thread Donn Cave
no way to catch the former without making connections more fragile. Donn Cave d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: cross-compiling ghc to openbsd

2010-01-29 Thread Donn Cave
Quoth Nicolas Martyanoff khae...@gmail.com, It seems that SIZEOF_VOID_P isn't defined anywhere. I guess it's immaterial if you aren't going to pursue the port strategy any farther, but from a cursory look, this would happen at the point where the configuration log says checking size of void *.

Re: [Haskell-cafe] Linguistic hair-splitting

2010-01-28 Thread Donn Cave
Quoth Daniel Fischer daniel.is.fisc...@web.de, Am Donnerstag 28 Januar 2010 09:14:38 schrieb Ketil Malde: Daniel Fischer daniel.is.fisc...@web.de writes: As usual, that only works part of the time. [1,4,15,3,7] is not a computation, it's a list of numbers. A plain and simple everyday value.

Re: hsc2hs and base

2009-12-27 Thread Donn Cave
' or something. Donn Cave, d...@avvanta.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: openFd under -threaded gets interrupted

2009-12-18 Thread Donn Cave
Quoth Mitar mmi...@gmail.com, Also is there any workaround possible in Haskell/GHC? For example making time while openFd is in progress without interrupts? You might try something like this: import System.Posix.Signals ... setSignalMask fullSignalSet fd - openFd ...

Re: [Haskell-cafe] getting data through foreign layer without marshalling

2009-12-14 Thread Donn Cave
Quoth Bernie Pope florbit...@gmail.com, 2009/12/14 Donn Cave d...@avvanta.com: [...] I don't fully understand what you want to do, but perhaps you can use a StablePtr: http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign-StablePtr.html Yes, thank you very much, that does

[Haskell-cafe] getting data through foreign layer without marshalling

2009-12-13 Thread Donn Cave
the AppData parameter first - I rewrite the C++ object's FunPtrs every time I update the application data (freeHaskellFunPtr prior values.) I'm just not sure where AppData lives while it's referenced in a FunPtr via partial application, if there might be multiple copies, etc. thanks! Donn

Re: [Haskell-cafe] Why?

2009-12-11 Thread Donn Cave
Quoth Luke Palmer lrpal...@gmail.com, ... This is not the sort of resistance I expected :-). Naturally my unrealistic argument applies to FFI as well; sin, if imported from C, would have to return in an appropriate structure. Not necessarily IO (I don't like the idea of a universal sin-bin

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Donn Cave
and valuable opinions about how various contingencies ought to be handled, in the end it no doubt it must be up to the programmer writing the code ... right? Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

mysteriously hidden ghc-binary-0.5.0.2

2009-11-27 Thread Donn Cave
with 6.12.0, or is it more likely that my ghc build is defective? Thanks! Donn Cave, d...@avvanta.com /boot/home/src/ghc/ghc-6.12.0.20091010/inplace/bin/ghc-stage2 -v -M -include-pkg-deps -dep-makefile libraries/bin-package-db/dist-boot/build/.depend-v -H64m -O0 -fasm -package-conf libraries

Re: [Haskell-cafe] Opinion about JHC

2009-11-11 Thread Donn Cave
that's exactly backwards for minority platforms, where the compilers that compile themselves tend to be no use whatever. Donn Cave, d...@avvanta.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Opinion about JHC

2009-11-11 Thread Donn Cave
have to agree. If you were a compiler developer for a language that supports like-platform porting the way GHC does, after trying to keep that working while developing the language I suspect you might also be tempted to agree. Donn Cave, d...@avvanta.com

<    1   2   3   4   >