[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Game Logic



Chris Purnell wrote:

> > What do you think is optimized in Perl for textual processing? And how
> > would any such optimization prevent optimizing other tasks as well? If
> > you don't do any regex, well, yeah, those text-oriented optimization
> > won't do you any good, but they won't do any harm either!
> 
> No, but the language is still lacking similar 3d-oriented features.
> Adding them by having vectors stored in arrays and calling external
> C functions is not as optimal as you could get from a language with
> a native vector type.

You could have vectors stored in a native vector type that you would tie
as an array in Perl. Quite easy to fix actually. Semantically, an array
and a vector are very close, so the semantic support is there in the
language. You just have to fill in the performance side and you've got
very fast vectors in Perl.

> I use Perl a lot and I've done all sorts with it.  It's about the only
> scripting language I use these days.  But I wouldn't use it for this.

I have yet to find soemthing where Perl cannot be used or cannot be
extended to be used.

-- 
"If you want to travel around the world and be invited to speak
at a lot of different places, just write a Unix operating system."
 -- Linus Torvalds

---------------------------------------------------------------------
To unsubscribe, e-mail: linuxgames-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: linuxgames-help@sunsite.auc.dk