STM and fairness

2008-02-29 Thread Josef Svenningsson
Hi, I'd like to know a bit about the STM implementation in GHC, specifically about how it tries to achieve fairness. I've been reading Composable Memory Transactions but it does not contain that much details on this specific matter. What I want to know boils down to this: what order are processes

Re: STM and fairness

2008-02-29 Thread Josef Svenningsson
On Fri, Feb 29, 2008 at 4:27 PM, Roberto Zunino [EMAIL PROTECTED] wrote: Josef Svenningsson wrote: What I want to know boils down to this: what order are processes run which have been woken up from a call to retry? IIUC, the order of wake up is irrelevant, since *all* the threads

Re: STM and fairness

2008-03-05 Thread Josef Svenningsson
order they blocked sounds sensible to me. The lists of threads blocked on a TVar are doubly-linked (right?) so wouldn't need to be explicitly reversed. Tim -Original Message- From: Simon Peyton-Jones Sent: 29 February 2008 20:06 To: Josef Svenningsson; glasgow-haskell

Re: strictness of interpreted haskell implementations

2008-04-25 Thread Josef Svenningsson
On Fri, Apr 25, 2008 at 9:17 PM, Duncan Coutts [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 09:08 -0700, Don Stewart wrote: Geraint.Jones: Are there well-known differences in the implementations of Haskell in ghci and hugs? I've got some moderately intricate code (simulations

Re: ST monad and monad tranformers

2009-02-02 Thread Josef Svenningsson
On Mon, Feb 2, 2009 at 8:50 PM, Reid Barton rwbar...@math.harvard.edu wrote: On Mon, Feb 02, 2009 at 06:03:15PM +0100, Josef Svenningsson wrote: Hi Tyson, I also needed something like this a while ago so I knocked up a really simple module and put it on hackage: http://hackage.haskell.org

Re: ST monad and monad tranformers

2009-02-02 Thread Josef Svenningsson
Hi Tyson, I also needed something like this a while ago so I knocked up a really simple module and put it on hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/STMonadTrans If you have any suggestions for improvement they are most welcome. Patches even more so. Josef 2009/2/2

I accidentally the Prelude

2010-03-01 Thread Josef Svenningsson
Hi, It seems I've been able to mess up my ghc installation pretty badly. Here is what happens if I just try to invoke ghci from the prompt: $ ghci GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ...

Re: I accidentally the Prelude

2010-03-02 Thread Josef Svenningsson
more transparent. Josef On Mon, Mar 1, 2010 at 11:43 AM, Josef Svenningsson josef.svennings...@gmail.com wrote: Hi, It seems I've been able to mess up my ghc installation pretty badly. Here is what happens if I just try to invoke ghci from the prompt: $ ghci GHCi, version 6.10.4: http

Re: I accidentally the Prelude

2010-03-02 Thread Josef Svenningsson
On Tue, Mar 2, 2010 at 12:21 PM, Simon Marlow marlo...@gmail.com wrote: On 02/03/2010 08:59, Josef Svenningsson wrote: On Mon, Mar 1, 2010 at 11:54 PM, Jeremy Shawjer...@n-heptane.com  wrote: is there, by chance, a file named Prelude.hs in the working directory? (the directory you

Re: Wadler space leak

2010-11-09 Thread Josef Svenningsson
Let me clarify a bit exactly how Gustavsson and Sands (I'll refer to them as GS) handled the issue of the Wadler space leak. It's true that they adopted an approach similar to Sparud in that they extended their core calculus with a new language construct which could solve the problem. This is

Re: Bools are not unboxed

2004-10-06 Thread Josef Svenningsson
Simon Marlow wrote: On 06 October 2004 00:53, John Meacham wrote: This seems like it could be nicely generalized such that all enumeration types unbox to the unboxed integer of their offset. so data Perhaps = Yes | Maybe | No can unbox to an Int# with 0# == Yes 1# == Maybe and 2# == No.

External Core

2004-11-15 Thread Josef Svenningsson
you, /Josef Svenningsson, PhD student at Chalmers, External core tsar ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

RE: Anybody that has an idea about Italian Verb Engine program?

2004-11-19 Thread Josef Svenningsson
Can you perhaps be more precise about what your problem is? You can compile to code by issuing ghc --make Analisi -o Analisi. /Josef -Original Message- From: [EMAIL PROTECTED] [mailto:glasgow-haskell- [EMAIL PROTECTED] On Behalf Of Suzan Bayhan Sent: den 19 november 2004

Re: GHC 6.4 release candidates available

2005-02-18 Thread Josef Svenningsson
Hi, Compiling 6.4.20050217 on Windows according to the book fails pretty early: snippet /cygdrive/c/ghc/ghc-6.2.2/bin//ghc -H16m -O -I. -Rghc-timing -I../../../librari es -fglasgow-exts -no-recomp-c Compat/RawSystem.hs -o Compat/RawSystem.o -o hi Compat/RawSystem.hi

Complexity bug in garbage collector?

2005-04-14 Thread Josef Svenningsson
Hi all, I've had some fun chasing around a couple of space leaks lately. One of the graphs that I produced looked like this: www.cs.chalmers.se/~josefs/coresa.ps Notice the shape of the graph. It shows a perfect squareroot function. But my program should be allocating at a constant rate. From

Re: Complexity bug in garbage collector?

2005-04-16 Thread Josef Svenningsson
On 4/14/05, Simon Marlow [EMAIL PROTECTED] wrote: On 14 April 2005 15:35, Josef Svenningsson wrote: I've had some fun chasing around a couple of space leaks lately. One of the graphs that I produced looked like this: www.cs.chalmers.se/~josefs/coresa.ps Notice the shape of the graph

Re: TArray

2006-09-20 Thread Josef Svenningsson
Hi, I get the exact same thing with ghc-6.5.20060914. Weird. Josef On 9/20/06, Bulat Ziganshin [EMAIL PROTECTED] wrote: Hello glasgow-haskell-users, can someone try to compile this one-line module: import Control.Concurrent.STM.TArray with a recent 6.5 builds, preferably mingw32 ones? it

Re: More speed please!

2007-05-01 Thread Josef Svenningsson
I'm replying to a rather old thread here, about unboxing in functions. Duncan had a continuation monad which passed around some data type that would be nice to unbox. You discussed strictness annotations in function types as a potential solution. I have a different tack on the problem which seems

Re: More speed please!

2007-05-11 Thread Josef Svenningsson
On 5/11/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote: | I'm replying to a rather old thread here, about unboxing in functions. Duncan | had a continuation monad which passed around some data type that would be nice | to unbox. You discussed strictness annotations in function types as a

Re: Prevent optimization from tempering with unsafePerformIO

2007-10-17 Thread Josef Svenningsson
On 10/17/07, Bernd Brassel [EMAIL PROTECTED] wrote: why do you want to do this unsafely, instead of just using 'length'? unsafePerformIO is a very slow function, remember) The big picture is that we generate programs like this example in order to compile the functional logic language

About rules

2001-04-05 Thread Josef Svenningsson
Hi all! I've been playing around with the rules facility a bit. There is a boring shortcoming when working with infix operators. It seems that the rule parser doesn't like them at all. The following example gives syntax error: {-# RULES "plus/mult" forall p . p + p = 2 * p #-} whereas the

Re: GHC version 5.00.2 is available

2001-06-20 Thread Josef Svenningsson
On Mon, 18 Jun 2001, Julian Seward (Intl Vendor) wrote: The (Interactive) Glasgow Haskell Compiler -- version 5.00.2 == [..] What's new in 5.00.2 == [..] How about Andrew Tolmach's -fext-core flag? Did

RE: GHC core representation

2001-06-25 Thread Josef Svenningsson
On Mon, 25 Jun 2001, Simon Peyton-Jones wrote: | * I would like to make GHC generate only the core file and | the hi file, nothing more. However, I haven't found a way of | making GHC stop after outputting the hi file. Being able to | do this is useful in some other cases as well; I

Re: POLL: GC options

2001-08-06 Thread Josef Svenningsson
On Mon, 6 Aug 2001, Simon Marlow wrote: Issue 1: should the maximum heap size be unbounded by default? Currently the maximum heap size is bounded at 64M. Arguments for: this stops programs with a space leak eating all your swap space. Arguments against: it's annoying to have to raise the

RE: ghc-pkg

2001-10-09 Thread Josef Svenningsson
Hi! I would like to add a request to Thomas list of lacking features of ghc --make: When caching information between the compilation of different modules, use weak pointers. With large projects, ghc runs out of heapspace because of too much caching. It's always fine to restart the build

RE: ghc-pkg

2001-10-15 Thread Josef Svenningsson
On Mon, 15 Oct 2001, Simon Marlow wrote: With large projects, ghc runs out of heapspace because of too much caching. I think it's more likely that GHC has some space leaks which cause it to hang on to too much memory between compilations. In theory, it only caches the contents of

Does GHC simplify RULES?

2002-02-21 Thread Josef Svenningsson
Hi! A question about the RULES pragma. Suppose I have the following RULES pragma: {-# RULES foo forall a . foo a = (\x - bar x) a #-} Ok, it's stupid but I have examples where this is motivated, trust me. Now, it seems that GHC simplifies the rule because what I get when compiling it with

RE: Does GHC simplify RULES?

2002-02-25 Thread Josef Svenningsson
On Mon, 25 Feb 2002, Simon Peyton-Jones wrote: | Suppose I have the following RULES pragma: | | {-# RULES | foo forall a . foo a = (\x - bar x) a | #-} | | Ok, it's stupid but I have examples where this is motivated, trust me. | | Now, it seems that GHC simplifies the rule because

Re: Floats and Doubles

2002-11-13 Thread Josef Svenningsson
On Wed, 13 Nov 2002, Jan Kort wrote: Juan Ignacio Garcia Garcia wrote: *P2 (fromRational ((toRational 4) - ( toRational 5.2 ))) -1.2002 I can't explain this one, how would fromRational know that it has to create a Double ? It's the defaulting mechanism that kicks in. The

RE: effect of order of function arguments

2003-02-19 Thread Josef Svenningsson
[moved over to glasgow-haskell-users] On Wed, 19 Feb 2003, Simon Peyton-Jones wrote: | GHC used to have an optimisation for static argument like this. It would | turn both of the above programs into a similar form using a local | recursive function: | | interp y xs = interpaux xs |

RE: GHC 6.0 Release: sparc-solaris2 binaries

2003-06-02 Thread Josef Svenningsson
On Fri, 30 May 2003, Simon Marlow wrote: A binary version of GHC6 is available for sparc-solaris2 machines at: http://www.isi.edu/~hdaume/ghc-6.0-sparc-solaris2.tar.bz2 17.5 mb I'd appreciate it if the maintainers could copy it and make it available locally off of the GHC web

Re: state of ghc6 on sparc

2003-06-18 Thread Josef Svenningsson
On Wed, 18 Jun 2003, Isaac Jones wrote: Hello :) Can anyone enlighten me as to the state of the ghc6 sparc distribution? The file on Hal's web page mentioned some time back is not the same file as on the GHC web page (I note that the filenames are different also). Are any of them known

unknown symbol `__stginit_List_'

2003-10-29 Thread Josef Svenningsson
Hi! Here's a letter from someone who has next to no clue about what he is doing so have patience and don't assume any knowledge when answering... I'm trying to create a package for ghc. I've struggled quite a lot and gotten this far: (This is when invoking ghci -package yahu) Loading package

Local qualification in data types

2003-11-11 Thread Josef Svenningsson
Hi, I'm playing around with the type system trying to encode various stuff in it. I've gotten an error though which it would be useful to understand. Say I have a type class: class Foo a and then I want a datatype like this: data Bar a = Foo a = C1 | C2 ... | C3 This works fine syntactically

Re: Array optimisation...

2004-02-23 Thread Josef Svenningsson
On Mon, 23 Feb 2004, MR K P SCHUPKE wrote: Was just thinking about GHC's implementation of arrays, and their poor performance. I know little about GHC's internal workings, but I was thinking about how array performance could be improved. What if when writing an array you instead construct a

Misleading error message

2004-03-05 Thread Josef Svenningsson
Hi all, This mail is a little story about a little guy called Josef and a little adventure he had this week together with the compiler ghc. Although exciting, this adventure took him several hours and Josef would have been happier without it. So he appeals to the implementors to improve on the

Re: Haskell performance

2004-03-18 Thread Josef Svenningsson
On Thu, 18 Mar 2004, Carsten Schultz wrote: Hi Sébastien! On Thu, Mar 18, 2004 at 11:30:26AM +0100, Sébastien Pierre wrote: In fact, I would like to know how Haskell compares in performance to other languages because if I refer to the page I mentioned

Re: simultaneous ghc versions

2015-08-02 Thread Josef Svenningsson
On Fri, Jul 31, 2015 at 10:31 PM Erik de Castro Lopo mle...@mega-nerd.com wrote: I maintaing multiple versions of GHC on all the machines I use regularly for Haskell development. I have: * ghc-7.6.3 installed under /usr/lib/ghc-7.6/ * ghc-7.8.4 installed under /usr/lib/ghc-7.8/ * ghc-7.10.2