Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The only data structure you need

Name: Anonymous 2011-11-02 1:33


+-------+-------+
|       |       |
|  car  |  cdr  |
|       |       |
+-------+-------+

Name: Anonymous 2011-11-02 3:19

'>storing strings in memory as car/cudder pairs
ISHYGDDT

Name: FrozenVoid 2011-11-02 3:23

>>1
The only TRUE UNIVERSAL DATA STRUCTURE
void* pointer
Everything else can be accessed with careful use of void* since it can address raw memory/structs/arrays/list/multimaps/devices

Name: Anonymous 2011-11-02 3:55

>>1
not optimized for modern CPUs

>>3
segmentation faults

Name: Anonymous 2011-11-02 6:20

#define MEMORY_SIZE (640 * 1024)

union cell {
  int num;
  float flo;
  void* ptr;
};

union cell mem[MEMORY_SIZE];

Name: Anonymous 2011-11-02 6:27

>>5
mem[MEMORY_SIZE*2]
what now faggot

Name: Anonymous 2011-11-02 11:40

>>5
needs another void*

>>2
Actually PicoLisp does this. It also uses cells for bignums (which are the only number type). This means it can be hyperoptimized for cells. http://software-lab.de/doc/ref.html#cell

Name: Anonymous 2011-11-02 12:50

>>1-7,9-1000
Lisp is shit.

Don't change these.
Name: Email:
Entire Thread Thread List