|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 20-Jul-2006 | - |
| PLUGIN/ | H | 07-May-2022 | - | 11 | 4 |
| arrays/ | H | 20-Jul-2006 | - | 1,671 | 833 |
| bitsets/ | H | 20-Jul-2006 | - | 4,847 | 2,874 |
| buffers/ | H | 20-Jul-2006 | - | 2,873 | 1,991 |
| bugs/ | H | 20-Jul-2006 | - | 625 | 291 |
| char/ | H | 20-Jul-2006 | - | 3,149 | 1,673 |
| cmd/ | H | 20-Jul-2006 | - | 1,097 | 611 |
| dynid/ | H | 20-Jul-2006 | - | 212 | 117 |
| edit/ | H | 20-Jul-2006 | - | 13 | 6 |
| edstrings/ | H | 20-Jul-2006 | - | 370 | 265 |
| fmt/ | H | 20-Jul-2006 | - | 5,585 | 4,306 |
| fs/ | H | 20-Jul-2006 | - | 1,112 | 605 |
| graphs/ | H | 20-Jul-2006 | - | 1,047 | 745 |
| handles/ | H | 20-Jul-2006 | - | 240 | 136 |
| hash/ | H | 20-Jul-2006 | - | 2,725 | 1,372 |
| identifiers/ | H | 20-Jul-2006 | - | 1,144 | 803 |
| libboot/ | H | 20-Jul-2006 | - | 10 | 3 |
| libboot2/ | H | 20-Jul-2006 | - | 10 | 3 |
| libhackerlab/ | H | 20-Jul-2006 | - | 1,488 | 1,183 |
| machine/ | H | 20-Jul-2006 | - | 459 | 308 |
| mem/ | H | 20-Jul-2006 | - | 1,096 | 497 |
| oblists/ | H | 20-Jul-2006 | - | 1,014 | 731 |
| obmarkers/ | H | 20-Jul-2006 | - | 641 | 469 |
| obqueues/ | H | 20-Jul-2006 | - | 922 | 723 |
| obtables/ | H | 20-Jul-2006 | - | 447 | 280 |
| os/ | H | 20-Jul-2006 | - | 1,036 | 324 |
| properties/ | H | 20-Jul-2006 | - | 332 | 220 |
| qlinks/ | H | 20-Jul-2006 | - | 123 | 68 |
| rx/ | H | 20-Jul-2006 | - | 8,533 | 4,470 |
| rx-posix/ | H | 20-Jul-2006 | - | 8,580 | 5,688 |
| rx-xml/ | H | 20-Jul-2006 | - | 3,750 | 2,581 |
| sb/ | H | 20-Jul-2006 | - | 219 | 165 |
| sort/ | H | 20-Jul-2006 | - | 357 | 187 |
| splay/ | H | 20-Jul-2006 | - | 1,387 | 588 |
| strings/ | H | 20-Jul-2006 | - | 5,164 | 3,650 |
| tests/ | H | 20-Jul-2006 | - | 198,069 | 194,143 |
| uni/ | H | 20-Jul-2006 | - | 2,286 | 1,069 |
| unicode/ | H | 20-Jul-2006 | - | 3,525 | 1,981 |
| unidata/ | H | 20-Jul-2006 | - | 13,087 | 11,196 |
| unidata-scaffolding/ | H | 03-May-2022 | - | 1,227 | 967 |
| vu/ | H | 20-Jul-2006 | - | 9,357 | 5,605 |
| vu-network/ | H | 20-Jul-2006 | - | 2,161 | 1,427 |
| xml/ | H | 20-Jul-2006 | - | 145 | 48 |
| xml-scaffolding/ | H | 20-Jul-2006 | - | 221 | 168 |
| =README | H A D | 20-Jul-2006 | 4.2 KiB | 97 | 75 |
| =feature-map | H A D | 20-Jul-2006 | 1 KiB | 75 | 53 |
| COPYING | H A D | 20-Jul-2006 | 18 KiB | 354 | 290 |
| ChangeLog | H A D | 20-Jul-2006 | 21 KiB | 409 | 389 |
| Makefile.in | H A D | 20-Jul-2006 | 765 | 58 | 44 |
=README
1
2 The hackerlab C Library
3
4Standard `libc' is a drag. Use this instead.
5
6Some notable subcomponents:
7
8The `os' module provides a portable interface to those low-level parts
9of `libc' that can't be avoided.
10
11`mem' provides replacements for `memcpy' and friends. It provides an
12allocation interface layered on top of `malloc' that let's you write
13library routines that: (a) are agnostic as to whether malloc failures
14cause the program to stop or the function to return an error, (b) are able
15to partition allocations into separate pools (e.g., to trigger GC for
16some kinds of allocation but not others), (c) have lots of annoying
17extra parameters to get used to.
18
19`arrays' lets you allocate chunks of memory that can tell you how
20large they are ("variable size arrays"). It also has a module for
21huge but sparse arrays (a little unicode, anyone?).
22
23`bitsets' has an exhaustive supply of `bitset' functions and, also,
24some modules for huge but sparse bitset arrays (a little more unicode,
25anyone?).
26
27`cmd' is moving towards a `getopt' replacement. It's already nicer
28than `getopt', but there's more to do.
29
30`fs' provides some file-name manipulation functions. Since gaining
31experience with this API, I've decided that it's completely wrong.
32
33`hash' provides an in-core hash-table module which is not optimal in
34either space or time, but not too bad in either, either -- so it makes
35a good default choice when you don't have any specific requirements
36beyond "a hash table". The API needs some work. `hash' also has some
37functions for computing hash values. More are needed.
38
39`rx', `rx-posix', and `rx-xml' are the best regular expression and
40regexp libraries on earth (supporting both 8-bit and Unicode
41characters). So there.
42
43`sb' is a program (kind of odd for a library) which is like simplified
44`cat', except that it can read and write from unix and internet
45sockets, acting as either client or server. (This program is included
46with the library since at one time, it was used by the build process.
47I don't think it is anymore and this program might eventually move to
48another package.) A neat thing about this program is its simplicity.
49Because it uses the hackerlab C library, and in particular `cmd' and
50`VU', `sb' is all of 189 lines long (last I checked). (NOTE: the `sb'
51program has been "unplugged", meaning that it is not built or
52installed by default. If you reall want it, rename sb/UNPLUGGED to
53sb/PLUGIN though be aware that careless use of sb can lead to security
54issues (since it can be told to behave as a promiscuous internet
55server).).
56
57`str' is a string library to replace the `str*' functions in `libc'.
58After gaining some experience, I've decided that this API has its
59strong points, but also has its problems. More functions and some
60changes to existing functions are needed.
61
62`uni', `unicode', and `unidata' are the first steps towards a nice
63`unicode' library, run-time agnostic with respect to coding system and
64written in sublimely classical `C' style. There's much more to add,
65though.
66
67`vu' is a virtual file system interface. It provides all of the file
68system functions, but with a layer of indirection so that processes
69can define per-process file-system semantics. You can "stack" the
70handlers for a particular descriptor. One of the stackable handlers
71is a buffering package that replaces `stdio'. `vu' is awesome.
72There's a *little bit* more to do to make it perfect.
73
74`vu-network' extends the file system namespace with handlers for
75(non-standard) URLs for unix and internet domain sockets.
76
77Still needed are: more data structures, especially for (attributed and
78structured) text processing; better string functions; a `find'-like
79file system walker; a generic module for parsing input into fields;
80better support for temporary files; more for sorting and related
81functions, both in-core and disk-resident; disk-resident hash tables;
82a reader and writer for Scheme-like data structures; a GC-based
83implementation of Scheme-like data structures; a couple of VM
84implementations, covering signifcant space/time/complexity trade-offs
85in the VM design space. Probably some other things I've forgotten at
86the moment.
87
88
89Have fun,
90Tom Lord
91
92Report bugs, ask for help, offer money, or volunteer to help by
93writing "lord@regexps.com".
94
95# tag: Tom Lord Thu Jan 10 02:57:12 2002 (hackerlab/=README)
96#
97