in reply to Re^4: Modernizing the Postmodern Language?
in thread Modernizing the Postmodern Language?
For instance, the way perl scalars are represented internally (SV) is open. You can access the structure from XS, change it, get pointers to its slots, whatever. There is no reasonable way you could provide an API emulating that on top of a substantially different guts.
Also, any proposed solution needs to be simple, reliable and portable.
Regarding, efficiency, in many cases, efficiency is just being able to access the raw data without it passing through intermediate layers. Take for instance my module Sort::Key::Radix. Besides the algorithm, one of the reasons why it is so fast is because it manipulates directly the perl data structures. There isn't a conversion from Perl to some agnostic format when any of its subs is called or when returning from it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Modernizing the Postmodern Language?
by bliako (Abbot) on Jul 03, 2020 at 13:18 UTC |