[Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Cheplyaka
I'm trying to optimize the following program: http://github.com/feuerbach/particles/blob/303c8a17c9b732e22457b5409bdce4b7520be94a/run.hs Of course general suggestions are welcome (BTW I'm going to give a try to vector), but currently I'm concerned with two questions: 1. Heavy allocations in

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Cheplyaka
* Roman Cheplyaka r...@ro-che.info [2010-06-17 12:40:59+0300] I'm trying to optimize the following program: http://github.com/feuerbach/particles/blob/303c8a17c9b732e22457b5409bdce4b7520be94a/run.hs Of course general suggestions are welcome (BTW I'm going to give a try to vector), but

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Roman Beslik
I mean that a link [[X]] leads to HaskellWiki if X exists in HaskellWiki and to Wikipedia otherwise. Interwiki links requires to change all occurrences of [[X]] when X is created. |[[wikipedia:|{{PAGENAME}}|]]| may be handy on existing pages, it provides a link to additional material. On

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Roman Beslik
I do not agree. They are not confused by other languages, they treat all languages as born equal. Do not forget, mathematics is the common source of knowledge for all programmers, creating our separate source of knowledge leads to isolationism and narrow-minded vision. If my words are too

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Henning Thielemann
On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash. Compiling is not always an option because executables are bigger than shell scripts or C executables Is Hugs better in this respect?

[Haskell-cafe] How does one get off haskell?

2010-06-17 Thread Günther Schmidt
Hi list, I'm facing a really tough problem. About 3 years ago I stopped doing freelance and quite nicely paid projects in Java, PHP and C#. Now I'm dire straits, again, and need to get back into the project market which seems to have picked up again, quite a lot of projects out there and it

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread David Virebayre
On Thu, Jun 17, 2010 at 3:38 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash.  Compiling is not always an option because executables are bigger than  

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread Лев Никитин
Become the farmer. The life in village brings advantage for health more. (I too am serious. :) ) 2010/6/17 Günther Schmidt gue.schm...@web.de: Hi list, I'm facing a really tough problem. About 3 years ago I stopped doing freelance and quite nicely paid projects in Java, PHP and C#. Now I'm

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread David Virebayre
2010/6/17 Günther Schmidt gue.schm...@web.de: Anyway the problem is that I am totally reluctant to code in anything else but haskell. It has always been a problem to me getting up early in the You're not alone. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Daniel Fischer
On Thursday 17 June 2010 11:43:09, Roman Cheplyaka wrote: * Roman Cheplyaka r...@ro-che.info [2010-06-17 12:40:59+0300] I'm trying to optimize the following program: http://github.com/feuerbach/particles/blob/303c8a17c9b732e22457b5409bd ce4b7520be94a/run.hs Of course general suggestions

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread Jean-Denis Koeck
Maybe you should trying getting on Scala or Clojure projects ? Though they aren't many of them for now :( 2010/6/17 Günther Schmidt gue.schm...@web.de Hi list, I'm facing a really tough problem. About 3 years ago I stopped doing freelance and quite nicely paid projects in Java, PHP and C#.

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread David Anderson
2010/6/17 Günther Schmidt gue.schm...@web.de: Hi list, I'm facing a really tough problem. About 3 years ago I stopped doing freelance and quite nicely paid projects in Java, PHP and C#. Now I'm dire straits, again, and need to get back into the project market which seems to have picked up

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread Hector Guilarte
Haven't tried this, but maybe it can help you... Online freelance jobs search engine, I'ts supposed to be good... http://www.donanza.com/ Good Luck $$$, Hector Guilarte Enviado desde mi dispositivo movil BlackBerry. -Original Message- From: Günther Schmidt gue.schm...@web.de Date:

Re: [Haskell-cafe] How does one get off haskell?

2010-06-17 Thread Günther Schmidt
Hi all, I was afraid of that. The tenor here is there is no way to get off haskell so either do woodwork or try to get a haskell job. :( Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Brandon S. Allbery KF8NH
On Jun 17, 2010, at 10:17 , David Virebayre wrote: On Thu, Jun 17, 2010 at 3:38 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 16 Jun 2010, Marc Weber wrote: Hi Aditya Siram, - maybe shell scripting: running ghci takes longer than starting bash. Compiling is not always

[Haskell-cafe] Re: [Haskell-beginners] Re: Accounting Engine in Haskell

2010-06-17 Thread Patrick LeBoutillier
Hi, Keep in mind that you have to invest some time in learning Haskell before you can reap the benefits. For an example of the latter, see also  Paul Hudak, Mark P. Jones.  Haskell vs. Ada vs. C++ vs. Awk vs. ...,    An Experiment in Software Prototyping Productivity  

Re: [Haskell-cafe] Re: [Haskell-beginners] Re: Accounting Engine in Haskell

2010-06-17 Thread Stephen Tetley
On 17 June 2010 16:12, Patrick LeBoutillier patrick.leboutill...@gmail.com wrote: This paper was very interesting to me. Does anyone know if the full source code for the Haskell prototype is available somewhere? Chapter 8 of Paul Hudak's School of Expression contains a version of the region

[Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread braver
If you're willing to use Haskell as a synonym for FP of sorts, you can now get cool jobs writing Scala -- e.g. Sony uses it to manage all of their disk farms; Clojure is awesome, although very different (dynamic and macro); and Jane Street is always hiring in New York, London and Tokyo doing

[Haskell-cafe] Re: What is Haskell unsuitable for?

2010-06-17 Thread braver
At this very moment I'm struggling with fitting a huge graph of Twitter communications into a Haskell program. Apparently it gets into a loop freeing memory. As I suspected, JVM garbage collector got more testing than Haskell at this scale; since not many people load it up as much, it may be

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Beslik
On 17.06.10 12:40, Roman Cheplyaka wrote: From reading core I got the impression that everything is strict unboxed. Perhaps this is related to creating some closures? How to get rid of those allocations? Yes, distance creates a closure of type @Double - Double# - Double@ which is obviously

[Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread braver
Another way to be happy is to get a family to support, then any idea of making a quick pfennig with C# and then luxuriating in Rio with a laptop full of Haskell will only work if your company goes public! :) -- Alexy ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: What is Haskell unsuitable for?

2010-06-17 Thread Don Stewart
deliverable: At this very moment I'm struggling with fitting a huge graph of Twitter communications into a Haskell program. Apparently it gets into a loop freeing memory. As I suspected, JVM garbage collector got more testing than Haskell at this scale; since not many people load it up as

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Cheplyaka
* Daniel Fischer daniel.is.fisc...@web.de [2010-06-17 16:27:01+0200] On Thursday 17 June 2010 11:43:09, Roman Cheplyaka wrote: * Roman Cheplyaka r...@ro-che.info [2010-06-17 12:40:59+0300] I'm trying to optimize the following program:

[Haskell-cafe] Re: What is Haskell unsuitable for?

2010-06-17 Thread braver
(Looks like my previous reply didn't go through yet) -- yes, we're working on it! :) Cheers, Alexy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: What is Haskell unsuitable for?

2010-06-17 Thread braver
On Jun 17, 12:20 pm, Don Stewart d...@galois.com wrote: Did you talk to Simon Marlow yet? Unlike the JVM, we provide direct access to the GC developers when you run into trouble. :) Yes -- Simon's very helpful, he showed how to identify the loop and debug it further. Hopefully we'll work

[Haskell-cafe] What is Haskell unsuitable for? Dis-functional programming!

2010-06-17 Thread caseyh
:) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] The functional-object style seems to be gaining momentum.

2010-06-17 Thread caseyh
The functional-object style seems to be gaining momentum. Is there any way to convert monads into objects, so that beginners have an easier time with the syntax and thus we can attract more people to the language? :) ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] What is Haskell unsuitable for? Dis-functional programming!

2010-06-17 Thread Alexey Khudyakov
On Thu, 17 Jun 2010 13:45:16 -0400 cas...@istar.ca wrote: :) Objection! http://hackage.haskell.org/package/BASIC A simplified version of the original BASIC embedded in Haskell. -- Alexey Khudyakov alexey.sklad...@gmail.com ___ Haskell-Cafe

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Andrew Coppin
aditya siram wrote: But I wanted to ask people are more experienced with Haskell - what kinds of problems is it unsuited for? Judging by the other thread, getting hired might be a valid answer here... ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: What is Haskell unsuitable for?

2010-06-17 Thread Andrew Coppin
Don Stewart wrote: Did you talk to Simon Marlow yet? Unlike the JVM, we provide direct access to the GC developers when you run into trouble. :) Surely the GHC developers are amoung the busiest people on the planet though... ___ Haskell-Cafe

Re: [Haskell-cafe] Re: Mining Twitter data in Haskell and Clojure

2010-06-17 Thread Claus Reinke
I'll work with Simon to investigate the runtime, but would welcome any ideas on further speeding up cafe4. Just a wild guess, but those foldWithKeys make me nervous. The result is strict, the step function tries to be strict, but if you look at the code for Data.IntMap.foldr, it doesn't really

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread aditya siram
No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. -deech On Thu, Jun 17, 2010 at 1:11 PM, Andrew Coppin andrewcop...@btinternet.com wrote: aditya siram wrote: But I wanted

[Haskell-cafe] Re: Mining Twitter data in Haskell and Clojure

2010-06-17 Thread braver
Since folks got interested, I've added a doc/ subdirectory (on the intern branch) with a PDF defining my karmic social capital mathematically. It is this definition which is faithfully computed both in Clojure and Haskell. I've also added a LICENSE file basically stating that this research is to

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Andrew Coppin
aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. Oh, I don't know... Few companies will want you to *use* Haskell, but lots of people seemed to be

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Darrin Chandler
On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here... No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately,

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Brandon S. Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 17, 2010, at 12:35 , Roman Cheplyaka wrote: That's exactly what I'm asking about. 'abs' in C does not require any allocations, does it? So why does it require any allocations in Haskell, assuming we've got no lazyness, typeclass

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread David Leimbach
On Thu, Jun 17, 2010 at 11:57 AM, Darrin Chandler dwchand...@stilyagin.comwrote: On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here... No argument there - I'm even afraid to stick it on my resume. At

[Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Martin Drautzburg
Hello all The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. I can of course write such a function, but I wonder if there is a standard way of doing this, Related to that is the problem, that the

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Alexander Solla
On Jun 17, 2010, at 12:02 PM, Martin Drautzburg wrote: The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. I can of course write such a function, but I wonder if there is a standard way of doing

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Don Stewart
Martin.Drautzburg: Hello all The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. I can of course write such a function, but I wonder if there is a standard way of doing this, map ($ 2)

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Andrew Coppin
Martin Drautzburg wrote: Hello all The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. I can of course write such a function, but I wonder if there is a standard way of doing this, The magical

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Tillmann Rendel
Martin Drautzburg wrote: The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. So your list of arguments is actually a list of functions. But since functions are first-class values, that shouldn't be

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Miguel Mitrofanov
listFs = [f1, f2, f3] map ($ x) listFs -- same as [f1 x, f2 x, f3 x] f x y z = ... map (\x - f x u v) xs On 17 Jun 2010, at 23:02, Martin Drautzburg wrote: Hello all The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Gregory Collins
Martin Drautzburg martin.drautzb...@web.de writes: Hello all The standard map function applies a single function to a list of arguments. But what if I want to apply a list of functions to a single argument. I can of course write such a function, but I wonder if there is a standard way of

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Roman Beslik
map (\function - function argument) functions map ($ argument) functions map (\firstArgument - function firstArgument secondArgument thirdArgument) xs On 17.06.10 22:02, Martin Drautzburg wrote: Hello all The standard map function applies a single function to a list of arguments. But what

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Darrin Chandler
On Thu, Jun 17, 2010 at 12:01:53PM -0700, David Leimbach wrote: On Thu, Jun 17, 2010 at 11:57 AM, Darrin Chandler dwchand...@stilyagin.comwrote: On Thu, Jun 17, 2010 at 01:38:23PM -0500, aditya siram wrote: Judging by the other thread, getting hired might be a valid answer here...

Re: [Haskell-cafe] Understanding GHC allocations

2010-06-17 Thread Roman Beslik
On 17.06.10 19:12, Roman Beslik wrote: On 17.06.10 12:40, Roman Cheplyaka wrote: From reading core I got the impression that everything is strict unboxed. Perhaps this is related to creating some closures? How to get rid of those allocations? Yes, distance creates a closure of type @Double -

[Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread Paul Lotti
Günther Schmidt gue.schmidt at web.de writes: So how does one get off haskell? Are there people in similar situations that have managed? How did you do it? Günther Same feelings here. I work in a company that uses C++/Java and the best I could manage was to use Haskell for

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread Edward Z. Yang
Excerpts from Paul Lotti's message of Thu Jun 17 15:33:30 -0400 2010: Same feelings here. I work in a company that uses C++/Java and the best I could manage was to use Haskell for prototyping and then deliver in Java. This worked out twice so far. The downside is having to translate it

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread Evan Laforge
So how does one get off haskell? Are there people in similar situations that have managed? How did you do it? I used to get annoyed about all the java boilerplate and awkwardness. But then I learned that if I relax and stop thinking so much about the aesthetics of what I'm writing, I can just

[Haskell-cafe] Using Hint with a socket server

2010-06-17 Thread Tom Jordan
I'm trying to receive small segments of Haskell code over a socket, and be able to evaluate them in real time in GHCI. I've already downloaded Hint and have run the test code, and it's working great. I'm also using the socket server code from Ch.27 of Real World Haskell and that is working well

Re: [Haskell-cafe] The functional-object style seems to be gaining momentum.

2010-06-17 Thread Ivan Lazar Miljenovic
cas...@istar.ca writes: The functional-object style seems to be gaining momentum. Is there any way to convert monads into objects, so that beginners have an easier time with the syntax and thus we can attract more people to the language? I seriously have no idea what you're talking about

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread caseyh
If you want to use cool languages, you may have to get a cool job. I know: it's easy to say and harder to accomplish. Most functional languages (e.g. Lisp, Haskell, ...) have a challenging time in industry since they require some savvy with multiple levels of higher abstractions and some

[Haskell-cafe] coming soon: ICFP programming contest 2010

2010-06-17 Thread J . Waldmann
http://icfpcontest.org/2010/ will start roughly 12 hours from now. 2210222201011220101002200112200220010 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: How does one get off haskell?

2010-06-17 Thread Christopher Done
At CREATE-NET we're hiring Haskellers. If you fancy working in Trento (Italy) and you have experience, apply here. Try these trivial questions http://hpaste.org/fastcgi/hpaste.fcgi/view?id=26317 The question list doesn't indicate expertise but it does filter out newbies. Don't bother if you

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Erik de Castro Lopo
Andrew Coppin wrote: aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell, unfortunately, is not that shy. Oh, I don't know... Few companies will want you to *use* Haskell, but

Re: [Haskell-cafe] Using Hint with a socket server

2010-06-17 Thread Daniel Gorín
Hi Tom, There is probably more than one way to do this. Did you try using the package hint-server? [1] It has a very simple interface: you start a server and obtain a handle; then you can run an interpreter action using the handle. Something like this: runIn handle (interpret msg (as

[Haskell-cafe] Fun Facts: A lazy bill

2010-06-17 Thread Leonel Fonseca
I share this just for the sake of fun. In Costa Rica (Central America) a new series of bills are to be emitted and to celebrate bio-diversity some animal drawings are going to be used. Look at the new 10.000 colones bill: http://www.bccr.fi.cr/WebPages/PaginaInicio/NuevaFamilia/10.html Choose

[Haskell-cafe] Troubles Building LLVM

2010-06-17 Thread Keith Sheppard
Hello All, I'm trying to get up and running with the very interesting llvm package[1] but I'm running into problems during the linking stage. ke...@sugarglider-2:~/projects/third-party/llvm-hs-bindings/examples/ make clean all rm -f HelloJIT Fibonacci BrainF Vector Array DotProd Arith Align

[Haskell-cafe] Re: Mining Twitter data in Haskell and Clojure

2010-06-17 Thread braver
On Jun 17, 2:36 pm, Claus Reinke claus.rei...@talk21.com wrote: I'll work with Simon to investigate the runtime, but would welcome any ideas on further speeding up cafe4. Just a wild guess, but those foldWithKeys make me nervous. The result is strict, the step function tries to be strict,

Re: [Haskell-cafe] HaskellWiki and Wikipedia

2010-06-17 Thread Jason Dagit
On Thu, Jun 17, 2010 at 6:36 AM, Roman Beslik ber...@ukr.net wrote: I mean that a link [[X]] leads to HaskellWiki if X exists in HaskellWiki and to Wikipedia otherwise. Interwiki links requires to change all occurrences of [[X]] when X is created. [[wikipedia:{{PAGENAME}}]] may be handy on

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Michael Snoyman
On Fri, Jun 18, 2010 at 5:03 AM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Andrew Coppin wrote: aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell,

Re: [Haskell-cafe] Fun Facts: A lazy bill

2010-06-17 Thread Bulat Ziganshin
Hello Leonel, Friday, June 18, 2010, 6:46:31 AM, you wrote: to be used. Look at the new 10.000 colones bill: and this one - http://www.bccr.fi.cr/WebPages/PaginaInicio/NuevaFamilia/5.html is for C++ programmers :) -- Best regards, Bulat

Re: [Haskell-cafe] Mapping a list of functions

2010-06-17 Thread Bulat Ziganshin
Hello Martin, Thursday, June 17, 2010, 11:02:31 PM, you wrote: But what if I want to apply a list of functions to a single argument. I can one more answer is swing map: http://www.haskell.org/haskellwiki/Pointfree#Swing -- Best regards, Bulat