Re: [Haskell-cafe] Array, Vector, Bytestring

2013-06-04 Thread silvio
ance was exactly opposed to these reasonable use cases. Silvio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-06-04 Thread silvio
array does provide folding functions, found in its Foldable and Traversable instances. Where can I find this? I can neither in the array package nor with google nor with hoogle. Silvio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-06-04 Thread silvio
aster depends very much on the problem at hand. And array is just missing half the needed features. Silvio import Criterion.Main import Criterion.Config import Data.Word import Data.Bits import System.Random import qualified Data.Vector.Unboxed as UVec import qualified Data.Vector.Storable as

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-06-03 Thread silvio
write :: MVector a -> Int -> a -> ST s a This should have been: write :: MVector s a -> Int -> a -> ST s a ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Array, Vector, Bytestring

2013-06-03 Thread silvio
t all procedurally accelerated data structures like hash-tables. Silvio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Map Reduce spec in Haskell

2013-04-18 Thread Silvio Frischknecht
There was a paper about this. I think I found it. "Google's MapReduce Programming Model -- Revisited" http://userpages.uni-koblenz.de/~laemmel/MapReduce/paper.pdf ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/list

Re: [Haskell-cafe] class Bytestringable or ToBytestring

2012-11-23 Thread Silvio Frischknecht
t you get a ByteString back but if you only use your own types where you write all the instances yourself you should be safe. silvio ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] lightweight alternative to mtl?

2012-06-17 Thread Silvio Frischknecht
very easy to understand. silvio -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJP3s9EAAoJEDLsP+zrbatWUBIP/iWp4AUox1T+CkjaqOEi5qa8 YrJxK0STTjOMNtEA2IWBNHTt2WILKBIMUq6KbEL2o5uZBaWgloYobeyYHmQ8L9Tz Rk

Re: [Haskell-cafe] I don't understand how ST works

2012-06-07 Thread Silvio Frischknecht
ways have to watch out for when dealing with ST is not to return something that depends on s in the last statement (the one you use runST on). In other words, if you want to return a vector you have to freeze it, so it's not mutable anymore. If you still can't figure it out paste some c

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

2012-05-07 Thread Silvio Frischknecht
vm flag. It says somewhere that they don't measure llvm because they don't have time. But I think they are refering to clang. So maybe someone should tell them to turn on the llvm flag since it makes a lot of haskell programs faster. Silvio -BEGIN PGP SIGNATURE- Version: GnuPG v

Re: [Haskell-cafe] Questions on the Haskell 2010 report

2012-01-08 Thread Silvio Frischknecht
a module, the module is imputed to be Main and > the symbol main is exported from it. See the final paragraph of > Section 5.1. Didn't see that I also think I figured out number why there should be an error in number 3. Though I still thinks it's a very roundabout way of sa

[Haskell-cafe] Questions on the Haskell 2010 report

2012-01-08 Thread Silvio Frischknecht
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to write a haskell compiler and i have stumbled upon 2 issues that i don't understand in the Haskell report 2010. Btw. these issues are also present in the 98 report. 1) first is this in section 5.1 Module Structure [1]. A module is define

Re: [Haskell-cafe] Project Euler Problem 357 in Haskell

2011-11-08 Thread Silvio Frischknecht
ne sum' import Data.List sum' = foldl' (+) 0 Silvio -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOuTSFAAoJEDLsP+zrbatW3W8P/04IPhOqSvAI5Cau+GusInCr CVu932qNVROMb++NHulEtx

Re: [Haskell-cafe] Trouble defining `instance Arrow SF'

2011-10-27 Thread Silvio Frischknecht
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > SF.hs:11:10: `>>>' is not a (visible) method of class `Arrow' > Failed, modules loaded: none. In the base package Arrows are defined a bit different from what you some times see in the literature. I also stumbled over this once. The (>>>) operator