Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-13 Thread Roman Cheplyaka
* Eugene Kirpichov [2011-09-14 08:38:10+0400] > Hi, > I don't see how fallback to NFA simulation is really a failure wrt DoS > attacks. It's not exponential in time or memory, just linear memory > (in size of regex) instead of constant, and slower than DFA. Hi Eugene, thanks for pointing that out

Re: [Haskell-cafe] efficient chop

2011-09-14 Thread Roman Cheplyaka
* Kazu Yamamoto [2011-09-14 15:59:05+0900] > Hello, > > My friend reached the following version: > > chop :: String -> String > chop = foldr go [] > where > go x xs > | isSpace x && null xs = [] > | otherwise= x:xs > > This version is faster than the reverse versio

Re: [Haskell-cafe] VirtuaHac - online Haskell hacathon

2011-09-16 Thread Roman Cheplyaka
* Chris Smith [2011-09-16 12:13:13-0600] > Overview > > > VirtuaHac is a Haskell hacathon being planned using Google+ and a Wiki. > The rules will be that if you have a project you'd like to participate > in, then: > > 1. Create a darcs or git repository. > 2. Post a Hangout in Google+.

Re: [Haskell-cafe] The applicative instances for Either?

2011-09-17 Thread Roman Cheplyaka
A natural reference would be the darcs repository http://darcs.haskell.org/packages/base/ or its git mirror http://darcs.haskell.org/packages/base.git which I used because getting it is much faster. Using 'git blame Control/Applicative.hs' I figured out that the instance was added in this

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-18 Thread Roman Cheplyaka
* Anton Tayanovskyy [2011-09-17 21:46:57-0400] > So you want to encode priorities efficiently as far as I understand > from [1]? Could bit-packing combined with prefix elimination do the > trick? Choice boils down to binary choice. Attach a number N to every > execution thread that sits in a given

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-18 Thread Roman Cheplyaka
* Anton Tayanovskyy [2011-09-17 22:11:00-0400] > By the way, can Haskell have a type that admits regular expression and > only those? I mostly do ML these days, so trying to write up a regex > types in Haskell I was unpleasantly surprised to discover that there > are all sorts of exotic terms inha

Re: [Haskell-cafe] regex-applicative library needs your help! (algorithmic challenge)

2011-09-18 Thread Roman Cheplyaka
Chris, Thank you for an interesting overview. However, I'm not worried directly about DoS. I just want to build a regex library which would be convenient to use for parsing regular languages (by providing applicative interface and Perl semantics), and not worse than alternatives performance-wise

Re: [Haskell-cafe] Parsec line number off-by-one

2011-09-20 Thread Roman Cheplyaka
rt of off-by-one? Does anyone see a > better (i.e. working) way to formulate my grammar? Any and all help > would be greatly appreciated. Thanks. > > Cheers, > > - Ben > > > ___ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/m

Re: [Haskell-cafe] ANN: Peggy 0.2.1

2011-10-01 Thread Roman Cheplyaka
* Hideyuki Tanaka [2011-09-29 04:53:59+0900] > Hello, all. > > I have released 'Peggy' a new parser generator . > It is based on Parsing Expression Grammer (PEG) [1], > and generates efficient packrat parsers. How does it compare to frisby? http://hackage.haskell.org/package/frisby An obvious

[Haskell-cafe] Is SmallCheck maintained?

2011-11-14 Thread Roman Cheplyaka
Hi Cafe, Does anyone currently work on Test.SmallCheck? I see the following problems: 1. SC doesn't have a repository, issue tracker etc. 2. It is not integrated with popular test frameworks 3. API should be better documented I'm willing to work on the above problems, but wanted to check first

Re: [Haskell-cafe] ST not strict enough?

2011-11-15 Thread Roman Cheplyaka
* Jason Dusek [2011-11-15 20:08:48+] > I'm having some trouble with memory usage in rebuilding a > ByteString with some sequences escaped. I thought I'd try > vectors. However, it seems that even a relatively simple > function, one that places all the bytes of a ByteString in to a > vector, us

Re: [Haskell-cafe] Superset of Haddock and Markdown

2011-11-18 Thread Roman Cheplyaka
* Johan Tibell [2011-11-17 21:09:15-0800] > Hi all, > > I spent some time today documenting a library and the experience left me > wanting a better markup language. In particular, Haddock lacks: > > * markup for bold text: bold text works better than italics for emphasis > on computer monitors.

Re: [Haskell-cafe] Documenting strictness properties for Data.Map.Strict

2011-11-18 Thread Roman Cheplyaka
* Johan Tibell [2011-11-17 21:21:47-0800] > Hi all, > > Data.Map is getting split into Data.Map.Lazy and Data.Map.Strict (with > Data.Map re-exporting the lazy API). I want to better document the > strictness properties of the two new modules. Right now the > documentation for Data.Map.Strict rea

Re: [Haskell-cafe] Documenting strictness properties for Data.Map.Strict

2011-11-18 Thread Roman Cheplyaka
* Johan Tibell [2011-11-18 08:06:29-0800] > On Fri, Nov 18, 2011 at 12:09 AM, Roman Cheplyaka wrote: > > Is it mentioned anywhere that Map is spine-strict? > > It's not and we should probably mention it. Hm. Perhaps I'm missing something, but data Map k a =

Re: [Haskell-cafe] Documenting strictness properties for Data.Map.Strict

2011-11-18 Thread Roman Cheplyaka
* Brandon Allbery [2011-11-18 12:20:33-0500] > On Fri, Nov 18, 2011 at 12:16, Roman Cheplyaka wrote: > > > * Johan Tibell [2011-11-18 08:06:29-0800] > > > On Fri, Nov 18, 2011 at 12:09 AM, Roman Cheplyaka > > wrote: > > > > Is it mentioned anywhere that

[Haskell-cafe] ANNOUNCE: SmallCheck 0.5

2011-11-19 Thread Roman Cheplyaka
Following the recent discussion on Haskell-Cafe, I've taken over maintainership of SmallCheck. This is to announce a new minor release, SmallCheck 0.5. It fixes build on GHC 7.2 and makes a few cosmetic changes. http://hackage.haskell.org/package/smallcheck-0.5 In the future there will be m

Re: [Haskell-cafe] Complete package description list

2011-12-06 Thread Roman Cheplyaka
* Paterson, Ross [2011-12-06 09:09:36+] > Shakthi Kannan writes: > > So, how would I know if there is a new package in it, other than > > having to compare it to the previous snapshot? Does the filename > > (00-index.tar.gz) change? > > The filename doesn't change. You could use the RSS feed

Re: [Haskell-cafe] [ANNOUNCEMENT] xmobar 0.14

2011-12-11 Thread Roman Cheplyaka
* Jose A. Ortega Ruiz [2011-12-11 08:43:01+0100] > On Sun, Dec 11 2011, Brandon Allbery wrote: > > [...] > > > xmobar currently requires parsec 3.x; the above is the symptom of > > building it against 2.x. > > Aha, thanks for pointing this out, guys. > > Peter, would using parsec 3.x be an acc

[Haskell-cafe] ANNOUNCE: smallcheck-0.6; test-framework-smallcheck-0.1

2011-12-11 Thread Roman Cheplyaka
I'm pleased to announce a new release of SmallCheck. The highlights for this release are: * Default Generic implementation of Serial instance, contributed by Bas van Dijk This means that you don't need to write instances by hand for your types to generate test values for them. See [1]

Re: [Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

2011-12-19 Thread Roman Cheplyaka
* Alexander Solla [2011-12-19 19:10:32-0800] > * Documentation that discourages thinking about bottom as a 'value'. It's > not a value, and that is what defines it. In denotational semantics, every well-formed term in the language must have a value. So, what is a value of "fix id"? -- Roman I.

<    1   2   3   4   5