[REBOL] Re: New competition: do you accept the challenge?! :-)
From: ale870::gmail at: 7-Nov-2007 0:41
Sorry, I forgot another point that we could evaluate: now much memory is
used to perform a specific job. This is very important, since Java uses much
memory during the jobs.
On Nov 7, 2007 12:36 AM, Alessandro Manotti <ale870-gmail.com> wrote:
> Well Gregg,
>
> obviously we need to achieve the same result (else the comparison will
> fail!), but we need to optimize rebol program.
> Basically we need to maintain the program "logic" (loops, etc...).
> My target is not showing that java is faster than Rebol, but I'm trying to
> understand what are the "strong" points and "weak" points of Rebol.
>
> For example, until now, it seems Rebol does not manage very well strings
> (compared to Java). But we need to consider that java, in order to optimize
> string management, it introduced StringBuffer object, since String object is
> immutable, and is is very slow for frequent changes.
> I think Rebol could follow a similar way, using a specific datatype for
> strings that must be changed frequently.
>
> But this is a partial result.
>
> I didn't publish my benchmark about calculations, but I was very
> impressed: I made a similar loop, but I calculated a formula similar to
> this:
>
> result: result + 100 * sine i
>
> Rebol perfomance is very similar to java.
>
> Then I made a test for strings, since they are a "delicated" point in many
> languages (even more if we try to manage long strings, with MANY characters,
> since it involves good memory management, involves internal references,
> etc...).
>
> I think we could even create other specific tests in order to find weak
> points in Rebol, in order to try to optimize them, either as final script or
> as internal P-CODE.
> But we should not forget that Java is not pure P-CODE, since it includes a
> JIT (just in time compiler). In fact, Java interpreter machine automatically
> check the bottle neck and convert them in pure, native, machine language. I
> think Rebol works only in P-CODE and does not contain a real JIT.
>
> On Nov 7, 2007 12:23 AM, Gregg Irwin <gregg-pointillistic.com> wrote:
>
> >
> > Hi Alessandro,
> >
> > AM> So, my competion proposal is the following: creating a Rebol
> > application
> > AM> faster than the corresponding java one.
> >
> > Is the goal just to create the same result, or just to optimize string
> > ops in loops?
> >
> > -- Gregg
> >
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
> >
>
> --
>
> //Alessandro
>
> http://sguish.wordpress.com
> http://laccio.wordpress.com
>
--
//Alessandro
http://sguish.wordpress.com
http://laccio.wordpress.com