in reply to Re^2: Managing C library memory in XS
in thread Managing C library memory in XS
I would go so far as to predict rather-emphatically that it wouldn’t. And, in any case, it would be highly dependent upon (read: “would introduce a whale of a dependency upon ...”) the exact internal implementations of that library. Warning-bells going off all over the place here.
Also worth heavy consideration here is the temporal issue: having been given a live memory-address, how long is that address actually going to be “good?” Your Perl app could now potentially modify (read: “muck around with”) that memory at any future-time. How predictably-stable do we consider that situation to be? In other words, how bad are the nasty-bugs going to be, if when they start to occur? These are design considerations that, to my way of thinking, absolutely overwhelm most all other concerns most of the time. So to speak, “I don’t really care if it screws-up ‘very quickly.’ ” I care that the solution is robust and thoroughly diagnosable. (And yes, it depends entirely upon the library.)
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Managing C library memory in XS
by petermogensen (Sexton) on May 05, 2014 at 18:55 UTC |