|
Terms and general categories in
þ are described on this page.
vectors
A vector in þ is an array with physically contiguous elements, and is generally denoted with a suffix of v (for vector). The term array however means a possibly discontiguous scatter/gather sequence of elements denoted with suffix a (for array). So array and vector are synonymous, but vector is more specific, implying contiguity. In practice, arrays and vectors are different physical representations, but array internals are likely to use contiguous vectors for component scatter/gather parts. A class suffix of v means "I'm a C vector" and a suffix of a means "I'm accessed by array index, but I'm generally discontiguous." |
menu
thorn: todo, names, fd, iovec, assert, log, run, hex, crc, buf, in, out, quote, escape, compare, file, deck, cow, arc, blob, tree, slice, rand, time, stat, hash, heap, node, primes, page, book, pile, stack, atomic, lock, mutex, thread, map, meter, list, iter, ctype (mu: toy, peg, imm, tag, box, symbol, token, number, bigint, class, method, reader, writer, eval, env, vm, gc, world, pcode, compiler, asm, lathe, lisp, smalltalk, design, weight, jar, card, harp, debug, profile) Some demos are stubs: todo is a demo guide. See toy for mu updates on language pages; names introduces naming schemes. Definitions of ideas are useful but somewhat double-edged in a sense one has trouble using a word in a more general sense after defining a more specific one. So these terms are only applicable in passages trying to emphasize specific precise distinctions. For example, most of the time "array" and "vector" mean the same thing, as synonyms — they only differ when opposing one against another to specify contiguity. |