Hex Artifact Content

Artifact 1aa7b38b5d6b55c30e7016e0cfc411916fc349df:


0000: 41 62 6f 75 74 20 50 69 63 6f 6c 0a 52 69 63 68  About Picol.Rich
0010: 61 72 64 20 53 75 63 68 65 6e 77 69 72 74 68 2c  ard Suchenwirth,
0020: 20 32 30 30 37 2d 30 34 2d 30 36 0a 0a 50 69 63   2007-04-06..Pic
0030: 6f 6c 20 77 61 73 20 6f 72 69 67 69 6e 61 6c 6c  ol was originall
0040: 79 20 63 72 65 61 74 65 64 20 62 79 20 53 61 6c  y created by Sal
0050: 76 61 74 6f 72 65 20 53 61 6e 66 69 6c 69 70 70  vatore Sanfilipp
0060: 6f 20 69 6e 20 4d 61 72 63 68 20 32 30 30 37 2e  o in March 2007.
0070: 20 49 74 0a 69 73 20 61 20 73 6d 61 6c 6c 20 73   It.is a small s
0080: 63 72 69 70 74 69 6e 67 20 6c 61 6e 67 75 61 67  cripting languag
0090: 65 20 6d 6f 64 65 6c 65 64 20 63 6c 6f 73 65 6c  e modeled closel
00a0: 79 20 6f 6e 20 54 63 6c 20 28 54 6f 6f 6c 20 43  y on Tcl (Tool C
00b0: 6f 6d 6d 61 6e 64 0a 4c 61 6e 67 75 61 67 65 29  ommand.Language)
00c0: 2c 20 77 69 74 68 20 76 65 72 79 20 6c 69 74 74  , with very litt
00d0: 6c 65 20 65 66 66 6f 72 74 20 2d 20 53 61 6c 76  le effort - Salv
00e0: 61 74 6f 72 65 27 73 20 66 69 72 73 74 20 70 75  atore's first pu
00f0: 62 6c 69 73 68 65 64 20 76 65 72 73 69 6f 6e 0a  blished version.
0100: 68 61 64 20 6a 75 73 74 20 35 30 30 20 6c 69 6e  had just 500 lin
0110: 65 73 20 6f 66 20 43 20 63 6f 64 65 2e 20 4c 69  es of C code. Li
0120: 63 65 6e 73 65 20 69 73 20 42 53 44 2e 0a 0a 50  cense is BSD...P
0130: 69 63 6f 6c 20 69 73 20 6f 66 20 63 6f 75 72 73  icol is of cours
0140: 65 20 61 20 76 65 72 79 20 73 6d 61 6c 6c 20 6c  e a very small l
0150: 61 6e 67 75 61 67 65 2c 0a 61 6c 6c 6f 77 69 6e  anguage,.allowin
0160: 67 20 73 6f 20 66 61 72 20 6f 6e 6c 79 20 69 6e  g so far only in
0170: 74 65 67 65 72 20 61 72 69 74 68 6d 65 74 69 63  teger arithmetic
0180: 73 2c 20 61 6e 64 20 6c 61 63 6b 73 20 6d 61 6e  s, and lacks man
0190: 79 20 66 65 61 74 75 72 65 73 20 6f 66 20 22 62  y features of "b
01a0: 69 67 20 54 63 6c 22 2e 0a 49 6e 20 73 70 69 72  ig Tcl"..In spir
01b0: 69 74 20 69 74 20 69 73 20 63 6c 6f 73 65 20 74  it it is close t
01c0: 6f 20 70 72 65 2d 38 2e 30 20 54 63 6c 2c 20 77  o pre-8.0 Tcl, w
01d0: 68 65 72 65 20 65 76 65 72 79 20 76 61 6c 75 65  here every value
01e0: 20 77 61 73 20 69 6e 64 65 65 64 20 61 0a 73 74   was indeed a.st
01f0: 72 69 6e 67 2c 20 61 6e 64 20 5b 65 78 70 72 20  ring, and [expr 
0200: 24 61 2b 24 62 5d 20 77 6f 75 6c 64 20 72 65 71  $a+$b] would req
0210: 75 69 72 65 20 74 77 6f 20 61 74 6f 69 28 29 20  uire two atoi() 
0220: 73 63 61 6e 73 20 61 6e 64 20 61 6e 6f 74 68 65  scans and anothe
0230: 72 0a 73 70 72 69 6e 74 66 28 29 20 66 6f 72 6d  r.sprintf() form
0240: 61 74 74 69 6e 67 2e 20 41 6c 73 6f 2c 20 61 72  atting. Also, ar
0250: 72 61 79 73 20 61 72 65 20 6e 6f 74 20 73 75 70  rays are not sup
0260: 70 6f 72 74 65 64 20 69 6e 20 50 69 63 6f 6c 2e  ported in Picol.
0270: 0a 0a 48 61 76 69 6e 67 20 75 73 65 64 20 54 63  ..Having used Tc
0280: 6c 2f 54 6b 20 66 6f 72 20 61 62 6f 75 74 20 74  l/Tk for about t
0290: 65 6e 20 79 65 61 72 73 2c 20 61 6e 64 20 43 20  en years, and C 
02a0: 65 76 65 6e 20 6c 6f 6e 67 65 72 2c 20 49 20 73  even longer, I s
02b0: 74 69 6c 6c 20 6e 65 76 65 72 0a 6c 6f 6f 6b 65  till never.looke
02c0: 64 20 6d 75 63 68 20 61 74 20 74 68 65 20 43 20  d much at the C 
02d0: 73 69 64 65 20 6f 66 20 74 68 65 20 54 63 6c 20  side of the Tcl 
02e0: 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 2e 20  implementation. 
02f0: 4d 61 6e 79 20 74 68 69 6e 67 73 20 77 65 72 65  Many things were
0300: 0a 69 6e 74 72 6f 64 75 63 65 64 20 69 6e 20 74  .introduced in t
0310: 68 61 74 20 74 69 6d 65 3a 20 62 79 74 65 63 6f  hat time: byteco
0320: 64 65 20 63 6f 6d 70 69 6c 61 74 69 6f 6e 2c 20  de compilation, 
0330: 55 6e 69 63 6f 64 65 20 73 75 70 70 6f 72 74 2e  Unicode support.
0340: 2e 2e 0a 6c 65 61 64 69 6e 67 20 74 6f 20 61 20  ...leading to a 
0350: 63 6f 64 65 20 62 61 73 65 20 6f 66 20 63 6f 6e  code base of con
0360: 73 69 64 65 72 61 62 6c 65 20 63 6f 6d 70 6c 65  siderable comple
0370: 78 69 74 79 2e 20 49 20 73 65 74 74 6c 65 64 20  xity. I settled 
0380: 66 6f 72 20 6c 65 74 74 69 6e 67 0a 74 68 65 20  for letting.the 
0390: 6d 61 69 6e 74 61 69 6e 65 72 73 20 64 6f 69 6e  maintainers doin
03a0: 67 20 74 68 65 69 72 20 6a 6f 62 2c 20 61 6e 64  g their job, and
03b0: 20 6d 65 20 62 65 69 6e 67 20 6a 75 73 74 20 61   me being just a
03c0: 20 22 63 6f 6e 73 75 6d 65 72 22 2e 0a 0a 4c 6f   "consumer"...Lo
03d0: 6f 6b 69 6e 67 20 61 74 20 74 68 65 20 73 6f 75  oking at the sou
03e0: 72 63 65 20 6f 66 20 50 69 63 6f 6c 20 28 69 74  rce of Picol (it
03f0: 20 69 73 20 69 6e 20 66 61 63 74 20 61 20 73 69   is in fact a si
0400: 6e 67 6c 65 20 66 69 6c 65 2c 20 70 69 63 6f 6c  ngle file, picol
0410: 2e 63 2c 0a 77 69 74 68 20 6e 6f 20 64 65 70 65  .c,.with no depe
0420: 6e 64 65 6e 63 69 65 73 20 6f 74 68 65 72 20 74  ndencies other t
0430: 68 61 6e 20 74 68 65 20 75 73 75 61 6c 20 73 74  han the usual st
0440: 64 69 6f 2f 73 74 64 6c 69 62 29 2c 20 49 20 66  dio/stdlib), I f
0450: 65 6c 74 20 74 68 61 74 0a 74 68 69 73 20 63 6f  elt that.this co
0460: 64 65 20 77 61 73 20 74 72 61 6e 73 70 61 72 65  de was transpare
0470: 6e 74 20 65 6e 6f 75 67 68 20 66 6f 72 20 74 68  nt enough for th
0480: 65 20 6d 61 6e 20 69 6e 20 74 68 65 20 73 74 72  e man in the str
0490: 65 65 74 2e 20 49 20 63 6f 75 6c 64 0a 75 6e 64  eet. I could.und
04a0: 65 72 73 74 61 6e 64 20 74 68 65 20 61 72 63 68  erstand the arch
04b0: 69 74 65 63 74 75 72 65 20 28 65 78 63 65 70 74  itecture (except
04c0: 20 6d 61 79 62 65 20 66 6f 72 20 74 68 65 20 70   maybe for the p
04d0: 61 72 73 65 72 20 3a 5e 29 20 61 6e 64 20 65 61  arser :^) and ea
04e0: 73 69 6c 79 0a 73 65 65 20 77 68 61 74 20 77 61  sily.see what wa
04f0: 73 20 67 6f 69 6e 67 20 6f 6e 2c 20 68 6f 77 20  s going on, how 
0500: 63 6f 6d 6d 61 6e 64 73 20 77 65 72 65 20 72 65  commands were re
0510: 67 69 73 74 65 72 65 64 20 61 6e 64 20 69 6d 70  gistered and imp
0520: 6c 65 6d 65 6e 74 65 64 2c 20 61 6e 64 0a 73 6f  lemented, and.so
0530: 20 6f 6e 2e 0a 0a 54 68 65 20 65 78 65 63 75 74   on...The execut
0540: 61 62 6c 65 20 63 61 6e 2c 20 6c 69 6b 65 20 74  able can, like t
0550: 63 6c 73 68 2c 20 72 75 6e 20 65 69 74 68 65 72  clsh, run either
0560: 20 69 6e 74 65 72 61 63 74 69 76 65 6c 79 2c 20   interactively, 
0570: 77 68 65 72 65 20 79 6f 75 20 74 79 70 65 0a 63  where you type.c
0580: 6f 6d 6d 61 6e 64 73 20 74 6f 20 61 20 70 72 6f  ommands to a pro
0590: 6d 70 74 20 61 6e 64 20 77 61 74 63 68 20 74 68  mpt and watch th
05a0: 65 20 72 65 73 70 6f 6e 73 65 2c 20 6f 72 20 69  e response, or i
05b0: 6e 20 22 62 61 74 63 68 20 6d 6f 64 65 22 2c 20  n "batch mode", 
05c0: 77 68 65 6e 20 61 0a 73 63 72 69 70 74 20 69 73  when a.script is
05d0: 20 73 70 65 63 69 66 69 65 64 20 6f 6e 20 74 68   specified on th
05e0: 65 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e 65 2e 20  e command line. 
05f0: 53 61 6c 76 61 74 6f 72 65 27 73 20 6f 72 69 67  Salvatore's orig
0600: 69 6e 61 6c 20 76 65 72 73 69 6f 6e 0a 68 61 64  inal version.had
0610: 20 6a 75 73 74 20 65 69 67 68 74 20 63 6f 6d 6d   just eight comm
0620: 61 6e 64 73 3a 20 70 72 6f 63 2c 20 70 75 74 73  ands: proc, puts
0630: 2c 20 69 66 2c 20 77 68 69 6c 65 2c 20 62 72 65  , if, while, bre
0640: 61 6b 2c 20 63 6f 6e 74 69 6e 75 65 2c 20 61 6e  ak, continue, an
0650: 64 0a 72 65 74 75 72 6e 2c 20 69 6e 20 61 64 64  d.return, in add
0660: 69 74 69 6f 6e 20 74 6f 20 61 62 6f 75 74 20 74  ition to about t
0670: 65 6e 20 61 72 69 74 68 6d 65 74 69 63 20 61 6e  en arithmetic an
0680: 64 20 63 6f 6d 70 61 72 69 73 6f 6e 20 6f 70 65  d comparison ope
0690: 72 61 74 6f 72 73 20 61 73 0a 6b 6e 6f 77 6e 20  rators as.known 
06a0: 66 72 6f 6d 20 5b 65 78 70 72 5d 2c 20 6f 72 20  from [expr], or 
06b0: 65 73 70 65 63 69 61 6c 6c 79 20 4c 49 53 50 2e  especially LISP.
06c0: 0a 0a 53 61 6c 76 61 74 6f 72 65 20 64 65 63 69  ..Salvatore deci
06d0: 64 65 64 20 6e 6f 74 20 74 6f 20 69 6d 70 6c 65  ded not to imple
06e0: 6d 65 6e 74 20 5b 65 78 70 72 5d 2c 20 77 69 74  ment [expr], wit
06f0: 68 20 69 74 73 20 6f 77 6e 20 6c 69 74 74 6c 65  h its own little
0700: 20 6c 61 6e 67 75 61 67 65 0a 77 69 74 68 20 69   language.with i
0710: 6e 66 69 78 20 6f 70 65 72 61 74 6f 72 73 2c 20  nfix operators, 
0720: 77 68 69 74 65 73 70 61 63 65 20 62 65 69 6e 67  whitespace being
0730: 20 6d 6f 73 74 6c 79 20 72 65 64 75 6e 64 61 6e   mostly redundan
0740: 74 2c 20 61 6e 64 20 66 28 24 78 2c 24 79 29 0a  t, and f($x,$y).
0750: 6e 6f 74 61 74 69 6f 6e 20 66 6f 72 20 66 75 6e  notation for fun
0760: 63 74 69 6f 6e 73 2e 20 50 69 63 6f 6c 20 73 74  ctions. Picol st
0770: 69 6c 6c 20 64 6f 65 73 20 6f 6e 6c 79 20 69 6e  ill does only in
0780: 74 65 67 65 72 20 6d 61 74 68 2c 20 61 6e 64 0a  teger math, and.
0790: 63 6f 6d 70 61 72 69 73 6f 6e 20 6f 70 65 72 61  comparison opera
07a0: 74 6f 72 73 20 61 72 65 20 61 6c 73 6f 20 6c 69  tors are also li
07b0: 6d 69 74 65 64 20 74 6f 20 69 6e 74 65 67 65 72  mited to integer
07c0: 73 2e 20 49 6e 20 64 6f 69 6e 67 20 5b 69 66 5d  s. In doing [if]
07d0: 20 61 6e 64 0a 5b 77 68 69 6c 65 5d 20 68 65 20   and.[while] he 
07e0: 64 65 76 69 61 74 65 64 20 66 72 6f 6d 20 74 68  deviated from th
07f0: 65 20 54 63 6c 20 70 72 61 63 74 69 63 65 20 74  e Tcl practice t
0800: 68 61 74 20 74 68 65 20 63 6f 6e 64 69 74 69 6f  hat the conditio
0810: 6e 20 61 72 67 75 6d 65 6e 74 73 0a 61 72 65 20  n arguments.are 
0820: 69 6e 20 5b 65 78 70 72 5d 20 73 79 6e 74 61 78  in [expr] syntax
0830: 2c 20 62 75 74 20 72 61 74 68 65 72 20 73 63 72  , but rather scr
0840: 69 70 74 73 20 6c 69 6b 65 20 65 76 65 72 79 74  ipts like everyt
0850: 68 69 6e 67 20 65 6c 73 65 2e 0a 0a 54 68 69 73  hing else...This
0860: 20 68 6f 77 65 76 65 72 20 6d 65 61 6e 74 20 74   however meant t
0870: 68 61 74 20 50 69 63 6f 6c 20 69 73 20 61 6e 20  hat Picol is an 
0880: 69 6e 63 6f 6d 70 61 74 69 62 6c 65 20 64 69 61  incompatible dia
0890: 6c 65 63 74 20 6f 66 20 54 63 6c 20 2d 0a 69 74  lect of Tcl -.it
08a0: 20 69 73 20 73 69 6d 69 6c 61 72 20 69 6e 20 6d   is similar in m
08b0: 61 6e 79 20 72 65 73 70 65 63 74 73 2c 20 62 75  any respects, bu
08c0: 74 20 74 68 65 20 64 69 66 66 65 72 65 6e 74 20  t the different 
08d0: 69 6e 74 65 72 66 61 63 65 73 20 66 6f 72 20 74  interfaces for t
08e0: 68 65 0a 66 72 65 71 75 65 6e 74 6c 79 20 75 73  he.frequently us
08f0: 65 64 20 5b 69 66 5d 20 61 6e 64 20 5b 77 68 69  ed [if] and [whi
0900: 6c 65 5d 20 63 6f 6d 6d 61 6e 64 73 20 65 78 63  le] commands exc
0910: 6c 75 64 65 64 20 74 68 65 20 70 6f 73 73 69 62  luded the possib
0920: 69 6c 69 74 79 20 74 68 61 74 0a 6e 6f 6e 2d 74  ility that.non-t
0930: 72 69 76 69 61 6c 20 50 69 63 6f 6c 20 73 63 72  rivial Picol scr
0940: 69 70 74 73 20 63 6f 75 6c 64 20 72 75 6e 20 69  ipts could run i
0950: 6e 20 74 63 6c 73 68 20 6f 72 20 76 69 63 65 2d  n tclsh or vice-
0960: 76 65 72 73 61 2e 0a 0a 53 74 69 6c 6c 2c 20 50  versa...Still, P
0970: 69 63 6f 6c 20 66 61 73 63 69 6e 61 74 65 64 20  icol fascinated 
0980: 6d 65 20 2d 20 6e 6f 74 20 61 73 20 61 20 74 6f  me - not as a to
0990: 6f 6c 20 66 6f 72 20 73 65 72 69 6f 75 73 20 77  ol for serious w
09a0: 6f 72 6b 2c 20 6a 75 73 74 20 61 73 20 61 6e 0a  ork, just as an.
09b0: 65 64 75 63 61 74 69 6f 6e 61 6c 20 74 6f 79 2e  educational toy.
09c0: 20 22 43 61 6d 65 6c 6f 74 21 2e 2e 2e 20 49 74   "Camelot!... It
09d0: 27 73 20 61 20 6d 6f 64 65 6c 2e 22 20 49 20 62  's a model." I b
09e0: 65 67 61 6e 20 74 6f 20 6d 69 73 73 20 66 65 61  egan to miss fea
09f0: 74 75 72 65 73 0a 66 72 6f 6d 20 74 63 6c 73 68  tures.from tclsh
0a00: 2c 20 6c 69 6b 65 20 6c 65 61 76 69 6e 67 20 74  , like leaving t
0a10: 68 65 20 69 6e 74 65 72 70 72 65 74 65 72 20 77  he interpreter w
0a20: 69 74 68 20 5b 65 78 69 74 5d 2c 20 73 6f 20 74  ith [exit], so t
0a30: 68 65 20 66 69 72 73 74 20 74 68 69 6e 67 0a 49  he first thing.I
0a40: 20 64 69 64 20 77 61 73 20 74 6f 20 69 6d 70 6c   did was to impl
0a50: 65 6d 65 6e 74 20 61 6e 20 65 78 69 74 20 63 6f  ement an exit co
0a60: 6d 6d 61 6e 64 2c 20 77 68 69 63 68 20 77 61 73  mmand, which was
0a70: 20 70 72 65 74 74 79 20 65 61 73 79 2e 20 57 68   pretty easy. Wh
0a80: 61 74 20 49 0a 61 6c 73 6f 20 6d 69 73 73 65 64  at I.also missed
0a90: 20 77 61 73 20 74 68 65 20 6f 6e 65 2d 61 72 67   was the one-arg
0aa0: 75 6d 65 6e 74 20 5b 67 65 74 73 5d 20 61 73 20  ument [gets] as 
0ab0: 73 69 6d 70 6c 65 73 74 20 77 61 79 20 74 6f 20  simplest way to 
0ac0: 69 6e 73 70 65 63 74 0a 76 61 72 69 61 62 6c 65  inspect.variable
0ad0: 73 20 69 6e 74 65 72 61 63 74 69 76 65 6c 79 2e  s interactively.
0ae0: 20 41 6e 64 20 61 63 63 65 73 73 20 74 6f 20 67   And access to g
0af0: 6c 6f 62 61 6c 20 76 61 72 69 61 62 6c 65 73 20  lobal variables 
0b00: 66 72 6f 6d 20 69 6e 73 69 64 65 0a 70 72 6f 63  from inside.proc
0b10: 73 2e 20 41 6e 64 20 61 20 5b 73 6f 75 72 63 65  s. And a [source
0b20: 5d 20 63 6f 6d 6d 61 6e 64 2e 20 41 6e 64 2e 2e  ] command. And..
0b30: 2e 20 79 6f 75 20 63 61 6e 20 67 75 65 73 73 20  . you can guess 
0b40: 77 68 61 74 20 68 61 70 70 65 6e 65 64 2e 0a 0a  what happened...
0b50: 49 20 62 65 63 61 6d 65 20 61 64 64 69 63 74 65  I became addicte
0b60: 64 20 77 69 74 68 20 50 69 63 6f 6c 2e 20 4e 65  d with Picol. Ne
0b70: 76 65 72 20 62 65 66 6f 72 65 20 69 6e 20 61 20  ver before in a 
0b80: 6c 6f 6e 67 20 74 69 6d 65 20 6f 66 20 63 6f 64  long time of cod
0b90: 69 6e 67 20 69 6e 20 43 0a 68 61 73 20 74 68 65  ing in C.has the
0ba0: 20 62 61 6e 67 2f 62 75 63 6b 20 72 61 74 69 6f   bang/buck ratio
0bb0: 20 62 65 65 6e 20 73 6f 20 68 69 67 68 2e 20 45   been so high. E
0bc0: 73 70 65 63 69 61 6c 6c 79 2c 20 73 74 61 6e 64  specially, stand
0bd0: 61 72 64 20 43 20 6c 69 62 72 61 72 69 65 73 0a  ard C libraries.
0be0: 6f 66 66 65 72 20 72 69 63 68 20 66 75 6e 63 74  offer rich funct
0bf0: 69 6f 6e 61 6c 69 74 79 20 74 68 61 74 20 63 61  ionality that ca
0c00: 6e 20 72 61 74 68 65 72 20 65 61 73 69 6c 79 20  n rather easily 
0c10: 62 65 20 6c 65 76 65 72 61 67 65 64 2e 20 46 6f  be leveraged. Fo
0c20: 72 0a 69 6e 73 74 61 6e 63 65 2c 20 6d 6f 73 74  r.instance, most
0c30: 20 6f 66 20 5b 63 6c 6f 63 6b 20 66 6f 72 6d 61   of [clock forma
0c40: 74 5d 20 69 73 20 61 76 61 69 6c 61 62 6c 65 20  t] is available 
0c50: 66 72 6f 6d 20 73 74 72 66 74 69 6d 65 28 29 2c  from strftime(),
0c60: 20 69 74 20 6a 75 73 74 0a 72 65 6d 61 69 6e 73   it just.remains
0c70: 20 74 6f 20 63 61 6c 6c 20 69 74 2e 20 4d 79 20   to call it. My 
0c80: 70 61 72 74 69 61 6c 20 69 6d 70 6c 65 6d 65 6e  partial implemen
0c90: 74 61 74 69 6f 6e 20 6f 66 20 5b 63 6c 6f 63 6b  tation of [clock
0ca0: 5d 20 70 72 6f 76 69 64 65 73 20 63 6c 6f 63 6b  ] provides clock
0cb0: 0a 63 6c 69 63 6b 73 7c 73 65 63 6f 6e 64 73 7c  .clicks|seconds|
0cc0: 66 6f 72 6d 61 74 2c 20 61 6c 6c 20 66 72 6f 6d  format, all from
0cd0: 20 31 38 20 6c 69 6e 65 73 20 6f 66 20 43 20 63   18 lines of C c
0ce0: 6f 64 65 2e 0a 0a 42 75 74 20 74 77 6f 20 74 68  ode...But two th
0cf0: 69 6e 67 73 20 62 6f 74 68 65 72 65 64 20 6d 65  ings bothered me
0d00: 3a 20 74 68 65 20 69 6e 63 6f 6d 70 61 74 69 62  : the incompatib
0d10: 69 6c 69 74 69 65 73 20 77 69 74 68 20 72 65 61  ilities with rea
0d20: 6c 20 54 63 6c 2c 20 61 6e 64 20 74 68 65 0a 6c  l Tcl, and the.l
0d30: 61 63 6b 20 6f 66 20 74 68 65 20 73 6f 20 70 6f  ack of the so po
0d40: 70 75 6c 61 72 20 6c 69 73 74 20 6f 70 65 72 61  pular list opera
0d50: 74 69 6f 6e 73 2e 20 46 6f 72 74 75 6e 61 74 65  tions. Fortunate
0d60: 6c 79 2c 20 6f 6e 20 47 6f 6f 64 20 46 72 69 64  ly, on Good Frid
0d70: 61 79 0a 32 30 30 37 2c 20 49 20 6d 61 6e 61 67  ay.2007, I manag
0d80: 65 64 20 74 6f 20 74 68 69 6e 6b 20 75 70 20 73  ed to think up s
0d90: 69 6d 70 6c 65 20 73 6f 6c 75 74 69 6f 6e 73 20  imple solutions 
0da0: 66 6f 72 20 62 6f 74 68 20 6f 66 20 74 68 65 6d  for both of them
0db0: 2e 20 57 68 65 72 65 20 69 6e 0a 54 63 6c 20 79  . Where in.Tcl y
0dc0: 6f 75 20 77 6f 75 6c 64 20 68 61 76 65 20 61 20  ou would have a 
0dd0: 63 6f 6e 64 69 74 69 6f 6e 20 61 73 20 65 78 70  condition as exp
0de0: 72 65 73 73 69 6f 6e 0a 20 20 20 20 69 66 20 7b  ression.    if {
0df0: 24 78 20 3c 20 30 7d 20 2e 2e 2e 0a 69 6e 20 50  $x < 0} ....in P
0e00: 69 63 6f 6c 20 79 6f 75 27 64 20 75 73 65 20 61  icol you'd use a
0e10: 20 73 68 6f 72 74 20 73 63 72 69 70 74 20 77 69   short script wi
0e20: 74 68 20 61 20 70 72 65 66 69 78 20 6f 70 65 72  th a prefix oper
0e30: 61 74 6f 72 3a 0a 20 20 20 20 69 66 20 7b 3c 20  ator:.    if {< 
0e40: 24 78 20 30 7d 20 2e 2e 2e 0a 77 68 69 63 68 20  $x 0} ....which 
0e50: 6c 6f 6f 6b 73 20 73 69 6d 69 6c 61 72 20 65 6e  looks similar en
0e60: 6f 75 67 68 2c 20 62 75 74 20 63 61 6e 27 74 20  ough, but can't 
0e70: 62 65 20 70 61 72 73 65 64 20 61 73 20 76 61 6c  be parsed as val
0e80: 69 64 20 65 78 70 72 65 73 73 69 6f 6e 20 62 79  id expression by
0e90: 0a 54 63 6c 2e 20 4f 6e 20 74 68 65 20 6f 74 68  .Tcl. On the oth
0ea0: 65 72 20 68 61 6e 64 2c 20 74 68 65 20 70 6f 73  er hand, the pos
0eb0: 73 69 62 6c 65 20 54 63 6c 20 6e 6f 74 61 74 69  sible Tcl notati
0ec0: 6f 6e 20 28 69 66 20 79 6f 75 20 68 61 76 65 20  on (if you have 
0ed0: 61 20 5b 3c 5d 0a 63 6f 6d 6d 61 6e 64 29 2c 0a  a [<].command),.
0ee0: 20 20 20 20 69 66 20 7b 5b 3c 20 24 78 20 30 5d      if {[< $x 0]
0ef0: 7d 20 2e 2e 2e 0a 77 6f 75 6c 64 20 62 65 20 64  } ....would be d
0f00: 6f 75 62 6c 65 2d 65 76 61 6c 75 61 74 65 64 20  ouble-evaluated 
0f10: 62 79 20 50 69 63 6f 6c 2c 20 6c 65 61 64 69 6e  by Picol, leadin
0f20: 67 20 74 6f 20 61 6e 20 65 72 72 6f 72 20 22 75  g to an error "u
0f30: 6e 6b 6e 6f 77 6e 20 63 6f 6d 6d 61 6e 64 0a 30  nknown command.0
0f40: 22 20 28 6f 72 20 22 31 22 29 2e 20 54 68 65 20  " (or "1"). The 
0f50: 73 6f 6c 75 74 69 6f 6e 20 49 20 63 61 6d 65 20  solution I came 
0f60: 75 70 20 77 69 74 68 20 6f 76 65 72 6e 69 67 68  up with overnigh
0f70: 74 20 77 61 73 20 74 6f 20 69 6e 74 72 6f 64 75  t was to introdu
0f80: 63 65 20 74 68 65 0a 65 6c 65 6d 65 6e 74 61 72  ce the.elementar
0f90: 79 20 69 64 65 6e 74 69 74 79 20 66 75 6e 63 74  y identity funct
0fa0: 69 6f 6e 2c 20 6c 69 6b 65 0a 20 20 20 20 70 72  ion, like.    pr
0fb0: 6f 63 20 49 20 78 20 7b 73 65 74 20 78 7d 0a 61  oc I x {set x}.a
0fc0: 6e 64 20 61 20 76 61 72 69 61 74 69 6f 6e 20 6f  nd a variation o
0fd0: 66 20 70 69 63 6f 6c 45 76 61 6c 20 77 68 69 63  f picolEval whic
0fe0: 68 20 6a 75 73 74 20 70 72 65 70 65 6e 64 73 20  h just prepends 
0ff0: 22 49 20 22 20 74 6f 20 74 68 65 20 69 6e 70 75  "I " to the inpu
1000: 74 0a 73 63 72 69 70 74 2c 20 61 6e 64 20 65 76  t.script, and ev
1010: 61 6c 75 61 74 65 73 20 74 68 61 74 2e 20 54 68  aluates that. Th
1020: 69 73 20 77 61 79 2c 20 62 6f 74 68 20 66 75 6e  is way, both fun
1030: 63 74 69 6f 6e 20 72 65 73 75 6c 74 73 20 61 6e  ction results an
1040: 64 0a 6e 75 6d 65 72 69 63 20 63 6f 6e 73 74 61  d.numeric consta
1050: 6e 74 73 20 63 6f 75 6c 64 20 65 61 73 69 6c 79  nts could easily
1060: 20 62 65 20 75 73 65 64 20 69 6e 20 54 63 6c 20   be used in Tcl 
1070: 73 79 6e 74 61 78 2c 20 61 6e 64 20 65 69 67 68  syntax, and eigh
1080: 74 20 6d 6f 72 65 0a 6c 69 6e 65 73 20 6f 66 20  t more.lines of 
1090: 63 6f 64 65 20 73 6f 6c 76 65 64 20 74 68 61 74  code solved that
10a0: 20 69 6e 63 6f 6d 70 61 74 69 62 69 6c 69 74 79   incompatibility
10b0: 20 70 72 6f 62 6c 65 6d 2e 0a 0a 46 72 6f 6d 20   problem...From 
10c0: 74 68 61 74 20 70 6f 69 6e 74 20 6f 6e 2c 20 49  that point on, I
10d0: 20 77 61 6e 74 65 64 20 74 6f 20 74 65 73 74 20   wanted to test 
10e0: 6d 79 20 50 69 63 6f 6c 20 74 65 73 74 20 73 75  my Picol test su
10f0: 69 74 65 20 77 69 74 68 20 74 63 6c 73 68 20 61  ite with tclsh a
1100: 73 0a 77 65 6c 6c 2c 20 6a 75 73 74 20 74 6f 20  s.well, just to 
1110: 6d 61 6b 65 20 73 75 72 65 20 74 68 61 74 20 74  make sure that t
1120: 68 65 20 74 77 6f 20 6c 61 6e 67 75 61 67 65 73  he two languages
1130: 20 64 6f 6e 27 74 20 64 69 76 65 72 67 65 2e 20   don't diverge. 
1140: 49 20 66 69 72 73 74 0a 64 69 64 20 74 68 69 73  I first.did this
1150: 20 62 79 20 68 61 6e 64 2c 20 62 75 74 20 76 65   by hand, but ve
1160: 72 79 20 73 6f 6f 6e 20 67 6f 74 20 74 68 65 20  ry soon got the 
1170: 69 64 65 61 20 74 68 61 74 20 61 20 6d 69 6e 69  idea that a mini
1180: 6d 61 6c 20 5b 65 78 65 63 5d 20 69 73 0a 66 65  mal [exec] is.fe
1190: 61 73 69 62 6c 65 20 66 6f 72 20 50 69 63 6f 6c  asible for Picol
11a0: 20 74 6f 6f 2c 20 73 6f 20 68 65 72 65 27 73 20   too, so here's 
11b0: 77 68 61 74 20 49 20 63 6f 64 65 64 3a 0a 0a 69  what I coded:..i
11c0: 6e 74 20 70 69 63 6f 6c 43 6d 64 45 78 65 63 28  nt picolCmdExec(
11d0: 73 74 72 75 63 74 20 70 69 63 6f 6c 49 6e 74 65  struct picolInte
11e0: 72 70 20 2a 69 2c 20 69 6e 74 20 61 72 67 63 2c  rp *i, int argc,
11f0: 20 63 68 61 72 20 2a 2a 61 72 67 76 2c 20 76 6f   char **argv, vo
1200: 69 64 20 2a 70 64 29 20 7b 0a 20 20 20 20 63 68  id *pd) {.    ch
1210: 61 72 20 62 75 66 5b 31 30 32 34 5d 3b 20 2f 2a  ar buf[1024]; /*
1220: 20 54 68 69 73 20 69 73 20 66 61 72 20 66 72 6f   This is far fro
1230: 6d 20 74 68 65 20 72 65 61 6c 20 74 68 69 6e 67  m the real thing
1240: 2c 20 62 75 74 20 6d 61 79 20 62 65 20 75 73 65  , but may be use
1250: 66 75 6c 20 2a 2f 0a 20 20 20 20 69 6e 74 20 72  ful */.    int r
1260: 63 20 3d 20 73 79 73 74 65 6d 28 70 69 63 6f 6c  c = system(picol
1270: 43 6f 6e 63 61 74 28 62 75 66 2c 61 72 67 63 2c  Concat(buf,argc,
1280: 61 72 67 76 29 29 3b 0a 20 20 20 20 72 65 74 75  argv));.    retu
1290: 72 6e 20 70 69 63 6f 6c 53 65 74 46 6d 74 52 65  rn picolSetFmtRe
12a0: 73 75 6c 74 28 69 2c 22 25 64 22 2c 72 63 29 3b  sult(i,"%d",rc);
12b0: 0a 7d 0a 0a 54 68 65 20 63 61 6c 6c 65 72 20 64  .}..The caller d
12c0: 6f 65 73 6e 27 74 20 67 65 74 20 74 68 65 20 73  oesn't get the s
12d0: 74 64 6f 75 74 20 6f 66 20 74 68 65 20 63 61 6c  tdout of the cal
12e0: 6c 65 64 20 70 72 6f 63 65 73 73 20 62 61 63 6b  led process back
12f0: 2c 20 61 6e 64 20 74 68 65 72 65 0a 69 73 6e 27  , and there.isn'
1300: 74 20 6d 75 63 68 20 63 6f 6e 66 69 67 75 72 61  t much configura
1310: 62 69 6c 69 74 79 2c 20 62 75 74 20 74 68 69 73  bility, but this
1320: 20 6d 69 6e 69 6d 61 6c 20 73 6f 6c 75 74 69 6f   minimal solutio
1330: 6e 20 61 6c 6c 6f 77 65 64 20 6d 65 20 74 6f 0a  n allowed me to.
1340: 69 6e 63 6c 75 64 65 20 74 68 65 20 6c 69 6e 65  include the line
1350: 0a 0a 65 78 65 63 20 74 63 6c 73 68 20 5b 69 6e  ..exec tclsh [in
1360: 66 6f 20 73 63 72 69 70 74 5d 0a 0a 69 6e 20 6d  fo script]..in m
1370: 79 20 74 65 73 74 20 73 75 69 74 65 2c 20 61 6e  y test suite, an
1380: 64 20 74 68 75 73 20 63 6f 6e 76 65 6e 69 65 6e  d thus convenien
1390: 74 6c 79 20 74 65 73 74 69 6e 67 20 74 77 6f 20  tly testing two 
13a0: 74 68 69 6e 67 73 20 61 74 20 6f 6e 63 65 20 2d  things at once -
13b0: 0a 50 69 63 6f 6c 2c 20 61 6e 64 20 74 68 65 20  .Picol, and the 
13c0: 63 6f 6d 70 6c 69 61 6e 63 65 20 6f 66 20 74 68  compliance of th
13d0: 65 20 74 65 73 74 20 73 63 72 69 70 74 20 77 69  e test script wi
13e0: 74 68 20 54 63 6c 2e 20 53 6f 6d 65 20 74 65 73  th Tcl. Some tes
13f0: 74 73 20 68 61 76 65 0a 74 6f 20 62 65 20 73 6b  ts have.to be sk
1400: 69 70 70 65 64 20 66 6f 72 20 54 63 6c 2c 20 6f  ipped for Tcl, o
1410: 66 20 63 6f 75 72 73 65 20 2d 20 74 68 6f 75 67  f course - thoug
1420: 68 20 74 68 65 20 61 72 69 74 68 6d 65 74 69 63  h the arithmetic
1430: 2f 63 6f 6d 70 61 72 69 73 6f 6e 0a 6f 70 65 72  /comparison.oper
1440: 61 74 6f 72 73 20 61 72 65 20 70 72 6f 76 69 64  ators are provid
1450: 65 64 2c 20 74 68 69 6e 67 73 20 6c 69 6b 65 20  ed, things like 
1460: 5b 69 6e 66 6f 20 67 6c 6f 62 61 6c 73 5d 20 6f  [info globals] o
1470: 72 20 5b 65 78 70 72 5d 20 65 72 72 6f 72 0a 6d  r [expr] error.m
1480: 65 73 73 61 67 65 73 20 61 72 65 20 6e 6f 74 20  essages are not 
1490: 65 61 73 69 6c 79 20 75 6e 69 66 69 65 64 2e 20  easily unified. 
14a0: 49 20 62 61 73 65 20 74 68 65 20 73 6b 69 70 70  I base the skipp
14b0: 69 6e 67 20 6f 66 20 74 65 73 74 73 20 61 6e 64  ing of tests and
14c0: 20 6f 74 68 65 72 0a 63 6f 6e 64 69 74 69 6f 6e   other.condition
14d0: 61 6c 20 63 6f 64 65 20 6f 6e 20 5b 69 6e 66 6f  al code on [info
14e0: 20 65 78 69 73 74 73 20 74 63 6c 5f 76 65 72 73   exists tcl_vers
14f0: 69 6f 6e 5d 2e 0a 0a 41 6e 6f 74 68 65 72 20 6d  ion]...Another m
1500: 6f 64 69 66 69 63 61 74 69 6f 6e 20 49 20 66 69  odification I fi
1510: 6e 64 20 75 73 65 66 75 6c 20 69 73 20 74 6f 20  nd useful is to 
1520: 61 6c 6c 6f 77 20 61 20 73 63 72 69 70 74 20 6f  allow a script o
1530: 6e 20 74 68 65 20 63 6f 6d 6d 61 6e 64 0a 6c 69  n the command.li
1540: 6e 65 2e 20 49 66 20 74 68 65 20 66 69 72 73 74  ne. If the first
1550: 20 61 72 67 75 6d 65 6e 74 20 69 73 20 22 2d 45   argument is "-E
1560: 22 2c 20 74 68 65 20 73 65 63 6f 6e 64 20 69 73  ", the second is
1570: 20 65 76 61 6c 75 61 74 65 64 20 61 73 20 73 63   evaluated as sc
1580: 72 69 70 74 2c 0a 69 74 73 20 72 65 73 75 6c 74  ript,.its result
1590: 20 64 69 73 70 6c 61 79 65 64 20 6f 6e 20 73 74   displayed on st
15a0: 64 6f 75 74 2c 20 61 6e 64 20 74 68 65 6e 20 65  dout, and then e
15b0: 78 69 74 2e 20 54 68 69 73 20 66 65 61 74 75 72  xit. This featur
15c0: 65 20 69 73 20 6b 6e 6f 77 6e 0a 66 72 6f 6d 20  e is known.from 
15d0: 50 65 72 6c 20 61 6e 64 20 63 6f 6d 65 73 20 71  Perl and comes q
15e0: 75 69 74 65 20 68 61 6e 64 79 20 73 6f 6d 65 74  uite handy somet
15f0: 69 6d 65 73 3a 0a 0a 2f 5f 52 69 63 63 69 3e 20  imes:../_Ricci> 
1600: 70 69 63 6f 6c 20 2d 65 20 22 6c 73 6f 72 74 20  picol -e "lsort 
1610: 5b 69 6e 66 6f 20 63 6f 6d 6d 61 6e 64 73 5d 22  [info commands]"
1620: 0a 21 20 21 3d 20 25 20 2a 20 2b 20 2d 20 2f 20  .! != % * + - / 
1630: 3c 20 3c 3d 20 3d 3d 20 3e 20 3e 3d 20 5f 6c 20  < <= == > >= _l 
1640: 61 62 73 20 61 70 70 65 6e 64 20 61 72 72 61 79  abs append array
1650: 20 62 72 65 61 6b 20 63 61 74 63 68 20 63 6c 6f   break catch clo
1660: 63 6b 20 63 6c 6f 73 65 20 63 6f 6e 63 61 74 0a  ck close concat.
1670: 63 6f 6e 74 69 6e 75 65 20 65 6f 66 20 65 71 20  continue eof eq 
1680: 65 72 72 6f 72 20 65 76 61 6c 20 65 78 65 63 20  error eval exec 
1690: 65 78 69 74 20 66 69 6c 65 20 66 6c 75 73 68 20  exit file flush 
16a0: 66 6f 72 20 66 6f 72 65 61 63 68 20 66 6f 72 6d  for foreach form
16b0: 61 74 20 67 65 74 73 20 69 66 20 69 6e 63 72 0a  at gets if incr.
16c0: 69 6e 66 6f 20 69 6e 74 65 72 70 20 6a 6f 69 6e  info interp join
16d0: 20 6c 61 70 70 65 6e 64 20 6c 69 6e 64 65 78 20   lappend lindex 
16e0: 6c 69 6e 73 65 72 74 20 6c 69 73 74 20 6c 6c 65  linsert list lle
16f0: 6e 67 74 68 20 6c 72 61 6e 67 65 20 6c 72 65 70  ngth lrange lrep
1700: 6c 61 63 65 20 6c 73 65 61 72 63 68 0a 6c 73 65  lace lsearch.lse
1710: 74 20 6c 73 6f 72 74 20 6e 65 20 6f 70 65 6e 20  t lsort ne open 
1720: 70 69 64 20 70 72 6f 63 20 70 75 74 73 20 72 65  pid proc puts re
1730: 61 64 20 72 65 6e 61 6d 65 20 72 65 74 75 72 6e  ad rename return
1740: 20 73 63 61 6e 20 73 65 65 6b 20 73 65 74 20 73   scan seek set s
1750: 65 74 65 6e 76 20 73 6f 75 72 63 65 0a 73 70 6c  etenv source.spl
1760: 69 74 20 73 74 72 69 6e 67 20 73 75 62 73 74 20  it string subst 
1770: 73 77 69 74 63 68 20 74 65 6c 6c 20 74 69 6d 65  switch tell time
1780: 20 75 6e 73 65 74 20 75 70 6c 65 76 65 6c 20 77   unset uplevel w
1790: 68 69 6c 65 0a 2f 5f 52 69 63 63 69 3e 0a 0a 0a  hile./_Ricci>...
17a0: 77 68 69 63 68 20 62 79 20 74 68 65 20 77 61 79  which by the way
17b0: 20 65 78 68 69 62 69 74 73 20 68 6f 77 20 6d 61   exhibits how ma
17c0: 6e 79 20 66 61 6d 69 6c 69 61 72 20 63 6f 6d 6d  ny familiar comm
17d0: 61 6e 64 73 20 68 61 76 65 20 62 65 65 6e 20 61  ands have been a
17e0: 64 64 65 64 20 74 6f 0a 53 61 6c 76 61 74 6f 72  dded to.Salvator
17f0: 65 27 73 20 6f 72 69 67 69 6e 61 6c 20 76 65 72  e's original ver
1800: 73 69 6f 6e 2e 2e 2e 20 41 73 20 74 68 65 72 65  sion... As there
1810: 20 77 61 73 20 6e 6f 20 76 65 72 73 69 6f 6e 20   was no version 
1820: 6e 75 6d 62 65 72 69 6e 67 2c 20 49 0a 64 75 62  numbering, I.dub
1830: 62 65 64 20 69 74 20 30 2e 31 2e 30 2c 20 61 6e  bed it 0.1.0, an
1840: 64 20 68 61 76 65 20 62 65 65 6e 20 61 64 64 69  d have been addi
1850: 6e 67 20 70 61 74 63 68 6c 65 76 65 6c 73 2c 20  ng patchlevels, 
1860: 6f 6e 65 20 61 66 74 65 72 20 74 68 65 20 6f 74  one after the ot
1870: 68 65 72 2c 0a 75 70 20 75 6e 74 69 6c 20 74 68  her,.up until th
1880: 65 20 63 75 72 72 65 6e 74 20 30 2e 31 2e 31 36  e current 0.1.16
1890: 2e 20 57 69 6c 6c 20 74 68 65 72 65 20 65 76 65  . Will there eve
18a0: 72 20 62 65 20 61 20 31 2e 30 20 76 65 72 73 69  r be a 1.0 versi
18b0: 6f 6e 3f 20 49 20 68 61 76 65 20 6e 6f 0a 69 64  on? I have no.id
18c0: 65 61 2e 20 43 72 65 65 70 69 6e 67 20 66 65 61  ea. Creeping fea
18d0: 74 75 72 69 74 69 73 20 69 73 20 61 6c 77 61 79  turitis is alway
18e0: 73 20 61 20 64 61 6e 67 65 72 2c 20 61 6e 64 20  s a danger, and 
18f0: 69 74 20 6d 69 67 68 74 20 62 65 20 61 20 70 69  it might be a pi
1900: 74 79 20 69 66 0a 74 68 65 20 63 6c 65 61 72 20  ty if.the clear 
1910: 50 69 63 6f 6c 20 64 65 73 69 67 6e 20 67 65 74  Picol design get
1920: 73 20 6f 62 73 63 75 72 65 64 20 62 79 20 79 65  s obscured by ye
1930: 74 20 61 6e 6f 74 68 65 72 20 62 65 6c 6c 20 68  t another bell h
1940: 65 72 65 20 61 6e 64 20 61 0a 77 68 69 73 74 6c  ere and a.whistl
1950: 65 20 74 68 65 72 65 2e 0a 0a 56 69 74 61 6c 20  e there...Vital 
1960: 73 74 61 74 69 73 74 69 63 73 20 28 73 75 62 6a  statistics (subj
1970: 65 63 74 20 74 6f 20 63 68 61 6e 67 65 20 77 69  ect to change wi
1980: 74 68 6f 75 74 20 6e 6f 74 69 63 65 29 3a 0a 4e  thout notice):.N
1990: 75 6d 62 65 72 20 6f 66 20 73 6f 75 72 63 65 20  umber of source 
19a0: 66 69 6c 65 73 20 20 20 20 20 20 20 20 20 20 20  files           
19b0: 31 20 28 70 69 63 6f 6c 2e 63 29 0a 4c 69 6e 65  1 (picol.c).Line
19c0: 73 20 6f 66 20 63 6f 64 65 20 20 20 20 20 20 20  s of code       
19d0: 20 20 20 20 20 20 20 20 20 20 31 30 37 39 0a 49            1079.I
19e0: 6d 70 6c 65 6d 65 6e 74 65 64 20 63 6f 6d 6d 61  mplemented comma
19f0: 6e 64 73 20 20 20 20 20 20 20 20 20 20 20 20 35  nds            5
1a00: 35 0a 4e 75 6d 62 65 72 20 6f 66 20 74 65 73 74  5.Number of test
1a10: 20 63 61 73 65 73 20 20 20 20 20 20 20 20 20 20   cases          
1a20: 20 20 36 36 20 28 69 6e 20 74 65 73 74 2e 70 63    66 (in test.pc
1a30: 6c 29 0a 53 69 7a 65 20 6f 66 20 73 74 72 69 70  l).Size of strip
1a40: 70 65 64 20 65 78 65 63 75 74 61 62 6c 65 20 20  ped executable  
1a50: 32 33 35 35 32 20 62 79 74 65 73 0a 0a 41 20 5a  23552 bytes..A Z
1a60: 49 50 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 69  IP file containi
1a70: 6e 67 20 70 69 63 6f 6c 2e 63 2c 20 74 65 73 74  ng picol.c, test
1a80: 2e 70 63 6c 2c 20 61 6e 64 20 74 68 69 73 20 64  .pcl, and this d
1a90: 6f 63 75 6d 65 6e 74 20 63 61 6e 20 62 65 0a 64  ocument can be.d
1aa0: 6f 77 6e 6c 6f 61 64 65 64 20 66 72 6f 6d 20 68  ownloaded from h
1ab0: 74 74 70 3a 2f 2f 6d 69 6e 69 2e 6e 65 74 2f 66  ttp://mini.net/f
1ac0: 69 6c 65 73 2f 70 69 63 6f 6c 30 2d 31 2d 31 37  iles/picol0-1-17
1ad0: 2e 7a 69 70 20 2e 20 4c 69 63 65 6e 73 65 0a 63  .zip . License.c
1ae0: 6f 6e 64 69 74 69 6f 6e 73 20 61 72 65 20 61 67  onditions are ag
1af0: 61 69 6e 20 42 53 44 2c 20 69 2e 65 2e 20 66 72  ain BSD, i.e. fr
1b00: 65 65 20 66 6f 72 20 61 6c 6c 20 70 72 69 76 61  ee for all priva
1b10: 74 65 20 61 6e 64 20 63 6f 6d 6d 65 72 63 69 61  te and commercia
1b20: 6c 20 75 73 65 2c 0a 70 72 6f 76 69 64 65 64 20  l use,.provided 
1b30: 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 61 75 74  the original aut
1b40: 68 6f 72 73 68 69 70 20 69 73 20 61 63 6b 6e 6f  horship is ackno
1b50: 77 6c 65 64 67 65 64 2e 20 41 6e 64 20 6e 6f 20  wledged. And no 
1b60: 77 61 72 72 61 6e 74 79 20 66 6f 72 0a 61 6e 79  warranty for.any
1b70: 20 75 73 61 62 69 6c 69 74 79 20 66 6f 72 20 61   usability for a
1b80: 6e 79 20 70 75 72 70 6f 73 65 2c 20 62 75 74 20  ny purpose, but 
1b90: 79 6f 75 20 6b 6e 6f 77 20 74 68 61 74 20 3a 29  you know that :)
1ba0: 0a 0a 46 6f 72 20 6d 65 2c 20 74 68 65 20 6d 61  ..For me, the ma
1bb0: 69 6e 20 70 75 72 70 6f 73 65 20 68 61 73 20 62  in purpose has b
1bc0: 65 65 6e 20 74 6f 20 65 78 70 65 72 69 6d 65 6e  een to experimen
1bd0: 74 20 77 69 74 68 20 43 20 77 69 74 68 6f 75 74  t with C without
1be0: 20 74 68 65 0a 68 61 73 73 6c 65 20 6f 66 20 63   the.hassle of c
1bf0: 6f 6d 70 6c 65 78 20 64 65 70 65 6e 64 65 6e 63  omplex dependenc
1c00: 69 65 73 2e 20 48 61 63 6b 69 6e 67 20 6f 6e 20  ies. Hacking on 
1c10: 50 69 63 6f 6c 2c 20 49 20 66 65 6c 74 20 68 6f  Picol, I felt ho
1c20: 77 20 61 20 73 74 75 64 65 6e 74 0a 61 74 20 55  w a student.at U
1c30: 43 20 42 65 72 6b 65 6c 65 79 20 6d 75 73 74 20  C Berkeley must 
1c40: 68 61 76 65 20 66 65 6c 74 20 69 6e 20 31 39 38  have felt in 198
1c50: 38 2c 20 77 68 65 6e 20 54 63 6c 20 77 61 73 20  8, when Tcl was 
1c60: 6a 75 73 74 20 61 20 62 61 62 79 2e 2e 2e 0a     just a baby....