comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: ada is getting spanked :(
Date: Sun, 29 Oct 2006 23:50:24 GMT
Date: 2006-10-29T23:50:24+00:00	[thread overview]
Message-ID: <47b1h.21208$E02.8795@newsb.telia.net> (raw)
In-Reply-To: <1162153407.18869.34.camel@localhost.localdomain>

Georg Bauhaus wrote:
> The speed factor is now close to 18 :-). After some simplifications,
> and after (I think) more closely reflecting the benchmark description.

You're probably going to beat #3, because Gnat.Spitbol works with 
unbounded strings but Gnat.Regpat requires fixed strings.

> How could a notion of REs be both precise and precisely
> applicable to the ways in which various PLs implement them?
>  E.g. how can you turn off Boyer-Moore string searching when
> one implementation has it, just so that only some specified
> internal way of pattern matching is compared?

I wasn't talking of internal implementations. As I understand it, 
"regex" is a name of a family of similar notations for expressing 
patterns. If you don't write "[ABC]*" for "any number of A's, B's and 
C's in any order", then it isn't regex.

The requirement to use one particular pattern notation may of course be 
unintentional. Maybe the person who wrote the requirements didn't know 
that other notations existed.

> I did have a look at this program, however with program #3 as is
> I keep getting segmentation faults due to the
> 
>   Sequence_Lines (1 .. 1_000_000) of type Unbounded_String.
> 
> ulimit -s 10000 didn't help, reducing the number of lines did.

Now that you mention it, I remember having that problem too. I didn't 
change that part, and as it had obviously worked on the contest servers 
I figured it should keep working there. I suppose #2 falls below that 
limit on your box because it calculates how big the array needs to be.

-- 
Björn Persson                              PGP key A88682FD
                    omb jor ers @sv ge.
                    r o.b n.p son eri nu



  reply	other threads:[~2006-10-29 23:50 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-28 16:29 ada is getting spanked :( cl1
2006-10-28 17:45 ` Martin Krischik
2006-10-28 20:02   ` Georg Bauhaus
2006-10-29  1:34   ` Georg Bauhaus
2006-10-29  2:13     ` Jeffrey R. Carter
2006-10-29  4:48       ` Isaac Gouy
2006-10-30  1:01         ` Isaac Gouy
2006-10-29  2:26     ` Jeffrey R. Carter
2006-10-29  2:30       ` Jeffrey R. Carter
2006-10-29  2:33         ` Jeffrey R. Carter
2006-10-29 17:19           ` Jeffrey R. Carter
2006-10-29 17:25           ` Jeffrey R. Carter
2006-10-29  8:54     ` Martin Krischik
2006-10-29 13:01       ` Georg Bauhaus
2006-10-30  0:46         ` Isaac Gouy
2006-10-29 16:27     ` Björn Persson
2006-10-29 20:23       ` Georg Bauhaus
2006-10-29 23:50         ` Björn Persson [this message]
2006-10-31 11:32           ` Dmitry A. Kazakov
2006-10-31 13:12             ` Georg Bauhaus
2006-10-31 14:14               ` Dmitry A. Kazakov
2006-10-31 18:01       ` Martin Krischik
2006-10-29  4:58   ` Isaac Gouy
2006-10-29  8:46     ` Martin Krischik
2006-10-30  0:17       ` Isaac Gouy
2006-10-30 18:26   ` jtg
2006-10-30 21:50     ` george
2006-10-31  4:57     ` Jeffrey R. Carter
2006-10-31  6:28     ` Gautier
2006-10-31  6:47     ` Martin Krischik
2006-11-02 18:21       ` Jeffrey R. Carter
2006-11-02 19:37         ` Gautier
2006-11-03  5:11           ` Jeffrey R. Carter
2006-11-03 12:06         ` Martin Krischik
2006-11-03 19:59           ` Jeffrey R. Carter
2006-11-12 22:26   ` Shootout / pidigits [Re: ada is getting spanked :(] Gautier
2006-10-28 22:45 ` ada is getting spanked :( Larry Kilgallen
2006-10-29 16:22 ` Leif Holmgren
2006-10-29 17:28   ` Simon Wright
2006-10-29 19:21   ` jtg
2006-10-29 21:33     ` Leif Holmgren
2006-10-31 11:04       ` Harald Korneliussen
2006-11-01 11:28         ` jtg
2006-11-01 14:31           ` Harald Korneliussen
replies disabled

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