Re: [Haskell-cafe] [C Binding] Turning the mutable to immutable?

2010-07-07 Thread Sebastian Sylvan
operations you want to perform in terms of the inputs, and then do them all "in bulk" to produce the output image. You don't want people to go in and arbitrarily set pixels to anything they want at any time they want. -- Sebastian Sylvan ___

Re: [Haskell-cafe] Bulk Synchronous Parallel

2010-04-19 Thread Sebastian Sylvan
ay. You don't need to worry about the dicing up and recombining, the compiler takes care of it for you. You just write things in terms of parallel arrays (which can be small, e.g. 2 element wide) and the compiler will fuse/flatten these together into big bulk par

Re: [Haskell-cafe] Garbage collecting pointers

2010-03-26 Thread Sebastian Sylvan
On Fri, Mar 26, 2010 at 10:52 PM, Mads Lindstrøm wrote: > Hi > > On Fri, 2010-03-26 at 21:33 +, Sebastian Sylvan wrote: > > > > > > > Reorganizing data on the fly sounds like it may be a pretty sensible > > idea now that cache misses are so bad (in compari

Re: [Haskell-cafe] Garbage collecting pointers

2010-03-26 Thread Sebastian Sylvan
ou could potentially store a heavily quantized lookup table (possibly at the expense of padding some members to align all members on a large common multiple from the base). The general idea seems interesting to me, but then I'm hardly an expert. I like the notion of using

Re: [Haskell-cafe] Garbage collecting pointers

2010-03-26 Thread Sebastian Sylvan
hink that's what he's talking about. He's saying the data that would normally be on the other side of the pointer would instead be stored "inline", if I understand him correctly. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Real-time garbage collection for Haskell

2010-03-01 Thread Sebastian Sylvan
hat are actually short-lived into the older generation (which should reduce pressure on that older generation, as well as speed up G0 collection). Ideally we'd have some way of telling the GC to try to avoid running during the actual frame it

Re: [Haskell-cafe] Language simplicity

2010-01-13 Thread Sebastian Sylvan
4.7.3) 162 pages (251 including builtin functions) > Scheme (R5RS): 17 pages (45 including standard procedures) > Oberon: 16 pages, including table of contents and Appendix (containing EBNF grammar). -- Sebastian Sylvan ___ Haskell-Cafe mai

Re: [Haskell-cafe] Installing Haskell on Windows 7

2009-12-27 Thread Sebastian Sylvan
rary fails to build because of your ghc version, you can install a specific version of that library instead. E.g. for haddock you see that the failing version was 2.4.2 but if you leave out the version number cabal will fetch the latest one for you, which isn't compatible wi

Re: [Haskell-cafe] Re: Why?

2009-12-10 Thread Sebastian Sylvan
s to write any code which depends on this unpredictable behaviour. In other words, the expressions that get evaluated lazily must not have side effects. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/ma

Re: [Haskell-cafe] Re: Why?

2009-12-10 Thread Sebastian Sylvan
bout what you mean, rather than intentionally obscure your points to avoid causing offence. Be specific. What language? How is it different than Haskell w.r.t. purity? -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

[Haskell-cafe] Re: killer app, again

2009-12-10 Thread Sebastian Sylvan
gt; potential Indeed. Something like Windows Azure could be a good fit too (as it more directly supports native code than GAE does). -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Why?

2009-12-10 Thread Sebastian Sylvan
with LINQ etc.), which also requires that the expressions to be pure. Currently mainstream languages rely on programmers being Very Careful, but again these kinds of assumptions aren't scalable. -- Sebastian Sylvan ___ Haskell-Cafe mailing list H

Re: [Haskell-cafe] Haskell job opportunity

2009-12-08 Thread Sebastian Sylvan
a job. Haskell is still exotic enough that it has a disproportionate amount of Giant Brains among its practitioners. Companies tend to want to hang on to these, even in a recession. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Is Haskell a Fanatic?

2009-12-04 Thread Sebastian Sylvan
ld try to explain what you mean using specific examples. I read the other thread and the post of yours didn't really seem to make much sense to me there either. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] You are in a twisty maze of concurrency libraries, all different ...

2009-12-04 Thread Sebastian Sylvan
sort by >> the index afterwards. If efficiency matters, you can perform other tweaks. >> But the principle is quite straightforward. Or you can refactor your code >> to take the IO dependency out of your random number generation, and run the >> sets of pure code in parallel using the parallel library. If all you are >> using IO for is random numbers, that's probably the nicest approach. >> >> Good, fast random numbers are unfortunately necessary - I had a nice > implementation using System.Random, but had to rewrite it because > performance was poor :( . Have you tried this, pure, library? http://hackage.haskell.org/package/mersenne-random-pure64 <http://hackage.haskell.org/package/mersenne-random-pure64> -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[2]: [Haskell-cafe] faster compiling for ghc

2009-11-12 Thread Sebastian Sylvan
://msdn.microsoft.com/en-us/library/4khtbfyf(VS.80).aspx -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to fulfill the "code-reuse" destiny of OOP?

2009-10-31 Thread Sebastian Sylvan
ue1.3" (where wrapping a class up in angle brackets makes it into an existentially qualified wrapper, which is instantiated in the class itself -- maybe we need explicit conversion from e.g. Int to though...) You don't need it very often, but I wonder if that's because there genuin

Re: [Haskell-cafe] error on "--++ bla bla bla"

2009-09-30 Thread Sebastian Sylvan
n the GHC compiler (I am using > Windows Haskell Platform 2009.2.0.2)? > Line comments start with "-- ", not just "--". -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language.

2009-09-30 Thread Sebastian Sylvan
utensils. Being "natural" or "intuitive" is a 100% irrelevant metric for any tool. What matters is if it's effective or not. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Strong duck typing / structural subtyping / type class aliases / ??? in Haskell

2009-09-25 Thread Sebastian Sylvan
ake no other assumptions. This is, in principle, no different from passing a speed Double to a function that expects a mass Double (e.g. it may produce garbage for negative values). In both cases a function that requires extra invariants can enforce it by using a newtype that's constructed and

Re: [Haskell-cafe] Cabal install on Windows 7

2009-09-10 Thread Sebastian Sylvan
On Thu, Sep 10, 2009 at 10:58 AM, Duncan Coutts wrote: > On Wed, 2009-09-09 at 20:19 +0100, Sebastian Sylvan wrote: > > > > > > On Wed, Sep 9, 2009 at 1:28 PM, Duncan Coutts > > wrote: > > > > > If the Windows users can come to a consensus on

Re: [Haskell-cafe] Cabal install on Windows 7

2009-09-09 Thread Sebastian Sylvan
the default global or user installation paths. > I think it's morally right to run as user by default. Yes, the windows culture has some legacy that may, on occasion, make it slightly harder to use "well behaved" programs, but it's fairly minor these days. -- Sebastian S

Re: [Haskell-cafe] (no subject)

2009-08-22 Thread Sebastian Sylvan
e > > programming contest problems can be written in a purely functional > > style, so you can limit monadic code to just a few helper functions. > > > > Yes I know but there are a lot of problems requiring O(1) array updates > so then you are stuck with IO again Not nec

Re: [Haskell-cafe] (no subject)

2009-08-21 Thread Sebastian Sylvan
use? > I usually just whip up a quick parser using Text.ParserCombinators.Parsec<http://www.haskell.org/ghc/docs/latest/html/libraries/parsec/Text-ParserCombinators-Parsec.html> -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] gbp sign showing as unknown character by GHC

2009-08-19 Thread Sebastian Sylvan
setup? > > Iain > > > > _______ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > > -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-16 Thread Sebastian Sylvan
On Sun, Aug 16, 2009 at 2:50 PM, John A. De Goes wrote: > On Aug 15, 2009, at 5:32 PM, Sebastian Sylvan wrote: > > On Sun, Aug 16, 2009 at 12:18 AM, John A. De Goes > wrote: > >> You must think I'm arguing for some kind of low-level analog of C, >> augmented wit

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-15 Thread Sebastian Sylvan
On Sun, Aug 16, 2009 at 12:18 AM, John A. De Goes wrote: > On Aug 15, 2009, at 4:59 PM, Sebastian Sylvan wrote: > > >> Your point about safety in C has no relation to safety in a functional >> language with a sophisticated effect system. >> >> I'm sorry,

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-15 Thread Sebastian Sylvan
which can cause very hard-to-catch bugs when you rely on ordering, is no good argument that we should add even more of it! -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-15 Thread Sebastian Sylvan
On Sat, Aug 15, 2009 at 11:54 PM, John A. De Goes wrote: > On Aug 14, 2009, at 9:34 PM, Sebastian Sylvan wrote: > > On Sat, Aug 15, 2009 at 3:55 AM, John A. De Goes wrote: >> >> If you don't like the file system, consider mutable memory. An effect >> system will

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-14 Thread Sebastian Sylvan
ou can always rely on ordering even if you don't even realise you need to, and there's plenty of practical experience indicating that the other option (explicit barriers to indicate when something isn't commutative) is sheer madness. -- Sebastian Sylvan

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-14 Thread Sebastian Sylvan
On Sat, Aug 15, 2009 at 3:55 AM, John A. De Goes wrote: > On Aug 14, 2009, at 8:21 PM, Sebastian Sylvan wrote: > > But you can't! I can easily envisage a scenario where there's a link >> between two pieces of data in two different files, where it's okay if the >

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-14 Thread Sebastian Sylvan
o the outside world, there may be implicit ordering that you need to respect, so I really think that needs to be serialized. Of course, there may be things in the IO monad that doesn't talk to the outside world that could be commutative. -- Sebastian Sylvan _

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-13 Thread Sebastian Sylvan
those operations, precisely because the compiler has no way of knowing anything about what kind of assumptions are in effect. -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: DDC compiler and effects; better than Haskell? (was Re: [Haskell-cafe] unsafeDestructiveAssign?)

2009-08-13 Thread Sebastian Sylvan
hanges the contents of another file? Surely to catch that you must mark *all* file system access as "interefering"? Even worse, another program could monitor the state of a file and conditionally disable thet network driver, now file access interferes wit

Re: [Haskell-cafe] Basic questions about concurrency in Haskell

2009-08-07 Thread Sebastian Sylvan
ata-structures, I'll of > course also need to control the alignment in such a case. Is there > such a thing as explicit dynamic memory allocation in Haskell ? > > Thanks, Thomas > > On Wed, Aug 5, 2009 at 3:16 PM, Sebastian > Sylvan wrote: > > GHC doesn't have per

Re: [Haskell-cafe] Basic questions about concurrency in Haskell

2009-08-05 Thread Sebastian Sylvan
rth trying that. In particular I believe it executes sparks in batches, to reduce the overhead (which hopefully fixes your issue). -- Sebastian Sylvan ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Writing a pnm file

2009-08-03 Thread Sebastian Sylvan
rbage collected fairly quickly so I don' think that's an issue, other than the effects on speed that the extra allocations would have. It's probably mainly speed because each pixel would have time complexity O(n+m) rather than O(1) for an n*m image... -- Seb

Re: [Haskell-cafe] Writing a pnm file

2009-08-03 Thread Sebastian Sylvan
On Mon, Aug 3, 2009 at 6:38 AM, CK Kashyap wrote: > Thanks Sebastian, > ppm module is indeed very useful. So, I guess my question then just boils > down to, how can I write a function to mimic the setPixel function -> > > Basically, a blank white image would look like this (as per ppm module) >

Re: [Haskell-cafe] Writing a pnm file

2009-08-02 Thread Sebastian Sylvan
the docs for ppm has an example for the ASCII version): writePPM fname img = withBinaryFile fname WriteMode (\h -> hPutStr h (ppm_p6 img) ) If you're looking for the learning experience, you could always read the source for the library (which is pretty tiny). -- Sebastian Sylvan +44(0)7857-300802 UIN:

Re: [Haskell-cafe] Performance of functional priority queues

2009-06-15 Thread Sebastian Sylvan
, Jun 15, 2009 at 10:40 AM, Sebastian > Sylvan wrote: > > > > > > On Mon, Jun 15, 2009 at 4:18 AM, Richard O'Keefe > wrote: > >> > >> There's a current thread in the Erlang mailing list about > >> priority queues. I'm aware of,

Re: [Haskell-cafe] Performance of functional priority queues

2009-06-15 Thread Sebastian Sylvan
wed binomial heaps is asymptotically optimal (O(1) for everything except deleteMin which is O(log n)), so if that's what he means by "efficient" then he's most definitely wrong. If he's talking about "small constant factors" then it's harder to understand what he&#

Re: [Haskell-cafe] Convert IO Int to Int

2009-06-10 Thread Sebastian Sylvan
On Wed, Jun 10, 2009 at 2:10 PM, Sebastian Sylvan < sebastian.syl...@gmail.com> wrote: > > > On Wed, Jun 10, 2009 at 2:08 PM, Sebastian Sylvan < > sebastian.syl...@gmail.com> wrote: > >> >> >> randomList :: (RandomGen g) -> Int -> g ->

Re: [Haskell-cafe] Convert IO Int to Int

2009-06-10 Thread Sebastian Sylvan
On Wed, Jun 10, 2009 at 2:08 PM, Sebastian Sylvan < sebastian.syl...@gmail.com> wrote: > > > randomList :: (RandomGen g) -> Int -> g -> [Integer] > Just spotted this typo, it should be: randomList :: (RandomGen g) = Int -> g -> [Integer] There may be ot

Re: [Haskell-cafe] Convert IO Int to Int

2009-06-10 Thread Sebastian Sylvan
e having side effects. So the "IO" type is "contagious", as soon as you use it in a function, then that function must also return IO, and so on for anything using *that* function and son. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Concurrent Haskell Actions with Timeout

2009-05-30 Thread Sebastian Sylvan
t;)', namely `return 0' > In the second argument of `timed2', namely > `(wait 5 >> return 0)' > Right, I forgot about the "Either" bit so you'd have to make sure the action's result and the default has the same type (or modify it to return an Either). -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Concurrent Haskell Actions with Timeout

2009-05-30 Thread Sebastian Sylvan
- no compiler atm). timed timeout act fallback = do res <- newEmptyMVar tid <- forkIO $ act >>= writeMVar res threadDelay timeout stillRunning <- isEmptyMVar res if stillRunning then killThread tid >> return fallback else takeMVa

Re: [Haskell-cafe] using haskell for a project

2009-05-02 Thread Sebastian Sylvan
mperative to pure functional ? Massive brain-rewiring. Keep at it, don't think in terms of modifying state, think of it as computing new values from old values. I find that the payoff of learning to think ,like this is massive, as it's usuall

Re: [Haskell-cafe] Parallel combinator, performance advice

2009-04-07 Thread Sebastian Sylvan
nd the version with parallelism is slow (> 10 sec). > This could be entirely due to space leaks etc when queueing many > tasks. > > I'm useful for any thoughts people might have! > > Thanks in advance, > > Neil > > _______ >

Re: [Haskell-cafe] Re: [Haskell-beginners] appropriateness of haskell for GUIs

2009-03-21 Thread Sebastian Sylvan
;t know how much of Qt is implemented in >> qtHaskell, or whether the latest version of Qt (4.4) is implemented. >> >> Thanks, >> Mike >> > > The main problem is, as far as I know, the complete lack of any usable GUI > designer. You have to type everything y

Re: [Haskell-cafe] Haskell Logo Voting has started!

2009-03-17 Thread Sebastian Sylvan
> up the numbers and the highest one wins. Voting yes on everything > doesn't help since then all your votes cancel out. You can do that with condorcet by just selecting the ones you approve of and making them tied for first... -- Sebastian Syl

Re: [Haskell-cafe] Re: Haskell Logo Voting has started!

2009-03-17 Thread Sebastian Sylvan
em all to my liking, but without instant visual > feedback on the voting ballot, this is a hopeless task. Indeed, I thought each entry would contain a thumbnail for the logo itself, but I guess it doesn't support HTML? This is pretty arduous... -- Sebastian Sylvan +44(0)7857-300802 UI

Re: [Haskell-cafe] Most elegant funciton for removing adjacent duplicates from a list using foldl and foldr

2009-03-15 Thread Sebastian Sylvan
t would be helpful to define a helper function with this signature: prepend :: (Eq a) => a -> [a] -> [a] Which for "prepend x xs" will put x at the front of the list, so long as the first element of the list xs is different from x. Once you have this func

Re: Re[4]: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
On Mon, Mar 9, 2009 at 10:38 PM, Sebastian Sylvan < sebastian.syl...@gmail.com> wrote: > > > On Mon, Mar 9, 2009 at 10:21 PM, Bulat Ziganshin < > bulat.zigans...@gmail.com> wrote: > >> Hello Sebastian, >> >> Tuesday, March 10, 2009, 1:08:38 AM, you wr

Re: Re[4]: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
erence among them I would've ranked them - if I didn't then I must not care either way. I suspect 99% will have a few favourites, and then they will have a few that they object to, and for the rest they just don't care which ones win. Expressing that with the proposed

Re: Re[2]: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
On Mon, Mar 9, 2009 at 5:26 PM, Luke Palmer wrote: > 2009/3/9 Sebastian Sylvan > >> >> >> On Mon, Mar 9, 2009 at 10:30 AM, Bulat Ziganshin < >> bulat.zigans...@gmail.com> wrote: >> >>> Hello Sebastian, >>> >>> Monday, March 9

Re: [Haskell-cafe] Re: Logo Preferences

2009-03-09 Thread Sebastian Sylvan
tie" in the interface) if they don't care which one of the group they want, or they can differentiate between them if they like. You could possibly name them "60 a", "60 b" etc. to indicate that they are similar, but there's no reason not to allow people to d

Re: Re[2]: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
On Mon, Mar 9, 2009 at 10:52 AM, Sebastian Sylvan < sebastian.syl...@gmail.com> wrote: > > > On Mon, Mar 9, 2009 at 10:30 AM, Bulat Ziganshin < > bulat.zigans...@gmail.com> wrote: > >> Hello Sebastian, >> >> Monday, March 9, 2009, 1:08:50 PM, yo

Re: Re[2]: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
the middle, and just fine tune your ranking at the top and bottom. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Logo Preferences

2009-03-09 Thread Sebastian Sylvan
few of those that you really dislike and put them even lower than the default rank). But the point is that you shouldn't need to rank every single logo, just the ones you care about and then you leave the rest at the default rank. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862

Re: [Haskell-cafe] Threading and Mullticore Computation

2009-03-03 Thread Sebastian Sylvan
ocator/GC that's worsened by having two threads? What happens with -O2? -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[7]: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-21 Thread Sebastian Sylvan
or maybe they just misunderstood you. Either way, please try to be civil. The only argument anyone made towards "cheating" on the gcc side is that ANY program which just prints a precomputed result is worthless for comparisoin (regardless of which side is doing it). -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[5]: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-21 Thread Sebastian Sylvan
n, no > more.) > > His point is valid. But Don's results *not* obtained by optimizing in this > fashion are valid comparisons, and the results obtained with this > optimization are useful for other reasons. > > Louis Wasserman > wasserman.lo...@gmail.com > &g

Re: Re[5]: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-21 Thread Sebastian Sylvan
otivating example for implementing a compiler optimization to do it automatically. Just outputting the precomputed result means nothing. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://ww

Re: Re[2]: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Sebastian Sylvan
I was intending to send this privately but clicked the wrong button. Apologies for adding even more noise to this discussion. On Sat, Feb 21, 2009 at 12:47 AM, Sebastian Sylvan < syl...@student.chalmers.se> wrote: > > > On Sat, Feb 21, 2009 at 12:16 AM, Bulat Ziganshin &

Re: Re[2]: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Sebastian Sylvan
t a smiley at the end of a thinly veiled ad hominem doesn't mean you get to pretend that you're just a victim when people get understandably ticked off at your tone and respond in kind. Search the archives, performance discussions come up all the time, often with quite vigorous criticism o

Re: [Haskell-cafe] Re: speed: ghc vs gcc

2009-02-20 Thread Sebastian Sylvan
and general approach in the future. Haskell people in general are always pretty good at accepting criticism IME (they tend to want to fix the problem), don't you think it's odd that it's only *your* criticism that gets so much flak? Maybe some part of the reas

Re: [Haskell-cafe] Error installing pkg 'HDBC-sqlite3'

2009-02-20 Thread Sebastian Sylvan
>> undeclared (first use in this function) > >> Database\HDBC\Sqlite3\Statement.hsc:150: error: `SQLITE_ERROR' > >> undeclared (first use in this function) > >> compiling dist\build\Database\HDBC\Sqlite3\Statement_hsc_make.c failed > >> > >> Is the file '

Re: [Haskell-cafe] Error installing pkg 'HDBC-sqlite3'

2009-02-20 Thread Sebastian Sylvan
s, > David. > _______ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Amazing

2009-02-14 Thread Sebastian Sylvan
ugh some level of "sanity checking". When you're writing imperative code, a lot of the meaning of your program comes from the ordering of statements - which usually isn't checked at all (aside from scope). So IMO static typing is good, but it'

Re: [Haskell-cafe] Re: Can this be done?

2009-02-11 Thread Sebastian Sylvan
t; even comes close to having production-safe (that is, non-abusable) > semantics. Shouldn't the following WASH function help? once :: (Read a, Show a) => CGI a -> CGI a -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re[2]: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-11 Thread Sebastian Sylvan
erated by ghc > Impossible? Really? How does performance relate to it being possible to write? I would be surprised if it was indeed impossible to get something that runs fine one *some* machine. It may be difficult to beat C, but that doesn't mean it's impossible to write something use

Re: [Haskell-cafe] Can this be done?

2009-02-11 Thread Sebastian Sylvan
ch the session log from disk, replay the whole session from that, and reproduce the continuation that way. That way most sessions would just work directly off of the cache and never touch disk, but if someone waits too long (or, say, bookmarks a page in the middle of the session!) there's sti

Re: [Haskell-cafe] 1,000 packages, so let's build a few!

2009-02-01 Thread Sebastian Sylvan
-- From: "Duncan Coutts" Sent: Sunday, February 01, 2009 2:59 PM To: "Don Stewart" Cc: Subject: Re: [Haskell-cafe] 1,000 packages, so let's build a few! On Sat, 2009-01-31 at 14:02 -0800, Don Stewart wrote: >not really :) e.g. my output

Re: [Haskell-cafe] 1,000 packages, so let's build a few!

2009-01-31 Thread Sebastian Sylvan
-- From: "Don Stewart" Sent: Saturday, January 31, 2009 8:35 PM To: "Andrew Coppin" Cc: Subject: Re: [Haskell-cafe] 1,000 packages, so let's build a few! andrewcoppin: In celebration of Hackage reachin over 1,000 unique packages, I decided th

Re: [Haskell-cafe] Re: Monades - I've got it! (hopefully)

2009-01-28 Thread Sebastian Sylvan
ows for the async monad)? See e.g. http://blogs.msdn.com/dsyme/archive/2007/09/22/some-details-on-f-computation-expressions-aka-monadic-or-workflow-syntax.aspx -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] MySQL and HDBC?

2009-01-23 Thread Sebastian Sylvan
ackend which should work fine with MySQL. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Processor availability

2009-01-22 Thread Sebastian Sylvan
asks. Consider using Contorl.Parallel.Strategies which allows you to spark of lightweight jobs that get run on a pool of threads. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskel

[Haskell-cafe] Re: ANN: hledger 0.3 released

2009-01-19 Thread Sebastian Sylvan
The cabal file still includes the vty dependency, but simply removing it made it compile. -- From: "Simon Michael" Sent: Sunday, January 18, 2009 7:04 PM To: "Sebastian Sylvan" Cc: ; Subject: Re: ANN: hledger 0.3 released

Re: [Haskell-cafe] runghc Setup.hs doitall

2009-01-18 Thread Sebastian Sylvan
#x27;re using and would remove packages that won't build on that OS (by recursively checking dependencies too). -- From: "Duncan Coutts" Sent: Sunday, January 18, 2009 6:20 PM To: "Sebastian Sylvan" Cc: "Jeff Wheeler&

[Haskell-cafe] Re: ANN: hledger 0.3 released

2009-01-18 Thread Sebastian Sylvan
ependency graph. -- From: "Simon Michael" Sent: Sunday, January 18, 2009 6:08 PM To: "Sebastian Sylvan" Cc: ; Subject: Re: ANN: hledger 0.3 released On 1/18/09 9:39 AM, Sebastian Sylvan wrote: I was interested in actually using this &quo

Re: [Haskell-cafe] ANN: hledger 0.3 released

2009-01-18 Thread Sebastian Sylvan
I was interested in actually using this "for real", but unfortunately it seems like you have a dependency on the unix package. Would it be possible to use something portable (specifically to windows) instead? From: Simon Michael Sent: Saturday, January 17, 2009 11:42 PM To: hled...@googlegroup

Re: [Haskell-cafe] runghc Setup.hs doitall

2009-01-18 Thread Sebastian Sylvan
Doesn't work on windows. -- From: "Jeff Wheeler" Sent: Sunday, January 18, 2009 4:27 PM To: Subject: Re: [Haskell-cafe] runghc Setup.hs doitall On Sun, 2009-01-18 at 16:22 +0000, Sebastian Sylvan wrote: Is there some sort of

Re: [Haskell-cafe] runghc Setup.hs doitall

2009-01-18 Thread Sebastian Sylvan
Is there some sort of bundle that you can use to install cabal-install easily? Because it looks to me like I'd have to spend the better part of an evening manually downloading and installing the gazillion of dependencies it has, which is far too much work when I just wanted to spend ten minutes

Re: [Haskell-cafe] Comments from OCaml Hacker Brian Hurt

2009-01-15 Thread Sebastian Sylvan
the footnotes for their fill of papers containing pages of squiggly symbols!). -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: How do we decide on the new logo?

2009-01-03 Thread Sebastian Sylvan
pty boxing being equivalent to +Inf), allowing multiple entries to share the same rank. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] The Haskell re-branding exercise

2008-12-21 Thread Sebastian Sylvan
people won't be deeply unhappy with it. > >It would be a shame if there's lots of votes that are spread out over > a > >large group of fairly similar logos that are good, and then a crappy > one > >wins out with 6% of the vote because there weren't a

Re: [Haskell-cafe] The Haskell re-branding exercise

2008-12-21 Thread Sebastian Sylvan
t with 6% of the vote because there weren't any others like it so the votes for that "style" weren't spread out over multiple entries. Wikipedia: http://en.wikipedia.org/wiki/Condorcet_voting -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 _

[Haskell-cafe] Data parallelism doesn't seem to work on windows...

2008-11-29 Thread Sebastian Sylvan
ghc --make -fcpr-off -threaded -fdph-par -package dph-base -Odph -XPArr parr2.hs -- execution as before main = print $ [: True | n <- [: 1000 .. 5000 :], fac n == 0 :] That's 4000 items of work there, so surely it should kick off plenty of sparks to overcome the "sparks bug"

Re: [Haskell-cafe] Memory efficiency questions for real-time graphics

2008-11-04 Thread Sebastian Sylvan
s > > the way to go :) > > > Or you could use OpenGL, which has supported that since the first GPUs > that did were released. I think that came with OpenGL 3.0. Unless you're counting vendor-specific extensions... -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862

Re: [Haskell-cafe] Memory efficiency questions for real-time graphics

2008-10-28 Thread Sebastian Sylvan
his, I am applying a non-linear > transformation to an object on every frame. (Note: non-linear, so a > matrix transform will not suffice.) > Any reason why you can not do this in the vertex shader? You really should avoid trying to touch the vertices with the CPU if at all possible. --

Re: Re[8]: [Haskell-cafe] Climbing up the shootout...

2008-09-23 Thread Sebastian Sylvan
t's not how *real* applications look! In real applications that kind of code would be only a fraction of the total code base, most of it would be perfectly ordinary Haskell! (whereas in C everything would be, well C) Cheers, -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Line noise

2008-09-22 Thread Sebastian Sylvan
ght after Map. > > > > Only if you can figure out that "Map" means what every other programming > > language on the face of the Earth calls a "dictionary". (This took me a > > while!) > > So, when did Java leave the face of the earth? At the same

Re: [Haskell-cafe] nooby question on typing

2008-09-13 Thread Sebastian Sylvan
u can create a list or Rule like so: >mylist :: [Rule] >mylist = [ MkSgRule mysgrule, MkGcRule mygcrule ] where mysgrule :: SgRule and mygcrule :: GcRule. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Can you do everything without shared-memory concurrency?

2008-09-12 Thread Sebastian Sylvan
le cell mailbox (both reads and writes are blocking), then set up two classes that shuffles values from the same two mailboxes in the opposite direction? -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@has

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-10 Thread Sebastian Sylvan
nd locks are on the same side of this argument - they both require the user to ahead of time partition the data up and decide how to serialize operations on the data (which is not always possible statically, leading to very very complicated code, or very low concurrency). -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Can you do everything without shared-memory concurrency?

2008-09-09 Thread Sebastian Sylvan
cy using locks 6. Lockless programming. So while I wouldn't resort to any shared state concurrency unless there are good reasons for why the other methods don't work well (performance is a good reason!), there are still situations where you need it, and a general purpose language had b

Re: [Haskell-cafe] Haskell Propeganda

2008-08-25 Thread Sebastian Sylvan
at the program does, a little poking in an interactive session will usually get you there far faster then anything you could do in C++. The same goes for tracking down bugs, IMO. It would be nicer to have better traditional debugging tools of course

Re: [Haskell-cafe] ANNOUNCE: vector 0.1 (efficient arrays with lots of fusion)

2008-07-12 Thread Sebastian Sylvan
t this? Specifically what things can happen in-place, and future extensions... -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell, Microsoft, and interview questions

2008-06-26 Thread Sebastian Sylvan
ally flew on this problem. > > > > > I did some reading up on this, and it seems interesting. It would be > need to implement something like this in Haskell, but I can't seem to > find any detailed specs on the data-structure. Got any > recommendations? http://en.wiki

Re: [Haskell-cafe] How to do this in FP way?

2008-06-16 Thread Sebastian Sylvan
end to impact your program a lot more than just some minor changes to the functions at the "bottom", it will change the whole design. -- Sebastian Sylvan +44(0)7857-300802 UIN: 44640862 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

  1   2   3   4   5   >