Last time I mused aloud about "refactoring" Perl, I referenced Chromatic's statement/challenge:
"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)
I know next to nothing about XS, so I started reading perldoc.
I'm thinking about the problem, so if there is a question, it would be "what NOW?"
Should I bother with thinking about bytecodes? In what sense could it be a replacement for XS? What does "replace XS" even MEAN? (i.e. perhaps it just means "remove the need to use perl's guts to write extensions, and improve the API").
Most importantly, am I wasting people's time by asking?
I'm trying to come up with my own answers, and learn by trying. But wisdom is in knowing that some of you guys have already thought through this. If you can help bring me up to speed, I'd appreciate it.
UPDATE: I see even within the Lorito page, it was understood that the discussion was to some degree about Perl's API: "This is an issue of API design. If we understand the non-essential capabilities we want to support (e.g. optimization passes, etc), we can design the API so that such capabilities can be exploited but not required. - cotto "
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Refactoring Perl5 with XS++
by ikegami (Patriarch) on Apr 27, 2015 at 01:38 UTC | |
by rje (Deacon) on Apr 27, 2015 at 15:30 UTC | |
by ikegami (Patriarch) on Apr 27, 2015 at 15:44 UTC | |
by rje (Deacon) on Apr 27, 2015 at 17:21 UTC | |
by mr_mischief (Monsignor) on Apr 27, 2015 at 15:36 UTC | |
by rje (Deacon) on Apr 27, 2015 at 17:25 UTC | |
|
Re: Refactoring Perl5 with XS++
by Anonymous Monk on Apr 25, 2015 at 07:12 UTC | |
by stevieb (Canon) on Apr 25, 2015 at 07:19 UTC | |
by Anonymous Monk on Apr 25, 2015 at 09:42 UTC | |
by stevieb (Canon) on Apr 25, 2015 at 11:47 UTC | |
|
Re: Refactoring Perl5 with XS++
by stevieb (Canon) on Apr 25, 2015 at 07:06 UTC | |
by rje (Deacon) on Apr 25, 2015 at 14:16 UTC | |
|
Re: Refactoring Perl5 with XS++ (moved)
by LanX (Saint) on Apr 25, 2015 at 12:12 UTC | |
|
Re: Refactoring Perl5 with XS++
by locked_user sundialsvc4 (Abbot) on Apr 28, 2015 at 01:24 UTC | |
by Anonymous Monk on Apr 28, 2015 at 06:40 UTC | |
by locked_user sundialsvc4 (Abbot) on Apr 28, 2015 at 11:50 UTC |