:snap: v. To replace a pointer to a pointer with a direct pointer;
to replace an old address with the forwarding address found there.
If you telephone the main number for an institution and ask for a
particular person by name, the operator may tell you that person's
extension before connecting you, in the hopes that you will `snap
your pointer' and dial direct next time. The underlying metaphor
may be that of a rubber band stretched through a number of
intermediate points; if you remove all the thumbtacks in the
middle, it snaps into a straight line from first to last. See
{chase pointers}.
Often, the behavior of a {trampoline} is to perform an error
check once and then snap the pointer that invoked it so as
henceforth to bypass the trampoline (and its one-shot error check).
In this context one also speaks of `snapping links'. For
example, in a LISP implementation, a function interface trampoline
might check to make sure that the caller is passing the correct
number of arguments; if it is, and if the caller and the callee are
both compiled, then snapping the link allows that particular path
to use a direct procedure-call instruction with no further
overhead.
-- The AI Hackers Dictionary
to replace an old address with the forwarding address found there.
If you telephone the main number for an institution and ask for a
particular person by name, the operator may tell you that person's
extension before connecting you, in the hopes that you will `snap
your pointer' and dial direct next time. The underlying metaphor
may be that of a rubber band stretched through a number of
intermediate points; if you remove all the thumbtacks in the
middle, it snaps into a straight line from first to last. See
{chase pointers}.
Often, the behavior of a {trampoline} is to perform an error
check once and then snap the pointer that invoked it so as
henceforth to bypass the trampoline (and its one-shot error check).
In this context one also speaks of `snapping links'. For
example, in a LISP implementation, a function interface trampoline
might check to make sure that the caller is passing the correct
number of arguments; if it is, and if the caller and the callee are
both compiled, then snapping the link allows that particular path
to use a direct procedure-call instruction with no further
overhead.
-- The AI Hackers Dictionary
Related:
- snap v.
To replace a pointer to a pointer with a direct
pointer;
to replace an old address with the forwarding address... - swizzle: v. To convert external names, array indices,
or references within a data structure into address... - chase pointers: 1. vi. To go through multiple levels of
indirection,
as in traversing a linked list or graph structure.... - vaxocentrism /vak`soh-sen'trizm/ n.
[analogy with
`ethnocentrism'] A notional disease said to afflict C programmers
who persist in coding according to certain assumptions that are
valid (esp.
under Unix) on VAXen but false elsewhere. Among ... - swizzle v.
To convert external names, array indices,
or references within a data structure into address... - handle: n. 1. [from CB slang] An electronic pseudonym;
a `nom de guerre' intended to conceal the user's... - handle n.
1. [from CB slang] An electronic pseudonym;
a `nom de guerre' intended to conceal the user's... - dangling pointer: n. A reference that doesn't actually lead
anywhere (in C and some other languages,
a pointer that doesn't actually point at anything... - aliasing bug: n. A class of subtle programming errors that can
arise in code that does dynamic allocation,
esp. via `malloc(3)' or equivalent. If several...
