Re: [Haskell-cafe] GHC's dynamic linker and Windows

2008-01-07 Thread Austin Seipp
I recently tried the latest version of HS-PLUGINS, and it gave an error on Windows. After a bit of Googling it seemed Conal Elliot had the same problem. I reported this problem to the author. This is also (one of) the reason why I could not get YI running on Windows. Currently I believe

Re: [Haskell-cafe] GHC 6.8.2 as a library on Windows and GHCi

2008-01-09 Thread Austin Seipp
Excerpts from Peter Verswyvelen's message of Wed Jan 09 10:07:46 -0600 2008: Is my code incorrect, or is this a (known?) bug in GHC 6.8.2 on Windows? I haven't tried the Linux version yet. The same thing happens on my Windows XP box as it does with yours. On both windows and my linux box, ghc

Re: [Haskell-cafe] More Language.C work for Google's Summer of Code

2010-03-30 Thread austin seipp
(sorry for the dupe aaron! forgot to add haskell-cafe to senders list!) Perhaps the best course of action would be to try and extend cpphs to do things like this? From the looks of the interface, it can already do some of these things e.g. do not strip comments from a file:

Re: [Haskell-cafe] Hot-Swap with Haskell

2010-07-16 Thread austin seipp
Sorry Andy! CC'ing to the rest of -cafe in case anybody notices (I need to stop haskelling so early in the morning...) On Fri, Jul 16, 2010 at 8:59 AM, austin seipp a...@0xff.ath.cx wrote: You also may like one project I wrote, an IRC bot that used hs-plugins to do hot code reloading (only

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread austin seipp
A reasonable guess (I think, anyway): the reason is because support for ODBC, Oracle, Postgres etc isn't compiled in by default. You have to specify it with a flag with cabal install to get support for those things. But the reason they show up in API docs I would guess is because Haddock doesn't

Re: [Haskell-cafe] ANNOUNCE: Takusen 0.8.6

2010-08-01 Thread austin seipp
Hi Jason, I've had my eye on the 'Takusen' approach for a while. In particular I think it's a wonderful idea to use the left-fold based interface. Takusen is also well supported and pretty stable, having been around for a while. Despite this, it seems to have a couple faults: * Few tutorials,

Re: [Haskell-cafe] ANNOUNCE: Harpy 0.4 - Runtime code generation for x86 machine code

2008-01-24 Thread Austin Seipp
- When using the high-level assembler in X86Assembler, the code buffer is automatically protected from overflow. This one update alone is worth the whole upgrade; while experimenting with Harpy in several of my own personal compiler-related projects, the necessity of ensureBufferSize was a

[Haskell-cafe] Upgrading ByteString causes (seemingly) impossible RTS linker errs

2008-01-27 Thread Austin Seipp
Recently I've been developing my IRC bot a little further, and in the midst of it I have come across a very problematic issue that revolves around GHC-dependencies vs. application-dependencies. The central issue is ByteString. Currently, the ghc package depends on bytestring-0.9.0.1. However, the

Re: [Haskell-cafe] ANN: Leksah 0.1 - Haskell IDE written in Haskell

2008-02-13 Thread Austin Seipp
gtk =0.9.12, glib =0.9.12, sourceview =0.9.12, These are all apart of gtk2hs: http://haskell.org/gtk2hs/ For my build on Linux I had to pass a --enable-sourceview option to ./configure so that the sourceview package was picked up and built, but I figure it's probably picked up

Re: [Haskell-cafe] HFuse: ls fails in HelloFS

2008-03-14 Thread Austin Seipp
Excerpts from Georg Neis's message of Fri Mar 14 06:38:02 -0500 2008: Hello, I've installed the HFuse package from hackage and am playing with the HelloFS example in the System/Posix/HFuse directory. As far as I know, the package uploaded onto hackage is merely a cabal-ised version of the

Re: [Haskell-cafe] Announce: bytestring 0.9.1.0

2008-04-20 Thread Austin Seipp
That's all good news; will this release of ByteString be used for GHC 6.8.3? I'm a little tired of linking everything against 0.9.0.1 just so I can use Yi (since GHC/the-GHC-API links against it). :) Indeed; this is the biggest issue I have with bytestring right now as it's interfered with my

Re: [Haskell-cafe] Trying to build a stand-alone executable GLUT app with ghc, Windows XP

2008-04-25 Thread Austin Seipp
Perhaps try: $ ghc --make -static -optl-static -lpath to libHSGLUT.a here x.hs The -optl-static passes the '-static' argument to ld so it will link statically; you may also need a copy of a compatable GLUT library in .a format on your windows machine which should be linked in with -l as well

[Haskell-cafe] Getting latest GHC-head/libraries takes forever

2008-07-15 Thread Austin Seipp
For the purpose of experimenting with NDP I went through the process of getting the GHC head from darcs.haskell.org. As specified in the developer wiki[1], using darcs get is basically not possible because there're so many patches. So I downloaded

Re: [Haskell-cafe] Quick Question for QuickCheck2

2010-08-30 Thread austin seipp
You can create a wrapper with a newtype and then define an instance for that. newtype Char2 = Char2 Char instance Arbitrary Char2 where arbitrary = ... You'll have to do some wrapping and unwrapping when calling your properties to get/set the underlying Char, but this is probably the easiest

Re: [Haskell-cafe] Proof in Haskell

2010-12-21 Thread austin seipp
Patrick, Dependent types are program types that depend on runtime values. That is, they are essentially a type of the form: f :: (a :: X) - T where 'a' is a *value* of type 'X', which is mentioned in the *type* 'T'. You do not see such things in Haskell, because Haskell separates values from

Re: [Haskell-cafe] Haskell for Gingerbread

2010-12-28 Thread austin seipp
There was work ongoing for an ARM port of GHC. See here: http://tommd.wordpress.com/2010/01/19/ghc-on-arm/ Also see: http://alpheccar.org/en/posts/show/94 Alpheccar's build uses the work of Stephen Blackheath to cross compile, which originated in the GHC-iPhone project, based on ghc 6.10.2 I

Re: [Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread Austin Seipp
Excerpts from GüŸnther Schmidt's message of Thu May 07 14:12:04 -0500 2009: Hi, has anybody recently install the GLFW package on Mac OS X? It won't install on my machine. Günther I ran into this problem - with GHC 6.10.2 or above if you try to install GLFW with cabal install you get a

Re: [Haskell-cafe] Just 3 = (1+)?

2009-05-09 Thread Austin Seipp
Excerpts from michael rice's message of Sat May 09 14:31:20 -0500 2009: Why doesn't this work? Michael data Maybe a = Nothing | Just a instance Monad Maybe where     return = Just     fail   = Nothing     Nothing  = f = Nothing     (Just x) = f = f

Re: [Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-21 Thread Austin Seipp
I can replicate this err with 6.8.3 on my macbook (os 10.5.4.) It also appears to fail with a copy of the GHC HEAD as well: $ uname -a Darwin existential.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 $ ghc --version The Glorious

Re: [Haskell-cafe] Haskell code contributions

2008-07-21 Thread Austin Seipp
From the looks of the User Accounts page on hackage, Ross Patterson seems to be responsible, you can contact him here: [EMAIL PROTECTED] Austin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHC Error: FATAL:Symbol _XJv_srt already defined.

2008-07-21 Thread Austin Seipp
Status update: after checking out the latest HEAD and building it, the above error does not occur: $ ~/ghc-head/bin/ghc --version The Glorious Glasgow Haskell Compilation System, version 6.9.20080720 $ ~/ghc-head/bin/ghc --make DerivingError.hs no location info: Warning:

[Haskell-cafe] Building NDP with latest GHC

2008-07-21 Thread Austin Seipp
Hi, After my last issue with GHC's HEAD, I tried checking it out again and getting the patches for the libraries and lo and behold, it worked. So now I'm up to date with the latest libraries and the compiler, but it appears that building NDP itself is proving to be troublesome. (This is on GHC

Re: [Haskell-cafe] Trouble with non-exhaustive patterns

2008-07-21 Thread Austin Seipp
Hi Fernando, final [] = [] - I consider that the end of an empty list is the empty list final [a] = a final (_:t) = final t Suddenly, the function stoped working with a rather cryptic (for a newbie at least) error message: *Temp final [4,5] interactive:1:9: No instance for

[Haskell-cafe] ANN: RandomDotOrg-0.1

2008-07-28 Thread Austin Seipp
Hi, I've just uploaded a package to hackage which is an interface to the random.org random number generator. For those who don't know, random.org provides random data through the use of atmospheric noise rather than a PRNG that would typically be invoked if you were to use the System.Random

Re: [Haskell-cafe] carry state around ....

2008-07-28 Thread Austin Seipp
Excerpts from Galchin, Vasili's message of Mon Jul 28 21:14:56 -0500 2008: ok guys .. what is this phantom type concept? Is it a type theory thing or just Haskell type concept? Vasili Phantom types are more of an idiom than anything else; they are types with no real concrete representation,

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Austin Seipp
Excerpts from Yann Golanski's message of Wed Jul 30 02:34:05 -0500 2008: I cannot seem to be able to install yi via cabal install. The error I get is as follows. I suspect alex is not installed in the correct place. ... Hi, cabal-install will put installed binaries in $HOME/.cabal/bin by

Re: [Haskell-cafe] Cabal + yi + alex problem.

2008-07-30 Thread Austin Seipp
Excerpts from John Dorsey's message of Wed Jul 30 13:58:26 -0500 2008: Is something amiss with cabal-install? Shouldn't it have automatically installed alex? Or does it only do that with libraries, by design? AFAICT, dependencies are only downloaded and installed if they are listed in a

Re: [Haskell-cafe] Re: poll: how can we help you contribute to darcs?

2008-08-03 Thread Austin Seipp
Excerpts from Andrew Coppin's message of Sun Aug 03 04:35:32 -0500 2008: Correct me if I'm wrong, but... I was under the impression that Darcs is a revision control system. It controls revisions. Well Darcs already does that. So... what's to develop? It's not like it's slow or buggy. I

Re: [Haskell-cafe] Haskell garbage collector notes?

2008-08-06 Thread Austin Seipp
Excerpts from Galchin, Vasili's message of Wed Aug 06 04:09:58 -0500 2008: Is http://hackage.haskell.org/trac/ghc/wiki/GarbageCollectorNotes a reliable source of info on the ghc garbage collector? The page seems to be a little light for the most part, and it does not seem to take into

[Haskell-cafe] Houston-area FPers?

2008-08-17 Thread Austin Seipp
Hi, In less than a week I'll be moving to Houston TX in order to start school at university (University of Houston.) I'm wondering if there are any functional programmers (particularly haskellers) in that part of the state? If so, a group meeting and perhaps eventually a user-group would be

Re: [Haskell-cafe] a recent Haskell contribution?

2008-08-20 Thread Austin Seipp
Hi, Perhaps you are talking about Communicating Haskell Processes (CHP)? http://hackage.haskell.org/cgi-bin/hackage-scripts/package/chp Austin ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Consequences of implementing a library in Haskell for C consumption?

2008-09-04 Thread Austin Seipp
Excerpts from Justin Bailey's message of Thu Sep 04 17:00:58 -0500 2008: Looking at the package, I think would be pretty painful though. It seems I'd have to build the AST by hand, The AST Language.C defines for C is actually fairly regular once you wrap your head around it - I got it to

Re: [Haskell-cafe] Mac OS X dylib woes

2008-09-17 Thread Austin Seipp
I'm not getting this issue, but to fix it, given whatever you shell you use with your terminal (Terminal.app, iTerm, etc) program, just stick this into the rc file for it: export DYLD_LIBRARY_PATH=/opt/local/lib:$DYLD_LIBRARY_PATH For example, in this case it would exist in my ~/.zshrc - it

Re: [Haskell-cafe] Packages

2008-09-21 Thread Austin Seipp
Excerpts from Andrew Coppin's message of Sun Sep 21 02:44:10 -0500 2008: 1. How is putting something into a Cabal package different from just handing somebody the source code and telling them to run ghc --make? Cabal can handle things for you like when your package depends on external data

Re: [Haskell-cafe] Drawing an existing image into a cairo surface?

2008-09-21 Thread Austin Seipp
Excerpts from Rafal Kolanski's message of Sun Sep 21 07:28:37 -0500 2008: The best I can find is withImageSurfaceFromPNG, but I can't make it work. Why not? Seems to me all you need to do is: withImageSurfaceFromPNG blah.png $ \surface - do ... Lots of code is written this way (create a

Re: [Haskell-cafe] Packages

2008-09-23 Thread Austin Seipp
Excerpts from Cetin Sert's message of Tue Sep 23 05:55:21 -0500 2008: Let's say I go and compile a library from sources and install it through Cabal. How can I update the binary version of the library Cabal installed after recompiling the library using newer/modified sources? I'm not quite

Re: [Haskell-cafe] Packages

2008-09-23 Thread Austin Seipp
Excerpts from Dougal Stanton's message of Tue Sep 23 06:09:58 -0500 2008: That should happen automatically with cabal-install if the version number in the .cabal file has changed. There doesn't seem to be a good way of forcing cabal-install to recreate a build (eg, if you want to

Re: [Haskell-cafe] There is something wrong in derive-0.1.2 package.

2008-10-14 Thread Austin Seipp
Excerpts from Magicloud Magiclouds's message of Mon Oct 13 23:58:58 -0500 2008: Hi, I wanted to install it with cabal. Well $ cabal install derive Resolving dependencies... cabal: Couldn't read cabal file ./derive/0.1.2/derive.cabal As I traced a little, it seemed that line:

Re: [Haskell-cafe] any idea why cabal install cabal-install cant update itself in windows?

2008-10-22 Thread Austin Seipp
Windows will not let you modify/delete binaries if they're running as a process, and it won't let you delete .DLL files that're in use by applications either (mapped to shared memory, that is.) So cabal install cannot overwrite the cabal.exe binary after it builds it, because it's already running.

Re: [Haskell-cafe] Re: Syntax question: class (Monad m) = MonadReader r m | m - r where

2008-11-02 Thread Austin Seipp
This message is literate haskell. {-# LANGUAGE FunctionalDependencies, MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies, EmptyDataDecls, FlexibleContexts #-} Just to add on for people watching, a fundep pretty much just says that if: class Foo a b | a - b where bar :: a - b baz :: b

Re: [Haskell-cafe] Automatic parallelism in Haskell, similar to make -j4?

2008-11-03 Thread Austin Seipp
Excerpts from t.r.willingham's message of Sun Nov 02 17:28:08 -0600 2008: What would it take to implement a -j equivalent for, say, GHC? Or if this is not possible, what is wrong with my reasoning? Thanks, TW Hi, The main issue has to do with the decisions the compiler needs to make in

Re: [Haskell-cafe] Re: Automatic parallelism in Haskell, similar to make -j4?

2008-11-05 Thread Austin Seipp
Excerpts from Chad Scherrer's message of Tue Nov 04 21:34:01 -0600 2008: Does anyone have any thought what it would take to get this going? Chad Currently, franchise supports building in parallel with a -j flag, but the code could definitely be optimized (in my experience, running with

Re: [Haskell-cafe] Haskell Weekly News: Issue 92 - November 8, 2008

2008-11-10 Thread Austin Seipp
Anyway, I don't see it anywhere in the release notes, but I get the vibe that type families are supposed to be fully working now. Is that correct? If so, why no mention anywhere? Type families have been completely reimplemented and should be stable now, but there are some bugs - notably

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-14 Thread Austin Seipp
Excerpts from Andrew Coppin's message of Fri Nov 14 14:13:01 -0600 2008: Yeah. I figure if I knew enough about this stuff, I could poke code numbers directly into RAM representing the opcodes of the machine instructions. Then I only need to figure out how to call it from Haskell. It all

Re: [Haskell-cafe] How to use Unicode strings?

2008-11-22 Thread Austin Seipp
Excerpts from Dmitri O.Kondratiev's message of Sat Nov 22 05:40:41 -0600 2008: Please advise how to write Unicode string, so this example would work: main = do putStrLn Les signes orthographiques inclus les accents (aigus, grâve, circonflexe), le tréma, l'apostrophe, la cédille, le trait

Re: [Haskell-cafe] IRC question

2008-11-26 Thread Austin Seipp
Does anyone have an IRC client hiding somewhere that is console friendly (I IRC from a screen session) which is also extensible in Haskell? http://www.haskell.org/hircules/ Last update was over 5 years ago - you could try to still build it. But it uses gtk2hs, not ncurses. Personally, I've

Re: [Haskell-cafe] Compilers

2008-11-29 Thread Austin Seipp
Hi Daniel, 1. cabal install lhc 20 minutes later I have an lhc executable installed (and the graphviz package), great, can't be any simpler. Awesome! Glad it worked for you. A tidbit: unfortunately, due to a mistake in the first upload of lhc, you will need to provide an exact version if

Re: [Haskell-cafe] Install Yi editor with GHC 6.10.1

2008-12-02 Thread Austin Seipp
Excerpts from lazycat.manatee's message of Tue Dec 02 23:18:50 -0600 2008: Hi all, I have install GHC 6.10.1 and Gtk2hs (darcs version) in Debian. So i want to ask, have anyone install Yi (darcs version) with GHC 6.10.1 successfully? Yes. cabal install is basically the easiest way to do it:

Re: [Haskell-cafe] databases in Haskell type-safety

2009-01-03 Thread Austin Seipp
Excerpts from Gour's message of Sat Jan 03 03:48:44 -0600 2009: Hi! I'd like to use sqlite3 as application storage in my haskell project... Browsing the available database options in Haskell it seems that: a) HSQL is dead (hackage reports build-failure with 6.8 6.10) b) haskelldb is

Re: [Haskell-cafe] Type Family Relations

2009-01-03 Thread Austin Seipp
Excerpts from Thomas M. DuBuisson's message of Sat Jan 03 09:22:47 -0600 2009: Mandatory contrived example: type family AddressOf h type family HeaderOf a -- I'm looking for something to the effect of: type axiom HeaderOf (AddressOf x) ~ x -- Valid: type instance AddressOf

[Haskell-cafe] Infinity v0.1

2007-08-11 Thread Austin Seipp
Hello! Over the past couple of days I've been working on an IRC bot in the essence of lambdabot; that is, it should be extendable through plugins and plugins should be easy to write, modify and contribute. I also wanted the bot to be small in terms of LOC (as of 0.1, about ~360 including the two

Re: [Haskell-cafe] Taking Exception to Exceptions

2009-01-07 Thread Austin Seipp
Excerpts from Immanuel Litzroth's message of Wed Jan 07 16:53:30 -0600 2009: I'm trying to use the new (for me at least) extensible exceptions and I am little amazed that I cannot get catch, try or mapException to work without telling them which exceptions I want to catch. What is the

Re: [Haskell-cafe] Haskell not ready for Foo [was: Re: Hypothetical Haskell job in New York]

2009-01-08 Thread Austin Seipp
Excerpts from John A. De Goes's message of Thu Jan 08 12:14:18 -0600 2009: But really, what's the point? FFI code is fragile, often uncompilable and unsupported, and doesn't observe the idioms of Haskell nor take advantage of its powerful language features. This is a completely unfair

Re: [Haskell-cafe] Re: databases in Haskell type-safety

2009-01-29 Thread Austin Seipp
Excerpts from GŸuenther Schmidt's message of Thu Jan 29 07:42:51 -0600 2009: Hi Austin, could you post the patch please? So far there is no updated version of takusen that builds with ghc 6.10 Günther Hi Gunther, I recently got an email back from Alstair Bayley who is one of the

Re: [Haskell-cafe] ANN: HDBC v2.0 now available

2009-01-30 Thread Austin Seipp
Excerpts from John Goerzen's message of Fri Jan 30 18:31:00 -0600 2009: Why would cabal-install select a different base than running Setup manually? I can't hard-code base = 4 into .cabal because that would break for GHC 6.8 users. I have CPP code that selects what to compile based on

Re: [Haskell-cafe] Verifying Haskell Programs

2009-02-03 Thread Austin Seipp
Excerpts from Paulo J. Matos's message of Tue Feb 03 02:31:00 -0600 2009: Any references to publications related to this? While it's not Haskell, this code may be of interest to you: http://pauillac.inria.fr/~xleroy/bibrefs/Leroy-compcert-06.html This paper is about the development of a

Re: [Haskell-cafe] Verifying Haskell Programs

2009-02-03 Thread Austin Seipp
Excerpts from Austin Seipp's message of Tue Feb 03 03:40:47 -0600 2009: ... After noticing that I didn't give a link to the code in the last message, I searched and found this more up to date page I think: http://compcert.inria.fr/doc/index.html Austin

Re: [Haskell-cafe] help optimizing memory usage for a program

2009-03-02 Thread Austin Seipp
Excerpts from Bulat Ziganshin's message of Mon Mar 02 10:14:35 -0600 2009: let's calculate. if at GC moment your program has allocated 100 mb of memory and only 50 mb was not a garbage, then memory usage will be 150 mb ? A copying collector allocates a piece of memory (say 10mb) which is used

Re: [Haskell-cafe] I want to write a compiler

2009-03-07 Thread Austin Seipp
Hi, (Please note this is coming from my own experience working with the LHC haskell compiler, as well as a compiler I'm currently working on in SML. I'm not an authority, but as another greenhorn compiler hacker I thought I might give some advice.) Excerpts from Loup Vaillant's message of Sat

Re: [Haskell-cafe] bytestring vs. uvector

2009-03-07 Thread Austin Seipp
Excerpts from Alexander Dunlap's message of Sun Mar 08 00:23:01 -0600 2009: For a while now, we have had Data.ByteString[.Lazy][.Char8] for our fast strings. Now we also have Data.Text, which does the same for Unicode. These seem to be the standard for dealing with lists of bytes and

Re: [Haskell-cafe] bytestring vs. uvector

2009-03-07 Thread Austin Seipp
Excerpts from Bryan O'Sullivan's message of Sun Mar 08 00:45:03 -0600 2009: uvector is, if my memory serves me correctly, a fork of the vector library. It uses modern stream fusion, but is under active development and is a little scary. I'm a little unclear on the exact difference between

Re: [Haskell-cafe] I want to write a compiler

2009-03-09 Thread Austin Seipp
Excerpts from John Meacham's message of Mon Mar 09 07:28:25 -0500 2009: On Sat, Mar 07, 2009 at 07:45:06PM -0600, Austin Seipp wrote: (On that note, I am currently of the opinion that most of LHC's major deficiencies, aside from a few parser bugs or some needed optimizations, comes from

Re: [Haskell-cafe] How to get program command line arguments in Unicode-aware way (Unix/Linux)?

2009-03-11 Thread Austin Seipp
Excerpts from Dimitry Golubovsky's message of Wed Mar 11 21:42:14 -0500 2009: Hi, I am trying to process command line arguments that may contain Unicode (cyrillic in this example) characters. The standard GHC's getArgs seems to pass whatever was obtained from the underlying C library

Re: [Haskell-cafe] Emscripten: compiling LLVM to JavaScript

2011-04-11 Thread austin seipp
I do wonder how Emscripten handles the GHC calling convention that is part of LLVM. In particular, global register declarations in the RTS scare me from a side line view, and LLVM's calling convention support is what makes the combination work at all in a registered environment. It's currently not

Re: [Haskell-cafe] Questioning seq

2011-04-14 Thread austin seipp
As usual, I'm foolish and forget to hit 'reply to all'. Original message unedited below, so it can be sent to -cafe. To answer question #3, pseq and seq are semantically equivalent (indeed, if you look at the source for Control.Parallel, if you are not using GHC, pseq is defined as 'pseq = seq'.)

Re: [Haskell-cafe] Python is lazier than Haskell

2011-04-28 Thread austin seipp
Dan, I believe there was some work on this functionality for GHC some time ago (agda-like goals for GHC, where ? in agda merely becomes 'undefined' in haskell.) See: https://github.com/sebastiaanvisser/ghc-goals This work was done a few years ago during a hackathon (the 09 Utrecht hackathon.)

Re: [Haskell-cafe] = definition for list monad in ghc

2011-05-16 Thread austin seipp
Looking at the Core for an utterly trivial example (test x = concatMap k x where k i = [i..i*2]), the foldr definition seems to cause a little extra optimization rules to fire, but the result seems pretty big. The definition using concatMap results in core like this: main_go2 = \ (ds_aqV ::

Re: [Haskell-cafe] = definition for list monad in ghc

2011-05-16 Thread austin seipp
? On Mon, May 16, 2011 at 2:46 PM, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Monday 16 May 2011 20:49:35, austin seipp wrote: Looking at the Core for an utterly trivial example (test x = concatMap k x where k i = [i..i*2]), the foldr definition seems to cause a little extra

Re: [Haskell-cafe] The Lisp Curse

2011-05-19 Thread austin seipp
I too am not all that concerned about the library proliferation, and I think such work can definitely help find the best design for certain abstractions. There are no less than 3 iteratee libraries - 4 including liboleg's original IterateeM formulation - and a number of FRP implementations as

Re: [Haskell-cafe] Enabling GADTs breaks Rank2Types code compilation - Why?

2011-05-31 Thread austin seipp
Hi David, It seems to be a result of the new typechecker and more specifically the new behavior for GADTs in GHC 7. The short story is thus: when you turn on GADTs, it also now turns on another extension implicitly (MonoLocalBinds) which restricts let generalization. More specifically, it causes

Re: [Haskell-cafe] Enabling GADTs breaks Rank2Types code compilation - Why?

2011-06-01 Thread austin seipp
On Tue, May 31, 2011 at 11:13 PM, dm-list-haskell-c...@scs.stanford.edu wrote: It definitely felt like I was running up against something like the monomorphism restriction, but my bindings were function and not pattern bindings, so I couldn't understand what was going on.  I had even gone and

Re: [Haskell-cafe] Building Haskell Platform natively for 64bit Windows

2011-06-09 Thread austin seipp
On Thu, Jun 9, 2011 at 1:53 PM, Andrew Coppin andrewcop...@btinternet.com wrote: I'm still left wondering if using 32-bit instructions to manipulate 64-bit values is actually that much slower. Back in the old days of non-pipelined, uniscalar CPUs, it would certainly have been the case. Today's

Re: [Haskell-cafe] Building Haskell Platform natively for 64bit Windows

2011-06-10 Thread austin seipp
It's worth mentioning 'foreign prim' is still a bit different from inline code - while you can certainly write Cmm and have GHC link it into your program, it is not really inline. GHC has two different kinds of primitive operations: inline primops, and out of line primops. foreign primops are

Re: [Haskell-cafe] Software patents covered in GHC?

2011-06-20 Thread austin seipp
*sigh* CC'ing to the rest of haskell-cafe for completeness. I need to change 'reply all' to a default in my email I guess. On Mon, Jun 20, 2011 at 12:19 PM, austin seipp a...@hacks.yi.org wrote: Hello, Realistically, there probably is. Considering everything down to linked lists are patented

Re: [Haskell-cafe] A language that runs on the JVM or .NET has the advantage of Oracle Microsoft making those layers more parallelizable.

2011-07-30 Thread austin seipp
No, there aren't. At least none that I know of. Don Stewart did work years ago on a JVM backend for GHC for his Bachelors thesis. You may be able to find it online (I don't know the name, sorry.) This was never integrated mainline however. These questions have been asked many many times, but the

Re: [Haskell-cafe] [Haskell] ANNOUNCE: GHC version 7.2.1

2011-08-11 Thread austin seipp
VECTORISE is for Data Parallel Haskell. It's only relevant to GHC's internal vectorisation pass - I don't actually think there is any use case for it in user code at the moment, it's only used by the DPH libraries/special prelude, etc. On Thu, Aug 11, 2011 at 12:16 PM, Henning Thielemann

Re: [Haskell-cafe] fyi GHC 7.2.1 release on the benchmarks game

2011-08-12 Thread austin seipp
Hello Isaac, On Fri, Aug 12, 2011 at 10:18 AM, Isaac Gouy igo...@yahoo.com wrote: 1) Some of the GHC programs contributed to the benchmarks game have problems with recent GHC releases - meteor-contest #5 - Ambiguous occurrence `permutations'

Re: [Haskell-cafe] Turn GC off

2011-09-29 Thread austin seipp
On Thu, Sep 29, 2011 at 3:14 PM, David Barbour dmbarb...@gmail.com wrote: minor collections of this nursery do not result in whole system pauses. Yes, they do. GHC has a parallel garbage collector (so collection pauses the mutator threads, and collects garbage -in parallel- on multiple CPUs)

Re: [Haskell-cafe] SMP parallelism increasing GC time dramatically

2011-10-07 Thread austin seipp
It's GHC, and partly the OS scheduler in some sense. Oversaturating, i.e. using an -N option your number of logical cores (including hyperthreads) will slow down your program typically. This isn't uncommon, and is well known - GHC's lightweight threads have an M:N threading model, but for good

Re: [Haskell-cafe] could not create compact unwind

2011-12-01 Thread austin seipp
The 'could not create compact unwind' message is a known (and still outstanding) linking issue on OS X. It should be harmless - it refers to the fact that OS X 10.6 uses compact unwind info for exceptions instead of DWARF unwind information, when possible. The exact cause isn't (yet) known.

Re: [Haskell-cafe] GHC 7.4 and binutils-gold

2011-12-27 Thread austin seipp
I encountered this problem approximately a month ago building HEAD and reported it to Ian: http://www.haskell.org/pipermail/cvs-ghc/2011-November/068562.html His fix worked - but I was doing a build from source. The problem now is that this is a -build-time- option, not a runtime option, but

Re: [Haskell-cafe] black Wikipedia

2012-01-18 Thread Austin Seipp
Aside from being a horrible oversimplification of the matter (because it's *never* that simple - Wikipedia is not in this movement for commercial interest or the side of SV/HW, but because it opposes the censoring of the internet; neither are people like Dan Kaminsky, who are also opposing from

Re: [Haskell-cafe] strict version of Haskell - does it exist?

2012-01-29 Thread Austin Seipp
The strict-ghc-plugin (under my maintenance) is just a continuation of one of the original demos Max had for plugin support in the compiler. The idea is fairly simple: 'let' and 'case' are the forms for creating lazy/strict bindings in Core. It just systematically replaces all occurrences of 'let'

Re: [Haskell-cafe] Switching GHC Version

2012-02-06 Thread Austin Seipp
Personally I prefer just using 'virthualenv' these days, which installs copies of GHC locally that you can then activate with your shell, similar to 'virtualenv' in python. It's how I test packages on multiple copies of GHC. http://hackage.haskell.org/package/virthualenv The nicest part is that

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

2012-02-06 Thread Austin Seipp
It's a precise GC of course (conservative collection would be madness considering how much memory Haskell programs chew through.) That still doesn't ensure your finalizer will run during the next GC even if all the references are gone by then. Sent from my iPhone^H^H^H^H^HPortable Turing machine

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

2012-02-06 Thread Austin Seipp
for, texture objects or file descriptors are a different matter. Predictability matters in those cases. Sent from my iPhone^H^H^H^H^HPortable Turing machine On Feb 6, 2012, at 10:16 PM, Austin Seipp mad@gmail.com wrote: It's a precise GC of course (conservative collection would be madness considering

Re: [Haskell-cafe] The State of Testing?

2012-02-07 Thread Austin Seipp
If you're writing a library, you need to compile the library with `-fhpc`, i.e. put it in the library stanza, not the testsuite stanza, and then you can compile the test program using your library - the resulting 'tix' file will contain the library coverage reports. You can link a HPC-built

Re: [Haskell-cafe] Transactional memory going mainstream with Intel Haswell

2012-02-09 Thread Austin Seipp
Duncan Coutts talked a bit about this on Reddit here: http://www.reddit.com/r/programming/comments/pfnkx/intel_details_hardware_transactional_memory/c3p4oq7 On Thu, Feb 9, 2012 at 12:43 PM, Ben midfi...@gmail.com wrote:

Re: [Haskell-cafe] Haskell development in Mac OS X after Gatekeeper

2012-02-19 Thread Austin Seipp
On Sun, Feb 19, 2012 at 6:01 PM, Tom Murphy amin...@gmail.com wrote: 0) Distributing non-Cocoa-built apps, even if you're approved by Apple Do you just mean binaries that you expect users run under /usr/local/bin or something, not app bundles? If that's the case, I cannot say if the same

Re: [Haskell-cafe] Haskell development in Mac OS X after Gatekeeper

2012-02-19 Thread Austin Seipp
On Sun, Feb 19, 2012 at 8:19 PM, Tom Murphy amin...@gmail.com wrote:     Actually, what I was more concerned about was the ability to distribute a full Mac application, with a GUI, made with a method other than calling Haskell from Objective-C.     It seems that *none* of these applications

Re: [Haskell-cafe] Haskell development in Mac OS X after Gatekeeper

2012-02-19 Thread Austin Seipp
On Sun, Feb 19, 2012 at 8:39 PM, Tom Murphy amin...@gmail.com wrote: On the other hand, it's impossible for a software company to maintain a sense of professionalism, when a user has to know a weird secret handshake to disable what they may perceive as equivalent to antivirus software. I'll

Re: [Haskell-cafe] Haskell development in Mac OS X after Gatekeeper

2012-02-22 Thread Austin Seipp
Manuel, Thanks for the references and follow up. I had seen Kennith's posts about the new command line tools for XCode, but didn't seen John Gruber's take! Much appreciated. On Tue, Feb 21, 2012 at 2:52 AM, Manuel M T Chakravarty c...@cse.unsw.edu.au wrote: Austin Seipp: On Sun, Feb 19, 2012

Re: [Haskell-cafe] Prettier pretty-printing of data types?

2012-03-13 Thread Austin Seipp
It's not exactly hierarchical, but Groom most certainly should help with getting much prettier output: http://hackage.haskell.org/package/groom On Tue, Mar 13, 2012 at 5:33 PM, Johan Tibell johan.tib...@gmail.com wrote: Hi all, The derived Show instance is useful, but I sometimes wish for

Re: [Haskell-cafe] Can Haskell outperform C++?

2012-05-06 Thread Austin Seipp
In this case it doesn't matter; while it isn't technically tail recursive, GCC is very capable of transforming it into a direct loop likely because it knows about the associative/commutative properties of + so it's able to re-arrange the body as it sees fit since combined, both calls are in 'tail

Re: [Haskell-cafe] bytestring, array and Safe Haskell

2012-05-08 Thread Austin Seipp
The reasoning is outlined in the user manual here: http://www.haskell.org/ghc/docs/7.4.1/html/users_guide/safe-haskell.html#safe-inference Basically, these modules will compile without error if they were to be compiled with -XSafe enabled. Thus, they are safe-inferred. The check does not

Re: [Haskell-cafe] how to check thunk

2012-07-02 Thread Austin Seipp
Hi, Just a word of note: a while back, I decided to take up maintainership of Vacuum and some associated stuff. In the process of doing this, I realized that the ClosureType code in vacuum may not accurately model reality depending on the GHC version. In particular, the definition of ClosureType

Re: [Haskell-cafe] how to check thunk

2012-07-02 Thread Austin Seipp
7.2 for ghc 7.2 aso. Best regards, Rico Moorman On Mon, Jul 2, 2012 at 12:04 PM, Austin Seipp mad@gmail.com wrote: Hi, Just a word of note: a while back, I decided to take up maintainership of Vacuum and some associated stuff. In the process of doing this, I realized

Re: [Haskell-cafe] how to check thunk

2012-07-02 Thread Austin Seipp
On Mon, Jul 2, 2012 at 6:56 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: If you've taken over maintainership, should we remove it from haskell-pkg-janitors? I haven't removed it from haskell-pkg-janitors because I haven't made a release and the current package points there as the

Re: [Haskell-cafe] how to check thunk

2012-07-02 Thread Austin Seipp
On Mon, Jul 2, 2012 at 7:33 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: I'm OK with BSD for this.  And I understand that copy-pasting boilerplate could mess things up ;-) I think I'll change it then, thanks :) There is a 2999.13.* series of graphviz out, I haven't actually

Re: [Haskell-cafe] Over general types are too easy to make.

2012-08-31 Thread Austin Seipp
What you are essentially asking for is a refinement on the type of 'BadFoo' in the function type, such that the argument is provably always of a particular constructor. The easiest way to encode this kind of property safely with Haskell 2010 as John suggested is to use phantom types and use the

  1   2   >