Re: [Haskell-cafe] FRP, integration and differential equations.

2009-04-23 Thread Steve Lihn
Just my two cents. The open source project Maxima is a very successful math engine dedicated to solving ODE PDE and integration among many other things. It is implemented in LISP. Steve On 4/21/09, jean-christophe mincke jeanchristophe.min...@gmail.com wrote: Peter, Paul, But my question is,

[Haskell-cafe] ghc on CentOS 5 ?

2008-12-12 Thread Steve Lihn
I recently got a CentOS server, but noticed that ghc rpm is not available from CentOS yum. After investigation, I found ghc is in Fedora repository, but does not make its way to EPEL, which yum on CentOS can use. ( http://download.fedora.redhat.com/pub/epel/5/x86_64/) Is there any plan to get it

Re: [Haskell-cafe] Re: Microsoft's Craig Mundie outlines the future of computing

2008-09-26 Thread Steve Lihn
According to this discussion, none of the corporate email is okay for open source mailing list. Maybe you guys should join the Vioxx lawsuit team instead of Haskell cafe. Or maybe Haskell's strictness has trained haskell programmers to attend such details. That is really a good training for the

Re: [Haskell-cafe] Access to Oracle database from Haskell

2008-06-21 Thread Steve Lihn
Oracle OCI interface is quite different between 7/8 and 9/10. And 10 is different from 9 in some respect. I don't know much about 11. Oracle 10.2.0.3 is a stable release, but there are some major server bugs in it, that Oracle had to release 10.2.0.4. I'd recommend Haskell community to focus on

Re: [Haskell-cafe] Access to Oracle database from Haskell

2008-06-20 Thread Steve Lihn
You may want to check this out. http://www.orafaq.com/wiki/ODBC_FAQ#Where_can_one_get_ODBC_drivers_for_Oracle_and_Rdb.3F As Oracle is a commercial company who is not interested in open source historically, it is little chance that you will get robust software for free -- from someone with many

[Haskell-cafe] Higher order randomness and the fat tails

2008-04-25 Thread Steve Lihn
Hi, Haskellers, This email is only remotely connected to this list. Recently I am doing some research on the fat tails (in fact, I simply bumped into it) on the stock market. I came up with an equation which I think solves the fat tails -- which is really the Levy stable distribution. During the

Re: [Haskell-cafe] ANN: Hayoo! beta 0.1

2008-04-08 Thread Steve Lihn
Bug report: I am using IE6. The Powered by bar at the bottom does not reposition as I scroll down. So there is a small portion on the page always masked by the Powered by bar. Nice work. Great google-like speed... Steve On 4/8/08, Timo B. Hübel [EMAIL PROTECTED] wrote: Hello, thanks for

Re: [Haskell-cafe] Satnam Singh of Microsoft Research

2008-03-19 Thread Steve Lihn
Related news -- Intel, Microsoft choose UC-Berkeley to host $10M parallel computing center March 19, 2008 8:36 AM ET http://news.moneycentral.msn.com/provider/providerarticle.aspx?feed=ACBJdate=20080319id=8361298 ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] ANN: Hoogle 3.1

2008-02-29 Thread Steve Lihn
Interesting to know people are looking for \where\. As a fairly new Haskeller, I bumped into frequent indentation issues (if-then-else, case, where, let, do, etc) and sometimes not sure where to place \where\ properly. Maybe beginners are having problem with syntax more than other things and they

[Haskell-cafe] ArrowChoice for simulation arrow (Sim)

2008-02-28 Thread Steve Lihn
Hi, In John Hughes\' paper \Programming with arrows\ [1] Section 5, the simulation arrow is defined (Sim). All the examples went well. However, when I want to use it beyond circuit simulation and I added a \if-then-else\ line, GHC is asking to define ArrowChoice for Sim. Does anybody have the

Re: [Haskell-cafe] Re: ANN: Hoogle 3.1

2008-02-28 Thread Steve Lihn
Neil, Would you consider adding auto-complete feature on Hoogle in the forth coming release? http://wiki.script.aculo.us/scriptaculous/show/Ajax.Autocompleter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: ANN: Hoogle 3.1

2008-02-28 Thread Steve Lihn
You can try aggressive caching and indexing (which google uses often) based on 20-80 rule. http://en.wikipedia.org/wiki/Pareto_principle On Thu, Feb 28, 2008 at 7:49 PM, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Steve, Would you consider adding auto-complete feature on Hoogle in the forth

Re: [Haskell-cafe] A little toy of Haskell Trivia

2008-02-24 Thread Steve Lihn
System.IO.Unsafe 81 9 Foreign 74 10 Data.Map 68 Steve On Sat, Feb 23, 2008 at 5:25 PM, Ross Paterson [EMAIL PROTECTED] wrote: On Sat, Feb 23, 2008 at 10:59:40AM -0500, Steve Lihn wrote: I parsed through all the hackagedb modules. I also added the display of repository source (ghc, hdb

Re: [Haskell-cafe] A little toy of Haskell Trivia

2008-02-23 Thread Steve Lihn
There's a link on the HackageDB Introduction page that gets you the latest versions of all packages (30MB). Ross, Thanks for the archive URL. I parsed through all the hackagedb modules. I also added the display of repository source (ghc, hdb) and package source. HackageDB is 3-4 times bigger

Re: [Haskell-cafe] A beginners question

2008-02-23 Thread Steve Lihn
fmap (^4) [1,2,3] = \i - shows i gives 1 16 81 You are in the list comprehension in a monadic expression. shows is called three times (i is int). then why does let i = fmap (^4) [1,2,3] in shows i give [1,16,81] shows is called once (i is a list).

[Haskell-cafe] A little toy of Haskell Trivia

2008-02-20 Thread Steve Lihn
I proudly announce a little toy that lists the frequency of modules being imported by other modules. Do you know Control.Monad is the most frequently imported module? I did not! Currently it only includes GHC 6.8 core library. If you have any idea how to parse through HackageDB code, please let

Re: [Haskell-cafe] Where does ~ come from?

2008-02-20 Thread Steve Lihn
If ~ does not have any special meaning and it could be ### or xyz, then how does GHC know to print a ~ b, but not ~ a b a ### b, but not ### a b xyz a b, but not a `xyz` b Simply because xyz is alphanumeric? On Wed, Feb 20, 2008 at 12:34 AM, David Menendez [EMAIL PROTECTED] wrote: On Feb

[Haskell-cafe] Where does ~ come from?

2008-02-16 Thread Steve Lihn
While I am reading TypeCompose module, I am having trouble finding where ~ comes from? (And its son ~~ and grandson ~~~, etc.) This is my immediate question. Help is appreciated. A bigger (higher-order?) issue I encountered and I think other people could also have is to look up all these special

Re: [Haskell-cafe] a general question on Arrows

2008-02-14 Thread Steve Lihn
1. Stream This is actually a comonad. Something more to learn everyday. Here's another fun arrow: http://luqui.org/blog/archives/2007/09/06/quantum-entanglement-in-haskell/ Luke Luke, I managed to get your quantum entanglement examples working. But honestly, I can't quite figure out

Re: [Haskell-cafe] ANN: nano-hmac 0.2.0

2008-02-13 Thread Steve Lihn
And in perl CPAN world, there are bundles that put together related packages in one big install... Maybe there can be Cabal bundles. Just an idea! On Feb 12, 2008 2:03 PM, Don Stewart [EMAIL PROTECTED] wrote: Ok, I'll leave it up there as a separate package then. :) -- Don hitesh.jasani:

[Haskell-cafe] a general question on Arrows

2008-02-13 Thread Steve Lihn
In John Hughes' paper [1], Programming with Arrows, p. 20, The truly interesting arrow types are those which do not correspond to a monad, because it is here that arrows give us real extra generality. Since we know that stream functions cannot be represented as a monad, then they are one of these

[Haskell-cafe] ANN: Finance-Treasury 0.1.1

2008-02-09 Thread Steve Lihn
A new experimental package, Finance-Treasury, has been uploaded to hackage. It automates the fetching of Treasury's daily yield curve data (XML) and translates the data into Data.Map representation. The collection of historical data can go back to 1992.

[Haskell-cafe] How to make GHC 6.6 and 6.8 co-exist -- was: First go at reactive programming

2008-01-28 Thread Steve Lihn
I want to raise this issue again since I disagreed (see quoted text below) that cabal-install can solve the problem of moving from one version to another completely. For most /pure/ packages, it is probably true. But for those packages that have external depedencies, this is hardly so. For

Re: [Haskell-cafe] hxt memory useage

2008-01-27 Thread Steve Lihn
Suggestion: a binding to Expat, like perl and python did. So this is a request for an xml-light based on lazy bytestrings, designed for speed at all costs? -- Don ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-21 Thread Steve Lihn
Duncan, I got the latest cabal. The stack overflow is fixed. But the install command still does not work (on a very simple package). Attached is the verbose output. It does not like to proceed somewhere between configure and build. But the verbose is not telling why! I also attached my cabal

Re: [Haskell-cafe] First go at reactive programming

2008-01-20 Thread Steve Lihn
This fixed the second example. Thanks. I think handleConnection should be handleConnection :: RequestHandler - Handle - IO () handleConnection r h = handleToRequest h = responseSend h . runRequestHandler r Levi ___ Haskell-Cafe mailing

Re: [Haskell-cafe] First go at reactive programming

2008-01-19 Thread Steve Lihn
and inserting -fglasgow-exts pragmas), darcs-pushed, and put a new version (0.3) on hackage. Please give it another try. Cheers, - Conal On Jan 18, 2008 7:58 PM, Steve Lihn [EMAIL PROTECTED] wrote: Tried to install reactive-0.2 on GHC-6.6, but failed. Building reactive-0.2... src

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-19 Thread Steve Lihn
On Jan 19, 2008 9:18 AM, Duncan Coutts [EMAIL PROTECTED] wrote: I think you're just missing a --user: $ cabal install --prefix=$HOME --user foo The prefix can also be set in the $HOME/.cabal/config file. Syntax? Something like: prefix: /path/to/my/ghc ? BTW, In the development

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-19 Thread Steve Lihn
Just tried to test drive another feature and got the nasty error: cabal list Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize' to increase it. On Jan 19, 2008 9:27 AM, Steve Lihn [EMAIL PROTECTED] wrote: On Jan 19, 2008 9:18 AM, Duncan Coutts [EMAIL PROTECTED] wrote

[Haskell-cafe] How best to make GHC 6.6 and 6.8 co-exist on one server/account

2008-01-19 Thread Steve Lihn
Hi, It appears some of the latest hackages are moving towards 6.8 to take advantage of the new features, while quite a few remains at 6.6. The compatibility between the two versions has been problematic. I only have 6.6 installed, but now thinking to add 6.8 to my account (so I can switch between

Re: [Haskell-cafe] First go at reactive programming

2008-01-19 Thread Steve Lihn
-- | @'forever' act@ repeats the action infinitely. forever :: (Monad m) = m a - m () forever a = a forever a Great. The code compiled successfully by inserting this in various places. I'm wondering how hard to try to get these libs to work with both 6.6 and 6.8. My hope has been

[Haskell-cafe] need help for cabal-install

2008-01-18 Thread Steve Lihn
Hi, I just got cabal-install working. However, I have a problem using it. My GHC is installed in a user-specific location, so when I do the Cabal dance, I have to specfiy Setup configure --prefix=$HOME/ghc. Now with cabal install, I can not figure out where to specify the --prefix. Cabal always

Re: [Haskell-cafe] First go at reactive programming

2008-01-18 Thread Steve Lihn
Tried to install reactive-0.2 on GHC-6.6, but failed. Building reactive-0.2... src/Data/Reactive.hs:1:13: cannot parse LANGUAGE pragma Is the package for GHC 6.8? Is there an older version (0.0?) for GHC 6.6 that I can play with your example? (Or advise how to hack that file to get it work on

Re: [Haskell-cafe] haskelldb basic documentation needed

2008-01-16 Thread Steve Lihn
For mysql (via HDBC),some documentation is available here. But it is rather going through HDBC-ODBC-mysql. It is a bit complex than you would normally expect with mysql. http://en.wikibooks.org/wiki/Haskell/Database 2008/1/15 Justin Bailey [EMAIL PROTECTED]: 2008/1/15 Immanuel Normann [EMAIL

[Haskell-cafe] How to add ENV variable in runhaskell shell script

2008-01-13 Thread Steve Lihn
Hi, In perl scripts (unix), one can do == #!/usr/local/bin/perl BEGIN { $ENV{LD_LIBRARY_PATH} = ...; } do my perl stuff == The setting of ENV variable before the program runs allows me to fix the shell environments. In this case, I need to specify where to look for the shared library. How do

Re: [Haskell-cafe] Consensus about databases / serialization

2008-01-02 Thread Steve Lihn
I have started documenting the Database Wikibook, in particular, about HDBC. It is still very rough at this time, but something is better than nothing :-) If you want to add more content, certainly welcome! http://en.wikibooks.org/wiki/Haskell/Database On 1/2/08, Jeff Polakow [EMAIL PROTECTED]

Re: [Haskell-cafe] Interesting data structure

2007-12-29 Thread Steve Lihn
What you described has a Java parallel: In the first program, I am reading on-demand from a database - just reading, not making any changes. This is similar to EJB's entity bean. Usually EJB requires XA driver to preserve database state across the cluster, but in your read-only case, this is

Re: [Haskell-cafe] Re: Comments on reading two ints off Bytestring

2007-12-26 Thread Steve Lihn
Just curious -- how can this be done in Arrows instead of Manad/T? Or can it? On Dec 26, 2007 6:42 AM, Benja Fallenstein [EMAIL PROTECTED] wrote: On Dec 23, 2007 1:44 PM, Isaac Dupree [EMAIL PROTECTED] wrote: parseHeader3 :: BS.ByteString - Maybe (Int, Int) parseHeader3 bs = do (x,

Re: [Haskell-cafe] Re: DSL question -- was: New slogan for haskell.org

2007-12-26 Thread Steve Lihn
, Bjorn Buckwalter [EMAIL PROTECTED] wrote: Steve Lihn stevelihn at gmail.com writes: I do come aross a question while reading the DSL page on Wikipedia. http://en.wikipedia.org/wiki/Domain-specific_programming_language In the Disadvantage section (near the end), there is an item -- hard

[Haskell-cafe] Hoogle search scope question -- was: [HXT] Simple question

2007-12-22 Thread Steve Lihn
I have a hoogle question. While I was reading the HXT discussion (below), I tried to search runX and readString in Hoogle (since I am new to HXT and Arrows). But neither search yielded any result and I had to use google to find the Haskell docs. So I am wondering what is the scope of Hoogle that

[Haskell-cafe] DSL question -- was: New slogan for haskell.org

2007-12-19 Thread Steve Lihn
Thanks for the explanation on DSL. It helped me understand how Haskell works compared to other popular languages out there. It is a programming methodology change. Or what is called paradigm change on how to design a software with Haskell. Haskell has its general-purpose features. Yet its

FFI question -- was: [Haskell-cafe] New slogan for haskell.org

2007-12-19 Thread Steve Lihn
On Dec 11, 2007 11:16 PM, Don Stewart [EMAIL PROTECTED] wrote: 2. It offers strong support for integration with other languages and tools (FFI? Is the support strong?) 2. The FFI in Haskell is perhaps the most powerful out there. You can import C or export Haskell to C

Re: [Haskell-cafe] New slogan for haskell.org

2007-12-11 Thread Steve Lihn
I have not used Haskell to write large scale program, but I am certainly interested to know the answer to these questions. Can Haskell offer the following as Pythoner boasts? 1. can be used for many kinds of software development. (some may argue yes, but different kinds from what python is good