![]() |
|
Think about Loose Coupling | |
PerlMonks |
Forking Perl5 with Microperl++?by rje (Deacon) |
on Oct 21, 2014 at 14:27 UTC ( #1104569=perlquestion: print w/replies, xml ) | Need Help?? |
rje has asked for the wisdom of the Perl Monks concerning the following question: "If I were to implement a language now, I'd write a very minimal core suitable for bootstrapping. ... Think of a handful of ops. Think very low level. (Think something a little higher than the universal Turing machine and the lambda calculus and maybe a little bit more VMmy than a good Forth implementation, and you have it.) If you've come up with something that can replace XS, stop. You're there. Do not continue. That's what you need." (Chromatic, January 2013) This is in Chromatic's response to Moe, which sounds -Ofun and seems like a good idea. And now that I've crawled out from under my rock, I see microperl, an ancient tool included with 5.8. Alright, I don't recall ever hearing about microperl. It's not in my copy of the Programming Perl book, and that sucker is a thousand pages. And lately, haven't I seen grumblings about the insularity and stubborn bikeshedding nature of the Perl community? So how about this. Microperl isn't the "handful of ops" that Chromatic is suggesting, and it ain't XS, but it's tiny and, well, it's Perl. Therefore, what are the issues around forking and modifying microperl (oh so gently) to bootstrap a variant of Perl5? I mean, it's already written, and it's tiny -- minimal, if Simon is to be believed. I mean, the thing built in a 300k footprint when compiled with a proper optimizer. So what's not to like? So I re-ask my question. Doesn't microperl seem to be at least halfway to a bootstrap up to a useful and somewhat regularized, normalized, unpackable, what-have-you-able variant of Perl5? Just for reference, here's a sample microperl script written in zentara's discussion. It seems pretty handily powerful for being a tiny subset of perl. Is there documentation for microperl?
Back to
Seekers of Perl Wisdom
|
|