[Haskell-cafe] A thought on the LinkedIn spam and an upstream spam filter

2013-09-23 Thread damodar kulkarni
Hello, Sorry for dwelling on a spammy topic. If you are NOT interested in this then please accept my regret and let me assure you that this is NOT to add to the existing spam. If you still are unconvinced, then the only thing I can tell you is sorry, accept my apologies for wasting your time and

Re: [Haskell-cafe] A thought on the LinkedIn spam and an upstream spam filter

2013-09-23 Thread Vo Minh Thu
Hi, Thanks for the heads-up. I have just checked my email addresses registered on linkedin: I had three of them, my regular email address (this one), me previous work address, which I never added myself, and haskell-cafe, which I did not add myself either. My regular address was labeled as

[Haskell-cafe] FFI: how to handle external dll crashes

2013-09-23 Thread Miro Karpis
Please, can you help me with following: I have an external dll that I'm importing in my haskell program. In some particular cases the dll crashes. Simplified: first I need to send to dll with MethodA some parameters and then call MethodB to do some calculations on those parameters. If I didn't

Re: [Haskell-cafe] PSA: do not install xcode 5 if you are using ghc 7.6

2013-09-23 Thread Edsko de Vries
Just to add to Carter's message: if you happened to install Xcode 5 anyway, then realized your mistake and uninstalled it and installed Xcode 4 again, you will STILL have the command line tools that came with Xcode 5 and your Haskell toolchain will STILL be broken -- and so far I have been unable

[Haskell-cafe] Embedding compiled Haskell Platform in custom application

2013-09-23 Thread blackbox.dev.ml
Hi! I'm writing a tool that generates haskell code, build it with cabal and launch it. I want to deliver that tool to clients, but I don't want to force them, to install system wide any specific ghc or cabal version. How can I embed compiled ghc, cabal and selected libraries (for specific

Re: [Haskell-cafe] FFI: how to handle external dll crashes

2013-09-23 Thread Niklas Hambüchen
If you cannot do it with Haskell exceptions, I guess you need to look how you would do it in plain C in do the same. Keep in mind that if something crashes in a C library, that library might have corrupted (or leaked) any memory it had access to. I guess a somewhat reliable way is to fork an

Re: [Haskell-cafe] FFI: how to handle external dll crashes

2013-09-23 Thread Miro Karpis
Hi Niklas, I think that I'm doing this in my try2 function with tryAny and catchAny functions. Unfortunately that didn't work. I'm just starting with Haskell so maybe also my implementation of my haskell code is not 100% correct. cheers, m. On Mon, Sep 23, 2013 at 1:36 PM, Niklas Hambüchen

Re: [Haskell-cafe] FFI: how to handle external dll crashes

2013-09-23 Thread Niklas Hambüchen
Hey, I don't think any of your code actually forks of an *OS process*. There three main kinds of threading constructs: * Haskell threads (forkIO) * Operating System threads (forkOS) * Operating System processes (forkProcess, fork() in C) Async uses the first one, you will need last one (which

Re: [Haskell-cafe] Embedding compiled Haskell Platform in custom application

2013-09-23 Thread Henk-Jan van Tuyl
On Mon, 23 Sep 2013 14:03:00 +0200, blackbox.dev.ml blackbox.dev...@gmail.com wrote: Hi! I'm writing a tool that generates haskell code, build it with cabal and launch it. I want to deliver that tool to clients, but I don't want to force them, to install system wide any specific ghc or cabal

Re: [Haskell-cafe] FFI: how to handle external dll crashes

2013-09-23 Thread Miro Karpis
Thanks for that. I checked forkProcess - which is packed in POSIX module. I'm building under windows. Do I need to go via cygwin, is there some other way for creating new OS process? m. On Mon, Sep 23, 2013 at 1:46 PM, Niklas Hambüchen m...@nh2.me wrote: Hey, I don't think any of your code

[Haskell-cafe] Looking for numbers to support using haskell

2013-09-23 Thread Mike Meyer
Hi all, I'm looking for articles that provide some technical support for why Haskell rocks. Not just cheerleading, but something with a bit of real information in it - a comparison of code snippets in multiple languages, or the results of a study on programmer productivity (given all the noise

Re: [Haskell-cafe] Creating a local Hoogle ...

2013-09-23 Thread John Wiegley
aditya siram aditya.si...@gmail.com writes: Combining 4263 databases hoogle: embroidery.hoo: openFile: resource exhausted (Too many open files) Any help is appreciated. Thanks! I created the 'rehoo' utility to solve this very problem. Change directory to where your .hoo files are, and run:

Re: [Haskell-cafe] Looking for numbers to support using haskell

2013-09-23 Thread MigMit
The classical reference is, I think, the paper “Haskell vs. Ada vs. C++ vs. Awk vs. ... An Experiment in Software Prototyping Productivity” On Sep 23, 2013, at 9:20 PM, Mike Meyer m...@mired.org wrote: Hi all, I'm looking for articles that provide some technical support for why Haskell

Re: [Haskell-cafe] Looking for numbers to support using haskell

2013-09-23 Thread Nick Vanderweit
I'd be interested in more studies in this space. Does anyone know of empirical studies on program robustness vs. other languages? Nick On 09/23/2013 11:31 AM, MigMit wrote: The classical reference is, I think, the paper “Haskell vs. Ada vs. C++ vs. Awk vs. ... An Experiment in Software

Re: [Haskell-cafe] Strange exit status behavior from the process package

2013-09-23 Thread Michael Xavier
Could I trouble you or anyone else to help me implement this feature? I have some test processes, one that exits cleanly on sigterm and one that refuses and must be killed abruptly. In some experimentation on GHCi, things seem to go alright, but in test, either process reports that it has

Re: [Haskell-cafe] Looking for numbers to support using haskell

2013-09-23 Thread Eric Rasmussen
Hi Nick, FP Complete has a lot of good resources on this topic, including some case studies: https://www.fpcomplete.com/business/resources/case-studies/ I believe part of their aim is making the business case for Haskell (meaning many of the resources are geared towards management), which I