Þ   briarpig  » thorn  » demos  » cow


demos are explained here; a menu at top column right indexes actual topic demos. Here we demo copy-on-write (aka cow).

problem

     In some representations of data, Wil wants to share common parts among more than one object, up until a part is written. This permits shallow copies acting like deep copies, without space costs of total copies until an attempt is made to modify content. And even then, only parts that get changed need new copies. This sort of technique is commonly called copy-on-write since it involves lazy copy triggered by update.

A submenu for demos appears below, letting you go to the page on a topic written as a demo (as the demos page defines it).

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.

stub

     Most of this page is a stub since the page has only been started and not completed. (See todo.)