[Haskell-cafe] Improving GHC's LLVM Backend

2013-06-28 Thread Alex Ford
lly appreciate it if anyone who knows about the Haskell LLVM bindings or about the GHC LLVM backend could give any advice regarding what sort of work needs to be done with the LLVM bindings to make them more appropriate for use within GHC, or how to approach modifying the existing LLVM backend

[Haskell-cafe] Is OpenAL unqueueBuffers implemented correctly?

2012-12-24 Thread alex
rce -> Int -> IO [AL.Buffer] unqueueBuffers source nbuffers = allocaArray nbuffers $ \ptr -> do alSourceUnqueueBuffers source (fromIntegral nbuffers) ptr peekArray nbuffers ptr I just started using OpenAL, so I might be misunderstanding how this is sup

Re: [Haskell-cafe] Strange behavior with listArray

2012-11-14 Thread Alex Stangl
7;s off to you, sir. This is kind of interesting -- I would normally consider this indexing transformation as an approach for defeating memoization, yet in this case it serves as the key that makes the broader memoization possible, lifting it up a level. Thanks! Alex P.S. A side benefit of this ap

Re: [Haskell-cafe] Strange behavior with listArray

2012-11-13 Thread Alex Stangl
On Tue, Nov 13, 2012 at 08:06:59AM -, o...@okmij.org wrote: > Alex Stangl posed a problem of trying to efficiently memoize a > function without causing divergence: > ... > But the problem can be fixed: after all, f k is a list of integers. A > list is an indexable collection. L

Re: [Haskell-cafe] Strange behavior with listArray

2012-11-12 Thread Alex Stangl
On Mon, Nov 12, 2012 at 02:52:28PM +0100, Daniel Fischer wrote: > The problem, Alex, is that > > f k = if k > 0 > then f (a!0) > else 0 : f 1 > > is strict, it needs to know the value of (a!0) to decide which branch to > take. > But the constructio

Re: [Haskell-cafe] Strange behavior with listArray

2012-11-12 Thread Alex Stangl
On Mon, Nov 12, 2012 at 08:36:49AM +0100, Bas van Dijk wrote: > On 12 November 2012 04:50, Alex Stangl wrote: > > I'm stymied trying to figure out why the program below blows up with > > <<>> when I use "f 0" > If you replace the a!0 in f by its valu

[Haskell-cafe] Strange behavior with listArray

2012-11-11 Thread Alex Stangl
I'm stymied trying to figure out why the program below blows up with <<>> when I use "f 0" for building the array, but if I substitute g or h in place of f, they work fine. Is this a bug or am I overlooking something? I am using GHC 7.4.2. Thanks, Alex P.S. Forg

Re: [Haskell-cafe] Building all possible element combinations from N lists.

2012-10-25 Thread Alex Stangl
On Thu, Oct 25, 2012 at 06:34:53PM -0400, Jake McArthur wrote: > I golfed a bit. :) > > sequence <=< filterM (const [False ..]) I was thinking of golfing this myself tonight, but probably wouldn't have come up with this. Thanks for sparing me the e

Re: [Haskell-cafe] Building all possible element combinations from N lists.

2012-10-25 Thread Alex Stangl
n is taken from one of the N > lists. combos [] = [[]] combos ([]:ls) = combos ls combos ((h:t):ls) = map (h:) (combos ls) ++ combos (t:ls) Drop last element if you don't want to include the empty set. It wouldn't be as elegant, but you can t

[Haskell-cafe] testing if values can be applied to polymorphic functions

2012-10-22 Thread alex
[a] -> [a] -> [a])) (typeOf ([1,2,3] :: (Typeable a, Num a) => [a])) I guess funResultTy doesn't work when polymorphism is involved.. Perhaps I could just use the ghc-as-a-library stuff to parse and typecheck code - would that be the way forward? Any p

Re: [Haskell-cafe] Long pauses / idle time in a Haskell TCP server

2012-10-09 Thread Alex Iliev
n is cheap so one doesn't necessarily need to use thread pools like in some other languages. Now I can play with those variations without distraction from long pauses. And I'll grab your latest from github and try that out. Thanks! Alex On Mon, Oct 8, 2012 at 6:41 PM, Jamie Turner wr

[Haskell-cafe] Long pauses / idle time in a Haskell TCP server

2012-10-08 Thread Alex Iliev
idea what might be causing the idle time? The long pauses are consistently 38-40ms, maybe that points to some aspect of CPU scheduling, leaving the program idle for some time? I can put the code on github if it would help. Many thanks! Alex [1] http://hackage.haskell.org/package/scalable-server-

Re: [Haskell-cafe] List indexer

2012-10-01 Thread Alex Stangl
nd benchmark (using Criterion) and put it all on github, along with the latest version of the list index code. http://github.com/astangl/list-index Regards, Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-09-14 Thread Alex Stangl
ion. > Now, besides the code and the description of the code, I know we're not > English majors, but what do you think of the overall tone, pacing, etc.? Is > it entertaining? Is it humorous? Is it boring? Is it offensive? Is it too > brief or too labo

Re: [Haskell-cafe] Tutorial: Haskell for the Evil Genius

2012-09-14 Thread Alex Stangl
> superweapons. What do you guys think of my tutorial, Haskell for the Evil > Genius <http://www.yellosoft.us/evilgenius/>? Hopefully you'll get more feedback here, although my recent post here soliciting feedback netted me nothing. FWIW, my feedback is below. Alex Under Dec

[Haskell-cafe] List indexer

2012-09-08 Thread Alex Stangl
index too much.) I'll publish it on hackage (or at least github) if people think it's useful. It sped up the program I initally wrote it for enormously. Thanks, Alex {- | Module : ListIndex Description : list indexer, providing fast random list lookup Copyright : (c) Alex Stangl 2

[Haskell-cafe] Using "syntactic" to implement the lambda calculus

2012-07-03 Thread Alex Rozenshteyn
Var Ident | Lam Ident Expr | App Expr Expr | Plus Expr Expr > eval e = > case e of > ... > Plus e1 e2 -> > case (eval e1, eval e2) of > (VInt x1, VInt x2) -> VInt $ x1 + x2 > _ -> error "illegal addition" -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] [Announce] AusHac 2012 - The Aussie Haskell Hackathon

2012-06-14 Thread Alex Mason
along, the more awesome it will be. We hope to see you there! Cheers, Alex Mason and Ivan Miljenovic ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Using Data Types a la Carte

2012-04-19 Thread Alex Rozenshteyn
lement the DTalaC style: syntactic and compdata. Alternatively, I can write the common code myself. Does anyone have recommendations for which one to use, and any materials for learning to use them? --           Alex R ___ Haskell-Cafe mailing list Ha

Re: [Haskell-cafe] Loading a texture in OpenGL

2012-02-07 Thread Alex Mason
isn't called unless all threads have released it, I think). Cheers, Alex On 8 February 2012 15:02, Clark Gaebel wrote: > Sounds hairy. Is there any way to get reference counting garbage > collection in Haskell? > > On Tue, Feb 7, 2012 at 9:26 AM, L Corbijn wrote: > >>

Re: [Haskell-cafe] Message

2011-11-07 Thread Alex Kropivny
Short answer: no, and what it gives is quite different. Long answer: Erlang gives me two things that are hard to replicate: 1. firm-realtime performance, even at high load: the distributed GC is very nice 2. a very well defined model for handling, and recovering from failure Hot code reload is

[Haskell-cafe] [ANNOUNCE] CoreErlang-0.0.2 + maintainer change

2011-11-07 Thread Alex Kropivny
teric, but it's nice for static source analysis - and when someone decides they want to compile a new language to the ERTS, the package is ready... Regards, Alex Kropivny ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.o

[Haskell-cafe] New CoreErlang maintainer + patch

2011-11-05 Thread Alex Kropivny
ince first uploaded. I would like to take over maintenance of the package, and upload the fix ASAP. Regards, Alex Kropivny [1] https://github.com/amtal/CoreErlang/tree/0.0.2 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailma

Re: [Haskell-cafe] Message

2011-10-21 Thread Alex Kropivny
> That's interesting, have you ever worked on interfacing Erlang with > Haskell? > > BTW, Twitter switched to Scala, so obviously their initial choice of Ruby > end up invalidated. > > > 2011/10/21 Alex Kropivny > >> Let's look at this from a high, project mana

Re: [Haskell-cafe] Message

2011-10-21 Thread Alex Kropivny
Let's look at this from a high, project management level. Twitter ran on... Ruby initially? Facebook ran on PHP. Immediately this tells me that programming language choice wasn't a factor in their success. One succeeded in building a large throughput system with a "slow" language, the other succee

[Haskell-cafe] Is there a DFA library?

2011-10-07 Thread Alex Rozenshteyn
I couldn't find one on hackage that isn't better described as a RegEx library. I'm looking for things like minimization, completion, etc. kinda like http://www.cis.upenn.edu/~cis639/docs/xfst.html However, I may have just missed it. --

Re: [Haskell-cafe] Regular Expression Parsing via derivatives

2011-08-01 Thread Alex Clemmer
Latter wrote: > On Mon, Aug 1, 2011 at 10:51 AM, Alex Clemmer > wrote: > > Hi Haskell people, > > > > I've been snooping through various mailing lists and the current Haskell > > implementation of regular expressions and I was wondering if there has > b

[Haskell-cafe] Regular Expression Parsing via derivatives

2011-08-01 Thread Alex Clemmer
d this inquiry. I considered dropping it in the main haskell list, but wasn't sure how people would respond. -- Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] yi + cabal-dev

2011-06-22 Thread Alex Rozenshteyn
not and then behaves differently. While amusing, I'd rather not. On Wed, Jun 22, 2011 at 3:42 AM, Rogan Creswick wrote: > On Tue, Jun 21, 2011 at 11:59 PM, Alex Rozenshteyn > wrote: > > From looking at Yi's code, there seems to be a hard-coded list of > arguments > > t

Re: [Haskell-cafe] yi + cabal-dev

2011-06-22 Thread Alex Rozenshteyn
>From looking at Yi's code, there seems to be a hard-coded list of arguments to pass to ghc. A hack would be to recompile Yi with the arguments to use a different package database... On Wed, Jun 22, 2011 at 2:32 AM, Rogan Creswick wrote: > On Tue, Jun 21, 2011 at 6:55 PM, Alex

Re: [Haskell-cafe] Category theory as a design tool

2011-06-21 Thread Alex Rozenshteyn
Funny, I didn't hear anyone say "Candlejack". What abou ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] yi + cabal-dev

2011-06-21 Thread Alex Rozenshteyn
anyone gotten a similar setup to work, or does anyone have any suggestions? -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] AusHac2011 - The Australasian Haskell Hackathon - July 8-10

2011-06-20 Thread Alex Mason
than last year. -- Alex Mason -- Attention all Australasian Haskellers! After last year’s fantastic turnout for the first Australian Haskell Hackathon - AusHac 2010 - we’ve decided to organise another. As it’s r

Re: [Haskell-cafe] Erlang's module discussion

2011-05-28 Thread Alex Rozenshteyn
t, May 28, 2011 at 6:17 AM, Brandon Allbery wrote: > On Sat, May 28, 2011 at 05:12, Alex Kropivny > wrote: > > Regardless of how crazy it sounds, an idea from Joe Armstrong is worth > > seriously thinking over. > > Possibly, but this is just another manifestation of

Re: [Haskell-cafe] Erlang's module discussion

2011-05-28 Thread Alex Kropivny
Regardless of how crazy it sounds, an idea from Joe Armstrong is worth seriously thinking over. This has bugged me before: think about how we design and write code as project size, or programmer skill grows. You start with composing statements inside a single function; later, you start to compose

Re: [Haskell-cafe] Parallel compilation and execution?

2011-05-27 Thread Alex Mason
takes an approach closer to what Control.Parallel does, but it's not a graceful, and IMO not as easy to use. Hope that helps. I've been having a lot of fun over the last few weeks playing with OpenMP for a university assignment, and I've got to say I greatly prefer th

Re: [Haskell-cafe] ANNOUNCE: iterIO-0.1 - iteratee-based IO with pipe operators

2011-05-06 Thread Alex Mason
settled on the Producer/Transformer/Consumer trilogy. I'd love to hear thoughts on the issue, especially from David. Cheers, Alex Mason On 06/05/2011, at 20:17, Maciej Marcin Piechotka wrote: > On Thu, 2011-05-05 at 21:15 -0700, David Mazieres wrote: >> Hi, everyone. I'm pl

[Haskell-cafe] Announcing AusHac 2011 - The second annual Australian Haskell Hackathon (July 8-10)

2011-04-17 Thread Alex Mason
enjoy yourself, registration comes with a money-back guarantee! Hope to see you there, -- Alex Mason and Ivan Miljenovic, AusHac organisers P.S: If you have received this email directly, it is because you have shown previous interest in AusHac by signing up via the previous signup. If you

Re: [Haskell-cafe] Parsing Haskell in Parsec

2011-03-21 Thread Alex Rozenshteyn
Thank you, everyone, for the suggestions. On Mon, Mar 21, 2011 at 12:28 PM, Johannes Waldmann < waldm...@imn.htwk-leipzig.de> wrote: > Alex Rozenshteyn gmail.com> writes: > > > as part of a larger project of porting > > http://www.cs.jhu.edu/~scott/pl/book/dist/ from

[Haskell-cafe] Parsing Haskell in Parsec

2011-03-19 Thread Alex Rozenshteyn
a reference. -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] X11 package bug: XClientMessageEvent long data

2011-03-15 Thread Dylan Alex Simon
Does anyone know the current maintenance status of the X11 package? I emailed Spencer Janssen a number of months ago and never heard back. So, I'll put this here in case any one else runs into it or can get it to the right place. This is a proposed bug fix for a problem I ran into using xmonad c

[Haskell-cafe] Abstracting a Genetic Algorithm

2011-02-15 Thread Alex Good
I've copied this from http://stackoverflow.com/questions/5010267/haskell-abstracting-a-genetic-algorithm as someone suggested that it might spark an interesting discussion I'm new to the world of Haskell programming and I'm cutting my teeth on a simple genetic algorithm for finding good solution

Re: [Haskell-cafe] parsing exercise

2011-01-22 Thread Alex Rozenshteyn
parsing library. Do you have an idea what I could use? Or how > to solve it from scratch in a few lines? > > Sebastian > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > > -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] problem with haskell-mode mailing list?

2011-01-08 Thread Alex Ott
livered to mailing list with error that google mail server couldn't connect to haskell.org's mail server. If somebody could help me with this problem, please contact me - I'll provide more details on this issue -- With best wishes, Alex Ott, MBA http://alexott.blogspot.com/

Re: [Haskell-cafe] What's the best seed for random API ?

2011-01-05 Thread Alex Rozenshteyn
ing list archive at Nabble.com. > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How about Haskell Golf just like vimgolf.com

2011-01-03 Thread Alex Kropivny
o git/gist or whatever) but would be amazing for learning "good" Haskell if it got off the ground! On Mon, Jan 3, 2011 at 8:19 AM, Ertugrul Soeylemez wrote: > Alex Kropivny wrote: > > > Could something like code abstraction be done instead? > > > > Haskel

Re: [Haskell-cafe] How about Haskell Golf just like vimgolf.com

2011-01-02 Thread Alex Kropivny
Could something like code abstraction be done instead? Haskell lends itself to solving problems in really generic, high level ways that reveal a LOT about the underlying problem structure. Through some combination of descriptive data types, generic type classes, and generic helper functions... You

[Haskell-cafe] Weird error during derive-2.3.0.2 build

2010-12-12 Thread Alex
es another compilation error. I am using ubuntu maverick 32-bit, with ghc-6.12.1 and cabal-install 0.8.2. The ghc was installed from the package repository. Cabal was installed using: cabal-install cabal Alex. ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Question about TagSoup

2010-12-03 Thread Alex Rozenshteyn
ub9fad.xml" > writeFile "test" $ renderTagsOptions renderOptions{optMinimize = const > True} > $ modif soup > > modif [] = [] > modif (x@(TagOpen "Content" []):TagText _m : xs) = x : TagText "modified" > : modif xs > modif (x:

[Haskell-cafe] date parsing and formatting

2010-11-15 Thread Alex Baranosky
hat's the proper way to do this? Also, I'd like to print out my Day in this format: 12/4/1999 what's the Haskell way to? Thanks for the help. Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Layered maps

2010-10-09 Thread Alex Rozenshteyn
so that's what I > think you should look into. > > - Jake > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Alex R

Re: [Haskell-cafe] Layered maps

2010-10-08 Thread Alex Rozenshteyn
code provided I used that. I'm planning to port the code *after* I have the assignment finished. On Fri, Oct 8, 2010 at 11:18 PM, wren ng thornton wrote: > On 10/8/10 5:46 PM, Thomas DuBuisson wrote: > >> Alex, >> >> The containers library can do this already - the

[Haskell-cafe] Layered maps

2010-10-08 Thread Alex Rozenshteyn
Does there exist a library which allows me to have maps whose elements are maps whose elements ... with a convenient syntax. Alternatively, does there exist a library like Data.Tree where forests are sets rather than lists? -- Alex R

[Haskell-cafe] ANNOUNCE: atomo 0.1, a simple, adventurous programming language

2010-09-30 Thread Alex Suraci
r my VPS's resources), but the docs are always available: Documentation: http://atomo-lang.org/docs/ (work-in-progress) Repository: http://darcsden.com/alex/atomo Examples: http://darcsden.com/alex/atomo/browse/examples I recommend the generators example if you want some mind-bending, or h

[Haskell-cafe] Memoization/call-by-need

2010-09-15 Thread Alex Rozenshteyn
as "lazy evaluation with memoization" I understand that > fib50 = slowFib 50 will take a while to run the first time but be instant each subsequent call; does this count as memoization? (I'm trying to understand "Purely Functional Data Structures", hence

Re: [Haskell-cafe] Google AI Challenge: Planet Wars - Accepting Haskell Submissions

2010-09-10 Thread Alex Kropivny
The previous AI challenge (tron) was a lot of fun. I suspect the experience they gained from running the last one, will make this an exciting contest. Haskell fared well in the last contest, despite it favouring fast C/C++ implementations due to a focus on classic minimax/pruning. The current chal

Re: [Haskell-cafe] random-fu confusion

2010-09-07 Thread Alex Rozenshteyn
fer to use the > "sample" function for this purpose, as well as the "sampleFrom" function in > place of runRVar/runRVarT. GHCi does not display the "sample" functions' > types properly - they are defined for RVarT as well as for all Distribution > ins

[Haskell-cafe] random-fu confusion

2010-09-02 Thread Alex Rozenshteyn
rying to fill in the final place of runRVar > :t runRVar (replicateM 20 flipCoin) runRVar (replicateM 20 flipCoin) :: (RandomSource m s) => s -> m [Bool] -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

[Haskell-cafe] Partial Signatures with Implicit Parameters

2010-08-30 Thread Alex Rozenshteyn
erent about using this approach with implicit parameters, or am I probably just doing something wrong? P.S. I decided to ask this here instead of in the xmonad mailing list because I feel like this is a question about haskell that was only slightly inspired by my use of xmonad. -- A

Re: [Haskell-cafe] Deprecated gtk2hs functions

2010-08-16 Thread Alex Rozenshteyn
is just a > point in case, but it applies generally. > > any comments? > > andrew > > > On Fri, 2010-07-16 at 17:44 -0400, Alex Rozenshteyn wrote: > > More like buttonActivated [1]. > > > > > > Has it been decided that button-specific events are going t

Re: [Haskell-cafe] Couple of questions about *let* within *do*

2010-08-10 Thread Alex Stangl
3 x4 = e4 in do s5 s6 HTH, Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Suggestions For An Intro To Monads Talk.

2010-08-06 Thread Alex Stangl
n they are executed in that order. I think other > languages don't make this easy. I first encountered monads in OCaml. And the concept exists in other languages, although maybe not always explicitly by that name. Good luck, should be a good talk, Alex _

Re: [Haskell-cafe] Can we come out of a monad?

2010-07-30 Thread Alex Rozenshteyn
fe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Heavy lift-ing

2010-07-23 Thread Alex Stangl
? Would you try to include b / a, too, even though some values of a may be zero? Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Heavy lift-ing

2010-07-23 Thread Alex Stangl
d 0 or 1 to 0 or 2, your possible answers are [0,2,1,3]. Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Deprecated gtk2hs functions

2010-07-16 Thread Alex Rozenshteyn
[1] > http://www.haskell.org/gtk2hs/docs/current/Graphics-UI-Gtk-Abstract-Widget.html#v%3AexposeEvent > > > On Fri, Jul 16, 2010 at 11:36 AM, Alex Rozenshteyn > wrote: > > I recently started playing around with gtk2hs. > > I noticed that `onClicked`, `afterClicked`, etc.

[Haskell-cafe] Deprecated gtk2hs functions

2010-07-16 Thread Alex Rozenshteyn
ality. Am I simply being blind? -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: Comments on Haskell 2010 Report

2010-07-14 Thread Alex Stangl
n't rendered > >correctly. > > I can't see that - perhaps it has been fixed already. Check the failure codes for hSeek. It was still there in the HTML version, at least, when I checked this morning. Thanks, Alex ___ Haskell-Cafe mai

Re: [Haskell-cafe] Comments on Haskell 2010 Report

2010-07-09 Thread Alex Stangl
, but that it is a reasonable policy, since, as you point out, it's a matter of ongoing debate. What I don't understand is why for y /= 0, 0**y would be undefined. Maybe the discontinuity at zero is undesirable. Alex ___ Haskell-Cafe mai

[Haskell-cafe] Comments on Haskell 2010 Report

2010-07-08 Thread Alex Stangl
act terminates abnormally, and then a secondary exception occurs during the closing of the handle. Oftentimes systems lose the primary exception and propagate out the secondary exception, whereas in reality we may be more interested in the original primary exception. 25. In section 41.4.4, bullet before isPermissionError isn't rendered correctly. Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] AusHac2010, the first Australian Haskell Hackathon is growing near, and we need you!

2010-06-24 Thread Alex Mason
using the previous form, you we still need you to fill out this new 2.0 version of the sign up form If you have questions, please feel free to email me or Ivan (our addresses are the reply-to addresses for this email... I hope), or talk to us (Axman6, ivanm) on #haskell. Cheers, Alex Mason

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Alex Rozenshteyn
ng the building phase. The exception was: ExitFailure 1 On Mon, Apr 5, 2010 at 11:25 AM, Daniel Fischer wrote: > Am Montag 05 April 2010 17:19:35 schrieb Alex Rozenshteyn: > > Anyone? > > "base" isn't listed among the build-depends of the executable, so the > obvious t

Re: [Haskell-cafe] Haskell on Debian

2010-04-05 Thread Alex Rozenshteyn
Anyone? On Wed, Mar 31, 2010 at 9:18 PM, Alex Rozenshteyn wrote: > $ ghc-pkg check > > outputs nothing > > $ ghc-pkg list unix > /var/lib/ghc-6.12.1/package.conf.d >unix-2.4.0.0 > /home/alex/.ghc/x86_64-linux-6.12.1/package.conf.d > > "unix" appears to

Re: [Haskell-cafe] Re: True Random Numbers

2010-04-03 Thread Alex Rozenshteyn
Looking over the random-fu package, I think it might have what I'm looking for (and a lot that I'm not). On Sat, Apr 3, 2010 at 6:27 PM, Gökhan San wrote: > Alex Rozenshteyn writes: > > > The Rand monad you linked seems to be a step in the right direction > >

Re: [Haskell-cafe] Re: True Random Numbers

2010-04-03 Thread Alex Rozenshteyn
e >>= sex) > http://blog.ertes.de/ > > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] True Random Numbers

2010-04-03 Thread Alex Rozenshteyn
Does haskell have a way of using /dev/random to generate random *things*? Currently I'm just reading the data into a byte string, converting it into bits, and keeping track of it in the state monad. -- Alex R ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Haskell on Debian

2010-03-31 Thread Alex Rozenshteyn
$ ghc-pkg check outputs nothing $ ghc-pkg list unix /var/lib/ghc-6.12.1/package.conf.d unix-2.4.0.0 /home/alex/.ghc/x86_64-linux-6.12.1/package.conf.d "unix" appears to be in the build-depends of the "Library", but not in the build-depends of "Executable lambda

[Haskell-cafe] Haskell on Debian

2010-03-31 Thread Alex Rozenshteyn
oes anyone have any advice for fixing this issue other than just adding "unix" to the lambdabot.cabal file? -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] existentially quantified data types - restrictions

2010-03-25 Thread Alex Rozenshteyn
> (==) = (==) `on` show > > > > > > Regards, > > > > -- > > Ozgur Akgun > > > > ___ > > Haskell-Cafe mailing list > > Haskell-Cafe@haskell.org > > http://www.haskell.org/mailman/listinfo/haskell-cafe > > > > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Alex R ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANNOUNCE: AusHac2010

2010-03-17 Thread Alex Mason
ome along, play with some cool code, help out the community, and just meet an awesome bunch of like minded people, then we want to hear from you! Cheers, Alex Mason___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Proposal: Australian Hackathon

2010-03-16 Thread Alex Mason
s library (for >> people who can't or won't install Gtk2Hs to get Chart working; Alex >> Mason is interested in this) >> * Various graph-related project (graphviz, generic graph class, etc.; >> this assumes someone else apart from me cares about this stuff) >&g

Re: [Haskell-cafe] Proposal: Australian Hackathon

2010-03-16 Thread Alex Mason
> >> * A plotting library using Ben's newly released Gloss library (for >> people who can't or won't install Gtk2Hs to get Chart working; Alex >> Mason is interested in this) >> * Various graph-related project (graphviz, generic graph class, etc.; >&g

Re: [Haskell-cafe] Prelude.undefined

2010-03-02 Thread Alex MDC
en an undefined exception is raised. The options are :set -fbreak-on-exception or -fbreak-on-error. More info in the documentation at http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-debugger.html#ghci-debugger-exceptions Hope that helps, Alex MDC _

Re: [Haskell-cafe] Simple but interesting (for me) problem

2009-10-21 Thread Alex Queiroz
s uses unsafePerformIO, which as you know, is not kosher... > This is different because counter is global. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Creating an alias for a function

2009-10-06 Thread Alex Queiroz
ead car) > > car ::  [a] -> a > car x = head x > > The reason for doing this is to more closely mirror legacy code. > Just do: car = head -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell

Re: [Haskell-cafe] Haskell for Physicists

2009-09-30 Thread Alex Queiroz
r about the use of Haskell to substitute C or Fortran > in a lot of tasks, and how it can be used in some problems instead of > Matlab, Mathematica, etc.) > "Haskell for physicists" ? -- -alex http://www.ventonegro.org/ ___ H

Re: [Haskell-cafe] why does the binary library require so much memory?

2009-08-16 Thread Alex Mason
Hi Don, I was wondering if perhaps this might be a slightly better instance for Binary [a], that might solve a) the problem of having to traverse the entire list first, and b) the list length limitation of using length and Ints. My version is hopefully a little more lazy (taking maxBound

[Haskell-cafe] What would be required to make a LLVM backend for GHC

2009-08-07 Thread Alex Mason
if we can let them know what we need, hopefully they can help make life easier for us. Thanks, Alex Mason ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANN: TernaryTrees-0.1.1.1 - An efficient ternary tree implementation of Sets and Maps

2009-06-29 Thread Alex Mason
et, called tdict. Please give it a try and let me know what you think, it's my first (hopefully) useful hackage package, and I'd love some feedback. There is also a darcs repo [http://random.axman6.com/darcs/TernaryTrees/], and any patches are welcome.

[Haskell-cafe] problem with inf-haskell + ghci?

2009-06-01 Thread Alex Ott
m macports -- With best wishes, Alex Ott, MBA http://alexott.blogspot.com/http://xtalk.msk.su/~ott/ http://alexott-ru.blogspot.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell programmers in São Carlo s - SP - Brazil?

2009-05-20 Thread Alex Queiroz
Hallo, On 5/20/09, Diego Souza wrote: > Not exactly São Carlos: São Paulo - SP. > Me too, Sao Paulo - SP. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/li

Re: [Haskell-cafe] displaying conetents of a list

2009-05-10 Thread Alex MDC
return () listFilms (film:films) = do putStrLn (show film) listFilms films Hope that helps, Alex ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] compilation to C, not via-C

2009-04-24 Thread Alex Queiroz
Hallo, On 4/24/09, Donn Cave wrote: > Quoth Alex Queiroz , > > > > Actually some Scheme compilers have a "c-declare" form that lets > > you create C functions, which can be called from C, Haskell, Java, > > Ruby etc. > > > That would

Re: Re[2]: [Haskell-cafe] compilation to C, not via-C

2009-04-24 Thread Alex Queiroz
m just refuting your assertion that one cannot compile "whatever" code to C and "incorporate it into your function". Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] compilation to C, not via-C

2009-04-24 Thread Alex Queiroz
e too different computing model > Actually some Scheme compilers have a "c-declare" form that lets you create C functions, which can be called from C, Haskell, Java, Ruby etc. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Ca

Re: [Haskell-cafe] Converting IO [XmlTree] to [XmlTree]

2009-04-14 Thread Alex Queiroz
to interact with the "outside", i. e., reading, displaying etc. Cheers, -- -alex http://www.ventonegro.org/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] SoC idea: interactive profiling

2009-03-22 Thread Alex Ott
allow to view collected information in kcachegrind, and get interactive zooming, etc. -- With best wishes, Alex Ott, MBA http://alexott.blogspot.com/http://xtalk.msk.su/~ott/ http://alexott-ru.blogspot.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Against cuteness

2009-03-13 Thread Alex Queiroz
>>And experience without abstraction, >>Are practiced by very few. > > Nice poem. Did you write it yourself, or can you document the source? > If I remember correctly, this is from the Daodejing. Cheers, -- -alex http://www.ventonegro.org/ _

Re: [Haskell-cafe] [ANN] Working with HLint from Emacs

2009-02-08 Thread Alex Ott
Hello On Wed, Jan 28, 2009 at 12:30 PM, Colin Paul Adams wrote: >>>>>> "Alex" == Alex Ott writes: > >Alex> Hello For Emacs users it could be interesting - I wrote >Alex> small module for more comfortable work with HLint from >Alex>

Re: [Haskell-cafe] Re: WYSIWYG literate programming

2009-01-28 Thread Alex Ott
k.su/~ott/common/emacs/rc/emacs-rc-pretty-lambda.el.html you can find slightly modified version of version of pretty lambda code from haskell wiki - i added several symbols, and fix regex to work properly with symbols like ===, etc. -- With best wishes, Alex Ott, MBA http://alexott.bl

  1   2   3   >