#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9
Top Prev 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 Next
#haskell
<ejt> but there's a big difference between appreciating how beautiful something is, and being able to produce good code quickly
<ejt> it's the latter that I'm really trying to concentrate on
<ejt> Korollary: do you have any of your solution still ?
<Korollary> ejt: I don't. Sorry. You'll start writing quicker as you get used to the language more.
<sjanssen> http://www.spoj.pl is another nice programming problems source
<lambdabot> Title: Sphere Online Judge (SPOJ)
<sjanssen> you can even submit solutions in Haskell
<ejt> thx
<sm> defining some data models that reference each other, I find myself breaking them into somewhat awkward modules to get around the hassles of recursive import
<sorear> agreed
<astrolabe> maybe it's because of my idea of modules, but I've never wanted to make mutually recursive ones.
<sm> here's my example: ledger contains entries containing transactions containing accountnames. accounts have an accountname and transactions, which they find in a ledger.
<sm> I had to split account and accountnames modules. which is not too bad. I've seen other hassles, but actually I can't find a good example just now
<sm> it's forcing me to layer things carefully from the bottom up
<astrolabe> sm: That sounds like a good thing ;)
<sm> it does, doesn't it.. I'll see how things evolve
<sm> so anyway, this personal finance thing I said I was going to work on a while back.. it's coming together
<sm> back then someone pointed me to ledger (http://newartisans.com), for which thanks - it's just what I needed
<sm> so I've been porting bits of it to haskell
<sm> right now it can parse the ledger file format and print a balance report or a simple register report, matching on account or description
<sm> this is improving my haskell, for sure.. and I'd appreciate any code review, suggestions, help
<sm> http://joyful.com/darcsweb/darcsweb.cgi?r=hledger;a=tree
<lambdabot> Title: darcs - hledger
<sm> so far, you could say it's roughly 10x fewer lines of code and 10x slower than the c++ version
<sm> (hence my interest in setting up profiling)
<Lemmih> sm: Did you resolve the problem?
<sm> Lemmih: not yet.. I kicked off a ghc rebuild, it's still going
<TomMD> Are there any good block diagrams about happs structure? Similarly, is there any information available about where happs is going?
<fasta> Lemmih: can I get around that part of the monomorphism restriction in some way?
<sorear> hehe. I spent all of yesterday figurign out how happs works.
<sorear> I think I know enough to write a protocol module now ...
<Lemmih> fasta: -fno-monomorphism-restriction didn't work?
<TomMD> sorear: did you use the code, humans, or is there good documentation?
<fasta> Lemmih: I have OPTIONS_GHC -fno-monomorphism-restriction in the file
<fasta> Lemmih: In the correct format
<fasta> Lemmih: {-# OPTIONS_GHC -fglasgow-exts -fno-monomorphism-restriction -fno-implicit-prelude #-}
<sm> TomMD: I think there is no good documentation that you haven't already found..
<TomMD> ok
<sm> browse the list archives, for sure
<fasta> TomMD: Maybe there's a TODO file?
<sorear> TomMD: the code :(
<sorear> is there a typo in the newArray# documentation? it looks like you need to know the wordsize to use it!
<sorear> not that I'm sure I should be using primops for this anyways :)
<sorear> there IS a typo ... either that or a bug in GHC.Arr.unsafeArray
<Cheery> http://www.wellingtongrey.net/miscellanea/archive/2006-12-18-why-go.png
<lambdabot> http://tinyurl.com/293rvx
<sm> darn, ghc-pkg: dependency OpenGL doesn't exist (use --force to override). I didn't have the opengl headers installed when I configured
<sm> how can I get it to finish building what I do have, without starting over ?
<Cheery> sm: could you ask it another way around?
<Cheery> or wait, sorry.
Previous Page Next Page