[Haskell-cafe] Microsoft's Craig Mundie outlines the future of computing
http://news.cnet.com/8301-13953_3-10050826-80.html?part=rss&subj=news&ta g=2547-1_3-0-5 "We have to see a paradigm change in the way we write applications." He also said that software development hasn't graduated to become a formal engineering discipline. "The resilience of systems is not up to the task," he said. "We have to master the transition to a parallel programming environment, with highly distributed, concurrent systems. It's nascent at this point but it's required to achieve these capabilities." Sounds like Haskell will fit well in this future world. Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Consensus about databases / serialization
For small queries, it does not matter much which approach you choose. But for large, complex queries, such 3-table join (especial Star Transformation) and/or large data set (millions of rows involved in large data warehouses), the performance will differ by order of magnitude, depending on how things are optimized. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Verswyvelen Subject: RE: [Haskell-cafe] Consensus about databases / serialization Yitz wrote: > My impression from some previous posts is that > because of the high-level approach, it is difficult > to control the precise SQL that is generated. In practice, > you almost always have to do some tweaking that is > at least DB-dependent, and often application dependent. Can't the same be said regarding SQL itself? It sometimes needs tweaking. That's the problem with any high level abstraction no? Just like in Haskell you sometimes have to use strictness tweaks. Of course having an extra layer on top of SQL will make the tweaking more difficult :) Peter -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Missing join and split
Programmer with perl background would think split like: = split Since regex is involved, it is specific to (Byte)String, not a generic list. Also it appears one would need help from Text.Regex(.PCRE) to do that. > intercalate a (split a xs) = a This identity rule does not hold for perl's join/split if regex is used. Steve -Original Message- On Dec 28, 2007 4:24 PM, Benja Fallenstein <[EMAIL PROTECTED]> wrote: > Right; I misspoke. What I meant was that you would want a split such that > > intercalate a (split a xs) = a > -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Is there a module for multivariate linear regression?
Thanks. I have been wondering if there is a Haskell interface to Octave and maybe to Scilab. Steve -Original Message- From: Henning Thielemann [mailto:[EMAIL PROTECTED] > I am looking for a Haskell module that will do multivariate linear > regression. Does someone know which module will do it? That is, the > equivalent of Perl's Statistics::Regression.pm. > > http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/Regressi on.pm Maybe you can solve this with the GSL Haskell wrapper and least squares solutions of simultaneous linear equations. (Numeric.LinearAlgebra.Algorithms.linearSolve) http://alberrto.googlepages.com/gslhaskell -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Is there a module for multivariate linear regression?
I found an first-order implementation in hstats (linreg, see below) while inspecting its source code. http://www.sftank.net/code/hstats/src/Math/Statistics.hs But, for some reason, it does not show up in the documentation (not released yet) !? http://hackage.haskell.org/packages/archive/hstats/0.2/doc/html/Math-Sta tistics.html -- -- |Least-squares linear regression of /y/ against /x/ for a -- |collection of (/x/, /y/) data, in the form of (/b0/, /b1/, /r/) -- |where the regression is /y/ = /b0/ + /b1/ * /x/ with Pearson -- |coefficient /r/ linreg :: (Floating b) => [(b, b)] -> (b, b, b) linreg xys = let !xs = map fst xys !ys = map snd xys !n = fromIntegral $ length xys !sX = sum xs !sY = sum ys !sXX = sum $ map (^ 2) xs !sXY = sum $ map (uncurry (*)) xys !sYY = sum $ map (^ 2) ys !alpha = (sY - beta * sX) / n !beta = (n * sXY - sX * sY) / (n * sXX - sX * sX) !r = (n * sXY - sX * sY) / (sqrt $ (n * sXX - sX^2) * (n * sYY - sY ^ 2)) in (alpha, beta, r) -Original Message- Don, I checked most of them, but did not find anything close. Hstats seems to be the right place, but no, it does not contain such function. It only contains predictive functions in statistics, but there is no best-fit type of functions. I can calculate Sharpe ratio from it, but I can not calculate the alpha and beta between two indexes/funds. http://haskell.org/haskellwiki/Applications_and_libraries/Mathematics FYI -- Under 2.8, HaskellMath links to a 404 page. > this does sound like fairly easy to package up as a new module, though, if you're keen.. This may be the only alternative if nothing obvious comes up... Thanks, Steve -Original Message- >I am looking for a Haskell module that will do multivariate linear >regression. Does someone know which module will do it? That is, the >equivalent of Perl's Statistics::Regression.pm. > > [1]http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/Regre ssion.pm > >Thanks, >Steve > Always check hackage.haskell.org first, but I'm not sure we have exactly what you're looking for: http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Math in which case the backup is : http://haskell.org/haskellwiki/Applications_and_libraries/Mathematics this does sound like fairly easy to package up as a new module, though, if you're keen.. -- Don -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Is there a module for multivariate linear regression?
Don, I checked most of them, but did not find anything close. Hstats seems to be the right place, but no, it does not contain such function. It only contains predictive functions in statistics, but there is no best-fit type of functions. I can calculate Sharpe ratio from it, but I can not calculate the alpha and beta between two indexes/funds. http://haskell.org/haskellwiki/Applications_and_libraries/Mathematics FYI -- Under 2.8, HaskellMath links to a 404 page. > this does sound like fairly easy to package up as a new module, though, if you're keen.. This may be the only alternative if nothing obvious comes up... Thanks, Steve -Original Message- >I am looking for a Haskell module that will do multivariate linear >regression. Does someone know which module will do it? That is, the >equivalent of Perl's Statistics::Regression.pm. > > [1]http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/Regre ssion.pm > >Thanks, >Steve > Always check hackage.haskell.org first, but I'm not sure we have exactly what you're looking for: http://hackage.haskell.org/packages/archive/pkg-list.html#cat:Math in which case the backup is : http://haskell.org/haskellwiki/Applications_and_libraries/Mathematics this does sound like fairly easy to package up as a new module, though, if you're keen.. -- Don -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Is there a module for multivariate linear regression?
I am looking for a Haskell module that will do multivariate linear regression. Does someone know which module will do it? That is, the equivalent of Perl's Statistics::Regression.pm. http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/Regressi on.pm Thanks, Steve -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Is there a module for multivariate linear regression?
I am looking for a Haskell module that will do multivariate linear regression. Does someone know which module will do it? That is, the equivalent of Perl's Statistics::Regression.pm. http://search.cpan.org/~itub/PerlMol-0.35_00.ppm/lib/Statistics/Regression.pm Thanks, Steve -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux
Tom, Although there are ghc rpms (http://www.haskell.org/ghc/dist/6.6.1/rpm/), it can not be installed as non-root user. The rpm lock and rpm db issue makes it a "complicated and pathological" case -- see thread here https://lists.dulug.duke.edu/pipermail/rpm-devel/2005-April/000403.html <https://lists.dulug.duke.edu/pipermail/rpm-devel/2005-April/000403.html > . I don't know if the rpm can be packaged differently as your link suggests to avoid these issues. I would suggest making a note on the GHC download page for non-root user not to try the rpm, it is a waste of time. The tar.bz2 file works fine. Just be careful when dealing with Lambdabot (and GOA). BTW, the 661 rpm depends on gmp-devel and readline, which further complicated the case for non-root user. Steve From: Thomas Hartman [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2007 10:04 AM To: Lihn, Steve Cc: Brandon S. Allbery KF8NH; Haskell-Cafe Haskell-Cafe; Stefan O'Rear Subject: RE: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux >Indeed, I don't want to waste time but have no choice (rpm needs root), not sure if this'll help (never tried it myself) but this claims there's a non-root way to use rpm http://www.techonthenet.com/linux/build_rpm.php cheers, t. --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. --___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux
Thanks for all the feedback. I removed GHC 6.4 and re-installed 6.6.1 and was able to install Haddock and other things in a few seconds. It seems that the GOA and Lambdabot complicated the environment under the hook, I will just leave them alone for now. > Life is too short (and haskell has enough other complications) to be installing stuff from source :) Indeed, I don't want to waste time but have no choice (rpm needs root), and in today's world, software should be built by simply "config,build,install". Maybe in the academic world, people always have their own machines and root access, but this is not true for people living on ISP accounts (and corporate world too) where root access is restricted. Consider that Haskell is not a mainstream software like perl or java, it is hard to ask sysadmin to put it under root. I was exploring Haskell website and finding more and more things I "need" to install. The time to figure out how to build each one of them is too much (consider I am a fluent IT software builder). I am wondering why Haskell community does not pacakge a "full package" that includes ghc, haddock, happy, alex, darcs, cabal, etc... Things that a "typical" developer will bump into eventually. I understand that putting two large compilers (ghc+hugs) may take a lot space, but for smaller utilities, it would be nice if they are included (if there is no unwelcomed "side effect"). Steve -Original Message- From: Stefan O'Rear [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 11:04 PM To: Brandon S. Allbery KF8NH Cc: Lihn, Steve; Haskell-Cafe Haskell-Cafe Subject: Re: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux On Fri, Oct 12, 2007 at 07:31:45PM -0400, Brandon S. Allbery KF8NH wrote: > >> I don't think haddock "has" to depend on lamdbabot. But I saw "Skipping >> HaddockHoogle" during the build. Isn't the Hoogle thing related to >> Lambdabot? Or they are unrelated. > > Only insofar has Lambdabot has an interface to Hoogle (which IIRC depends > on Haddock knowing how to build Hoogle indexes, which is what that segment > is about). Haddock doesn't build the Hoogle stuff by default, IIRC. Besides, "Skipping foo" is GHC-ese for "foo is already up to date, not wasting time..." Stefan -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux
> are you certain haddock depends on lambdabot? that seems very strange to me. Thomas, I also thought haddock should be an easy build, but it just won't do it. /home2//garden/haddock-0.8> runhaskell ./Setup.lhs install Installing: --prefix=~/cabal/lib/haddock-0.8/ghc-6.4 & --prefix=~/cabal/bin haddock-0.8... Then it stopped and nothing got done. (I even checked rc=0 but the lib/bin dir does not have trace of haddock!) I don't think haddock "has" to depend on lamdbabot. But I saw "Skipping HaddockHoogle" during the build. Isn't the Hoogle thing related to Lambdabot? Or they are unrelated. Again being new to the Haskell world (only a few months), I am not an expert on what depends on what. It would be nice to have a "type system" to check the dependency of the many packages. Perl CPAN does a good job on this. Steve -- To haskell-cafe@haskell.org cc Subject [Haskell-cafe] How to thoroughly clean up Haskell stuff on linux Hi, I have been hacking the Haskell installation a few days on Redhat Linux. GHC 6.6 -> 6.6.1 -> Lambdabot does not work. Downgrade to GHC 6.4 -> Still not working, tried cabal-install to simplify my life, but no luck. Then install Cabal, Haddock -> Haddock cannot install bc Lambdabot is not there. (And some dependency issues.) Remove .ghci, Haddock still not work. It seems the Haskell world (outside the beautiful GHC) is in a recursive non-functional blackhole. Anyway, now my question is, how do I thoroughly clean up Haskell? (And maybe try again after a few days of rest.) My environment is Redhat Linux, install most stuff on /home/// where = GHC, Lambdabot, cabal, haddock, etc. It seems there are some hidden files/dirs, .GHC, .ghci, anything else? Thanks, Steve -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] How to thoroughly clean up Haskell stuff on linux
Hi, I have been hacking the Haskell installation a few days on Redhat Linux. GHC 6.6 -> 6.6.1 -> Lambdabot does not work. Downgrade to GHC 6.4 -> Still not working, tried cabal-install to simplify my life, but no luck. Then install Cabal, Haddock -> Haddock cannot install bc Lambdabot is not there. (And some dependency issues.) Remove .ghci, Haddock still not work. It seems the Haskell world (outside the beautiful GHC) is in a recursive non-functional blackhole. Anyway, now my question is, how do I thoroughly clean up Haskell? (And maybe try again after a few days of rest.) My environment is Redhat Linux, install most stuff on /home/// where = GHC, Lambdabot, cabal, haddock, etc. It seems there are some hidden files/dirs, .GHC, .ghci, anything else? Thanks, Steve -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe