comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Wide Finder in Ada?
Date: Mon, 12 Nov 2007 08:57:10 +0100
Date: 2007-11-12T08:57:10+01:00	[thread overview]
Message-ID: <47380779$1@news.post.ch> (raw)
In-Reply-To: <1194831460.619945.188980@v3g2000hsg.googlegroups.com>

braver schrieb:
> Tim Bray has a fantastic parallel programming challenge, Wide Finder,
> running at full speed:
> 
> http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results
> 
> It originated by trying parallel Erlang live up to regular Ruby.  Now
> the top contenders are JoCaml -- parallel OCaml, Python, and there're
> many implementations in Erlang, Haskell, and even things like PHP and /
> bin/sh.  (This is the first place where I've heard "parallel gawk".)
> 
> Given the target box is Sun with 8 cores, Ada would shine there is my
> guess.  Perhaps some pro here could beat JoCaml?

First here is the original Ruby code:

http://www.tbray.org/ongoing/When/200x/2007/09/20/Wide-Finder

So we know what to implement. Basicly:

1 Read File
1.1 Search for %r{GET /ongoing/When/\d\d\dx/(\d\d\d\d/\d\d/\d\d/[^ .]+) }
1.2 Count hits on found string using a map
2 Output result
2.1 sort map
2.2 output top 10

First improvement would be the use of Splitbool instead of regular
expressions. And then reading and counting could be decoupled. Some
implementation decouple reading the file and spitting into lines.

First things First: Any Splitbool specialist which can turn the Ruby
regex into splitbool?


Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  reply	other threads:[~2007-11-12  7:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12  1:37 Wide Finder in Ada? braver
2007-11-12  7:57 ` Martin Krischik [this message]
2007-11-12  9:55   ` braver
2007-11-12 19:11     ` Martin Krischik
2007-11-12 10:54   ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox