Codish Lexicon
One word for one meaning, One meaning for one word,
Symmetric opposites, Comprehensive classes.
A dictionary of computer programming names.
repl — read, eval, print loop. a cli for a programming language, where each command is read from the tty and evaluated, and the result is printed until the user breaks the loop. a {repl} usually provides a line editor, so characters from the user are not sent directly to the evaluator. is: cli related: cli ✍
cli — command line user interface. a user interface that includes a message buffer (often reviewable via scrolling), where commands are accepted at the bottom, after a prompt, with an editable string line, after which the results of each command are displayed. related: gui, repl aka: command line interface classes: repl is: ui mentioned: tty ✍
read
— to acquire text of chars or arrays of bytes from a stream. opposite: write python: file: read([size])
eval
— evaluate. returns the value of an expression. inverse: repr related: exec python: eval(source[, globals[, locals]])
print — perl: [stream]: output a list to a filehandle† php: output a string &dagger. distinct: log mentioned: repl ✍
tty — a terminal, classically a "teletype" terminal (thus the acronym {tty}) but usually emulated. {tty}s are particularly suited for clis, but some applications on some terminals can move the cursor, change colors, and draw over the entire screen. aka: terminal is: ui mentioned: repl ✍
char — a character in text, associated with a codepoint number of arbitrary precision, albeit from the ascii, unicode, or any other charset. a transitive function that coerces numbers and chars to chars. c: often stored in a wchar_t int class. aka: character, chr distinct: byte, character classes: letter ✍
| charset | bit length |
|---|---|
| ascii | 7 |
| eascii | 8 |
| ucs2 | 16 |
| ucs4 | 32 |
| utf8 | 8-32 |
| utf16 | 16-32 |
string — an ordered, though not sorted, collection of characters. is: linear collection seuss: text aka: word ✍
write
— to send an ordered collection of values (usually a text of chars or an array of bytes) to a stream. distinct: send opposite: read related: flush python: file: write(str)
array — an ordered linear collection implementation that employs a region of contiguous memory where each value is stored at an index offset from the beginning of the memory region. a linear collection that provides fast random access and iteration to its values with get, set, and iter. php: create an array &dagger. related: chain interface: linear collection, ordered ✍
byte — an 8 bit int. c: called char. distinct: char is: int mentioned: hex, radix64, read line, read, write ✍
stream — a source or target for an ordered progression of values, usually characters in text by way of read and write. input streams are iterable. is: iteration ✍
file
— a region of physical memory, moderated by the os, that contains text that one can read, write, and exec. python: file(name[, mode[, buffering]])
open
— to create a stream so one can read or write a file. python: open(name[, mode[, buffering]])
pump — a process that assertively reads from one stream and echoes the values in order to another stream. ✍
read line — blocks a stream until a full line has been read. lines are terminated by either a record separator (like new line) or by a blocking read call that returns no characters or bytes. ✍
exec — execute. executes the statements of a program. see: eval perl: [process]: abandon this program to run another† php: execute an external program &dagger. distinct: bin related: eval aka: run mentioned: apply, atomic, continuation, control flow, file, raise, return, shell ✍
run — to start and continue until a stop. see: exec, eval mentioned: boot, complexity function, program ✍
expression — an element of a program's syntax, typically used to express stateless computation through function application (apply), including algebraic operators. aka: term mentioned: destructure, eval, heap array, literal, lvalue, return, statement, whether ✍
repr
— a string representation of an object graph starting from a given object, possibly abbreviated, sometimes suitable for eval. inverse: eval ruby: inspect python: repr python: repr(object)
apply
— to eval or exec a function. this involves creating a frame, passing parameters to arguments, and evaluating or executing each statement in the function's block. aka: invoke python: apply(object[, args[, kwargs]])
return — a statement that stops the execution within a function, sending the cursor of execution to the function that applyed the current function, and providing a value for the apply expression. perl: [control flow]: get out of a function early† php: If called from within a function, the return() statement immediately ends execution of the current function, and returns its argument as the value of the function call. return() will also end the execution of an eval() statement or script file. &dagger. mentioned: cut, empty, frame, group, higher order function, idempotent, iteration, whether ✍
statement — an element of a program's syntax that may express stateful operations like assignment, control flow like if and while, or the evaluation of an expression. mentioned: apply, block, control flow, exec, lvalue, return ✍
log — logarithm. opposite: exp is: exponential distinct: print perl: [number]: retrieve the natural logarithm for a number† php: natural logarithm &dagger. mentioned: linear logarithmic time, logarithmic time, magnitude, non polynomial time ✍
letter — a char from an alphabet, as opposed to a numeric glyph or idiogram among other classes of character. is: char mentioned: case, lexicographic, lower, radix36, radix64, space, upper ✍
character — a person in a story or game, albeit an automated "non-player character" or npc. distinct: char see: char mentioned: machine, stream ✍
chr
— see: char python: chr(i)
codepoint — a number that corresponds to a glyph in the unicode table. a transitive function that converts a character to its corresponding codepoint. aka: ord aka: code related: unicode mentioned: charset, font ✍
number — concept: a whole, natural, integer, real, or complex numeric value. a transitive function that returns the corresponding number, usually limited to a subset of the real domain like int or float. ✍
unicode
— related: codepoint python: unicode(string [, encoding[, errors]])
charset — a transitive function of codepoint numbers to corresponding glyphs. aka: encoding mentioned: char ✍
transitive function — concept: a unary function that consistently returns the corresponding value in a range for a given key in a domain. distinct: relation, binary relation, transitive relation ✍
int
— a magnitude-limited integer. a constructor or transitive function for an integer type that may convert strings to integers in a given radix or default to 10, or round floating point or decimal numbers with floor. a linear ordered collection of bits of fixed length. if iterating an integer as a bit vector is supported by a language, it starts from the little end, the lowest magnitude, bit 0. related: floor, ceil classes: nyble, byte, signed, unsigned, int16, int32, int64, uint16, uint32, uint64 python: int(x[, base])
©2009 Kris Kowal
Codish Lexicon by Kris Kowal is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
