Re: Gain performances and fix some issues using XS

[email protected] (Marc Chantreux)
Newsgroups perl.perl5.porters
Message-ID <aYhnXH3uU8Ubbkv3@prometheus>
hello Philippe,

thanks for your anwser.

On Thu, Feb 05, 2026 at 11:31:57AM +0100, Philippe Bruhat (BooK) wrote:
> > 1. make it faster at execution
> > 2. make it even faster/easy to write with expressions instead blocks
> >    with filter/apply (which are "on demand" conterparts of grep/map).
> > 3. put a value back to the stream in case of failure

> Point 2 reminds me of Graham's generic "iterators" proposal that we
> discussed during the PTS in 2023 in Lyon. Generalizing the idea of map
> and grep in the language.

I don't know about the whole idea but if we can have versions of
of map, grep, keys and values that returns interators that are built
in perl and returns iterators, the missing thing would a mecanism
to stop releasing a stream (in python, js and ruby, there are both return
and yield but AFAIK all of them lack the ability for the caller to put a
value back in the stream).

Any step toward those built in iterators can obsolete Perlude which
would be nice! Is there any way I can help on that?

regards,

-- 
Marc Chantreux
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.