2 ms·
> with half-baked interpreters written in an obscure language like Haskell Because the author thought it to be fun. You know, hackers and all. > or written in
by justinator 11y ago
> with half-baked interpreters written in an obscure language like Haskell
Because the author thought it to be fun. You know, hackers and all.
> or written in Perl 6 itself using half-baked Perl 6 to 5 converters
Oh, I don't think that ever happened.
You may be thinking of NQP? Which is still a Thing, and it's what Perl 6 is written in, which is amazing.
There was also the initial idea that Perl 6 could run Perl 5, but this is proving impossible. This is done now using the Inline::* modules, which will use say, the Perl 5 interpreter. [0]
So, there's one for Perl5 to allow for compatibility with Perl 5 modules, but also for Python[1], and most likely for x language. That's awesome!
Of course, the inverse is true, too. You can call up Perl 6, from Perl 5![2]
> or targeting the .NET CLR or JVM, or targeting very
> obscure and limited VMs like Parrot or MoarVM.
Targeting .NET or JVM is also a good idea! Many languages do it. The general idea of Parrot shares a lot of interesting ideas with .NET - I almost want to say Parrot precedes .NET. The April Fools joke certainly did. If it didn't, Parrot was certainly inspired by .NET - or it was just an idea that was in the air at the time. Good idea!
[0] https://github.com/niner/Inline-Perl5 https://github.com/niner/Inline-Perl5
[1] https://github.com/niner/Inline-Python/ https://github.com/niner/Inline-Python/
[2] https://metacpan.org/pod/Inline::Perl6 https://metacpan.org/pod/Inline::Perl6
- cygx 11y ago> or written in Perl 6 itself using half-baked Perl 6 to 5 converters Oh, I don't think that ever happened. That might be a reference to viv, which was used to implement STD (cf http://perl6.org/compilers/std-viv http://perl6.org/compilers/std-viv ). There was also the initial idea that Perl 6 could run Perl 5, but this is proving impossible. Personally, if Rakudo ever starts outperforming Perl5 for practical workloads, I believe that idea might eventually be revisited.