Position Independent Source Code

Hex Artifact Content
Login

Artifact e77c9be39930ba1f8f06af2e862c33723eef3209:

Wiki page [pisc-web-ide] by yumaikas 2017-03-21 19:50:19.
0000: 44 20 32 30 31 37 2d 30 33 2d 32 31 54 31 39 3a  D 2017-03-21T19:
0010: 35 30 3a 31 39 2e 35 36 39 0a 4c 20 70 69 73 63  50:19.569.L pisc
0020: 2d 77 65 62 2d 69 64 65 0a 4e 20 74 65 78 74 2f  -web-ide.N text/
0030: 78 2d 6d 61 72 6b 64 6f 77 6e 0a 50 20 64 35 36  x-markdown.P d56
0040: 35 66 66 65 65 36 35 63 31 36 64 66 61 64 36 31  5ffee65c16dfad61
0050: 64 31 32 32 37 64 66 66 66 61 38 34 31 66 61 39  d1227dfffa841fa9
0060: 65 33 36 39 62 0a 55 20 79 75 6d 61 69 6b 61 73  e369b.U yumaikas
0070: 0a 57 20 38 37 36 0a 23 20 50 49 53 43 20 57 65  .W 876.# PISC We
0080: 62 20 49 44 45 2d 6c 69 74 65 20 70 6c 61 6e 73  b IDE-lite plans
0090: 0d 0a 0d 0a 49 27 64 20 6c 69 6b 65 20 74 6f 20  ....I'd like to 
00a0: 62 75 69 6c 64 20 61 20 6c 69 67 68 74 77 65 69  build a lightwei
00b0: 67 68 74 20 50 49 53 43 20 49 44 45 20 74 68 61  ght PISC IDE tha
00c0: 74 20 63 61 6e 20 62 65 20 62 65 20 72 6f 6c 6c  t can be be roll
00d0: 65 64 20 69 6e 74 6f 20 61 20 50 49 53 43 20 69  ed into a PISC i
00e0: 6e 74 65 72 70 72 65 74 65 72 20 61 6e 64 20 75  nterpreter and u
00f0: 73 65 64 20 66 6f 72 20 28 69 6e 74 69 61 6c 6c  sed for (intiall
0100: 79 29 20 64 65 76 65 6c 6f 70 69 6e 67 20 49 52  y) developing IR
0110: 43 20 62 6f 74 73 2c 20 61 6e 64 20 74 68 65 6e  C bots, and then
0120: 20 6c 61 74 65 72 20 66 6f 72 20 53 6c 61 63 6b   later for Slack
0130: 2f 44 69 73 63 6f 72 64 2e 20 0d 0a 0d 0a 54 68  /Discord. ....Th
0140: 69 73 20 62 72 69 6e 67 73 20 74 6f 20 74 68 65  is brings to the
0150: 20 66 6f 72 65 66 72 6f 6e 74 20 73 6f 6d 65 20   forefront some 
0160: 6f 74 68 65 72 20 69 64 65 61 73 20 49 27 76 65  other ideas I've
0170: 20 68 61 64 20 61 72 6f 75 6e 64 20 50 49 53 43   had around PISC
0180: 3a 20 53 6f 6d 65 20 76 65 72 73 69 6f 6e 20 6f  : Some version o
0190: 66 20 74 61 62 6c 65 20 73 75 70 70 6f 72 74 20  f table support 
01a0: 69 6e 20 42 6f 6c 74 44 42 2c 20 73 6f 6d 65 20  in BoltDB, some 
01b0: 73 6f 72 74 20 6f 66 20 6c 6f 67 67 69 6e 67 2c  sort of logging,
01c0: 20 61 20 6e 69 66 74 79 20 6c 69 74 74 6c 65 20   a nifty little 
01d0: 69 6e 74 65 72 66 61 63 65 20 66 6f 72 20 73 6f  interface for so
01e0: 6d 65 74 68 69 6e 67 20 6c 69 6b 65 20 74 68 69  mething like thi
01f0: 73 2e 0d 0a 0d 0a 43 75 72 72 65 6e 74 6c 79 20  s.....Currently 
0200: 74 68 69 6e 6b 69 6e 67 20 6f 66 20 61 20 74 77  thinking of a tw
0210: 6f 2d 70 61 6e 65 20 65 64 69 74 6f 72 20 61 20  o-pane editor a 
0220: 6c 61 20 53 75 62 6c 69 6d 65 20 54 65 78 74 0d  la Sublime Text.
0230: 0a 0d 0a 4f 6e 65 20 70 61 6e 65 20 73 68 6f 77  ...One pane show
0240: 73 20 74 68 69 6e 67 73 20 74 68 61 74 20 63 61  s things that ca
0250: 6e 20 62 65 20 76 69 65 77 65 64 2c 20 74 68 65  n be viewed, the
0260: 20 6f 74 68 65 72 20 73 68 6f 77 73 20 61 20 76   other shows a v
0270: 69 65 77 65 72 20 66 6f 72 20 74 68 65 20 63 75  iewer for the cu
0280: 72 72 65 6e 74 20 74 68 69 6e 67 2e 0d 0a 0d 0a  rrent thing.....
0290: 54 68 69 6e 67 73 20 74 68 61 74 20 63 61 6e 20  Things that can 
02a0: 62 65 20 76 69 65 77 65 64 20 61 72 65 20 61 6c  be viewed are al
02b0: 6c 20 65 69 74 68 65 72 20 69 6e 20 42 6f 6c 74  l either in Bolt
02c0: 44 42 2c 20 6f 72 20 62 65 68 69 6e 64 20 61 6e  DB, or behind an
02d0: 20 41 73 73 65 74 28 29 20 66 75 6e 63 74 69 6f   Asset() functio
02e0: 6e 2e 20 0d 0a 56 69 65 77 65 72 73 20 61 72 65  n. ..Viewers are
02f0: 20 67 6f 20 66 75 6e 63 74 69 6f 6e 73 20 61 73   go functions as
0300: 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 61 20  sociated with a 
0310: 64 61 74 61 2d 74 79 70 65 20 74 68 61 74 20 74  data-type that t
0320: 61 6b 65 20 61 20 6b 65 79 20 74 68 61 74 20 69  ake a key that i
0330: 73 20 74 68 65 6e 20 66 65 64 20 69 6e 74 6f 20  s then fed into 
0340: 65 69 74 68 65 72 20 60 41 73 73 65 74 28 29 60  either `Asset()`
0350: 20 6f 72 20 60 42 6f 6c 74 44 42 60 20 28 6f 72   or `BoltDB` (or
0360: 20 61 6e 6f 74 68 65 72 20 64 61 74 61 20 73 74   another data st
0370: 6f 72 65 29 2c 20 61 6e 64 20 72 65 6e 64 65 72  ore), and render
0380: 20 74 68 65 20 72 65 73 75 6c 74 73 20 61 73 20   the results as 
0390: 48 54 4d 4c 20 74 6f 20 61 20 76 69 65 77 65 72  HTML to a viewer
03a0: 2e 0d 0a 41 6e 6f 74 68 65 72 20 74 68 69 6e 67  ...Another thing
03b0: 20 77 6f 75 6c 64 20 62 65 20 74 72 65 65 20 67   would be tree g
03c0: 65 6e 65 72 61 74 6f 72 73 20 66 6f 72 20 65 61  enerators for ea
03d0: 63 68 20 64 61 74 61 2d 74 79 70 65 2e 0d 0a 0d  ch data-type....
03e0: 0a 0d 0a 0a 5a 20 61 32 34 35 36 33 30 61 38 65  ....Z a245630a8e
03f0: 30 63 30 64 63 33 63 61 33 38 34 63 32 38 36 38  0c0dc3ca384c2868
0400: 36 66 61 34 61 37 0a                             6fa4a7.