about summary refs log tree commit diff stats
path: root/apps
Commit message (Collapse)AuthorAgeFilesLines
* 7251Kartik Agaram2020-11-162-2/+2
|
* 7250Kartik Agaram2020-11-161-1/+1
|
* 7248 - mu.subx: new primitive 'clear-object'Kartik Agaram2020-11-154-17/+152
|
* 7246 - tile: segment each function's areaKartik Agaram2020-11-151-2/+14
|
* 7245 - tile: right-align functionsKartik Agaram2020-11-153-13/+102
|
* 7244 - tile: new layout for primitivesKartik Agaram2020-11-151-16/+48
|
* 7243 - tile: starting to make functions editableKartik Agaram2020-11-151-14/+24
|
* 7242Kartik Agaram2020-11-151-1/+1
|
* 7241 - mu.subx: check float registersKartik Agaram2020-11-152-0/+148
|
* 7240Kartik Agaram2020-11-152-20/+34
|
* 7239Kartik Agaram2020-11-152-7/+114
|
* 7238 - mu.subx: final restrictions on 'addr'Kartik Agaram2020-11-1515-12/+344
| | | | I had to tweak one app that wasn't following the rules.
* 7237Kartik Agaram2020-11-141-2/+0
| | | | | | | Minor tweaks to get Mu shell running nicely on a Linux console atop Qemu. We also need to switch a few 256-color codes to 8-color mode. I'm not sure whether/how to patch the repo for those.
* 7232 - mu.subx: more checks for byte typesKartik Agaram2020-11-122-11/+149
|
* 7231Kartik Agaram2020-11-123-3/+47
|
* 7230 - mu.subx: some more checks for stmt outputsKartik Agaram2020-11-122-10/+153
|
* 7229 - tile: fix ctrl-eKartik Agaram2020-11-122-7/+20
|
* 7228Kartik Agaram2020-11-121-3/+7
|
* 7226Kartik Agaram2020-11-114-81/+0
|
* 7225Kartik Agaram2020-11-1133-60/+217
| | | | | | | Both manual tests described in commit 7222 now work. To make them work I had to figure out how to copy a file. It requires a dependency on a new syscall: lseek.
* 7222Kartik Agaram2020-11-103-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ok, I found a failing manual test for files as well. Here are the two steelman tests, one for screens and one for files: 1. 5 5 fake-screen =s s 1 down 1 right ctrl-d foo expand final state: s foo foo s 1 down 1 right ⇗ ┌─────┐ ┌─────┐ ┌─────┐ 1 ┌─────┐ 1 ┌─────┐ │ ┌─────┐ │ ┌─────┐ │ ─ │ │ │ │ ─ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘ └─────┘ 2. "x" open =f f read f read ctrl-d read2 expand final state: f read2 read2 f read f read ⇗ FILE ❝def❞ FILE ❝abc❞ FILE ❝❞ ❝def❞ ❝ghi❞ In both cases there are 3 levels of issues: - getting a single-line expression to work - getting a single-line expression to work when operating on a binding defined in a previous line - getting an expanded function call to work The third is where the rub is right now. And what both examples above share is that the function performs 2 mutations to the screen/file. So we need a deep copy after all. And it's not very clear how to copy a file descriptor including the seek location. Linux's dup() syscall creates an alias to the file descriptor. And opening /proc seems awfully Linux-specific: https://stackoverflow.com/questions/54727231/duplicating-file-descriptor-and-seeking-through-both-of-them-independently/54727424#54727424
* 7221Kartik Agaram2020-11-091-62/+0
| | | | | I can't get file values to exhibit the same problem. Why are fake screens special?
* 7220Kartik Agaram2020-11-091-5/+12
| | | | | | | | | Even this isn't enough. While shallow copies keep us from transferring new bindings to callers, the screen object is still the same, so mutations to bindings are contagious. Basically I'm losing IQ points from programming in a language that encourages mutation over copying.
* 7219Kartik Agaram2020-11-093-69/+69
| | | | We're still busted, but on the right track.
* 7218Kartik Agaram2020-11-095-11/+139
| | | | | | | | | | | | | | | This bug was incredibly painful to track down: the one-line fix is to replace 'line' with 'first-line' in the call to 'evaluate' in render-line before recursing. Things that made it challenging: - A high degree of coiling with recursive calls and multiple places of evaluation. - An accidental aliasing in bindings (when rendering the main column in render-line) that masked the underlying bug and made things seem to work most of the time. - Too many fucking arguments to render-line, a maze of twisty line objects all alike.
* 7217Kartik Agaram2020-11-082-6/+24
|
* 7216Kartik Agaram2020-11-082-2/+63
| | | | | In addition to fixing a segfault, the realization here is that we don't always have a type name. Error messages need to take that into account.
* 7215Kartik Agaram2020-11-072-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt #3: always create a copy of the bindings before each column/evaluate. The details are fuzzy in my head, but it seemed worth trying. I figured I'd either see the old duplication behavior or everything will work. Instead I'm seeing new problems. commit 7208: 5 5 fake-screen =s s 1 down 1 right expected: | - observed: | | - commit 7210-7212: 5 5 fake-screen =s s 1 down 1 right [define foo] s foo [expand foo] observed: no bindings available when rendering foo expanded commit 7213: 5 5 fake-screen =s s 1 down 1 right [define foo] s foo [expand foo] expected within foo: | - observed within foo: | | - commit 7215: 5 5 fake-screen =s s 1 down 1 right [define foo] s foo [expand foo] observed: no bindings available when rendering foo expanded
* 7214 - undo 7213Kartik Agaram2020-11-072-5/+7
| | | | | | | | | | Turns out even that doesn't work. There are two distinct use cases here: 1. Keeping columns from infecting each other. 2. Expanding function calls. Perhaps ping-ponging between them is a sign I need tests.
* 7213 - redo the bugfix of 7210Kartik Agaram2020-11-072-7/+5
| | | | | | | | It turns out deciding when to initialize the table of bindings is quite a thorny problem in the presence of function calls (since they need their args bound). In time I should probably support a linked list of tables. For now I'll just continue to reuse tables, but perform lookups in reverse order so that the correct binding is always returned.
* 7212Kartik Agaram2020-11-071-1/+1
|
* 7211Kartik Agaram2020-11-071-0/+24
|
* 7210Kartik Agaram2020-11-074-11/+40
| | | | | Bug fixed; I had to reinitialize the table of bindings. Interesting debugging experience.
* 7209Kartik Agaram2020-11-071-1/+1
|
* 7208 - tile: start new lineKartik Agaram2020-11-071-0/+35
| | | | | | | | Only the final line shows the stack for now. No way to move cursor back up. One bug I'm noticing: creating a screen on one line and then reusing it in a second causes operations to be performed multiple times.
* 7207 - tile: bugfixKartik Agaram2020-11-071-0/+2
|
* 7206 - tile: up/down/left/right now print linesKartik Agaram2020-11-071-20/+57
|
* 7205 - tile: magnitudes for up/down/left/rightKartik Agaram2020-11-071-17/+41
|
* 7202 - rendering screens above other valuesKartik Agaram2020-11-062-1/+26
|
* 7201Kartik Agaram2020-11-061-8/+6
|
* 7200 - tile: cursor movement helpersKartik Agaram2020-11-062-3/+121
|
* 7199 - tile: primitive 'move'Kartik Agaram2020-11-061-1/+30
|
* 7198 - tile: primitive 'print'Kartik Agaram2020-11-063-6/+43
|
* 7197 - tile: render screen contents and cursorKartik Agaram2020-11-061-10/+38
|
* 7196 - tile: render empty screenKartik Agaram2020-11-062-19/+80
|
* 7195 - tile: create 'screen' objectsKartik Agaram2020-11-064-0/+61
|
* 7194Kartik Agaram2020-11-062-45/+51
|
* 7193 - tile: extract taxonomy of values into a separate fileKartik Agaram2020-11-063-206/+208
|
* 7192 - more checks around literalsKartik Agaram2020-11-052-22/+318
| | | | | | | We can copy non-zero literals only to non-addr non-offset scalars. This change is surprisingly short for the magnitude of the limb I felt myself going out on for it. Surprising that there were no unpleasant discoveries.
* 7191Kartik Agaram2020-11-052-35/+55
|
<nincsnevem662@gmail.com> 2023-04-30 12:19:24 +0200 committer bptato <nincsnevem662@gmail.com> 2023-04-30 12:19:24 +0200 WIP fetch' href='/ahoang/chawan/commit/src/display/client.nim?id=a02c408f933aea6f405ed3c64ab151b01b33ae9e'>a02c408f ^
2cf74b74 ^
51ea622d ^
85e450fd ^
51ea622d ^
85e450fd ^
51ea622d ^
1cfe1655 ^
51ea622d ^
e780de79 ^
1cfe1655 ^
51ea622d ^



80b45c0d ^
2c4f1b5a ^
80b45c0d ^
3b76f5f0 ^
11219c7d ^
3b76f5f0 ^




80b45c0d ^
11219c7d ^
51ea622d ^
3f966812 ^
bfaf210d ^
3f966812 ^
3b76f5f0 ^


bfaf210d ^
3f966812 ^
51ea622d ^
3f966812 ^
e44e5c93 ^

1cfe1655 ^
bfaf210d ^
51d83224 ^

51d83224 ^
1cfe1655 ^


6f7bcc54 ^
32abf37b ^

d526deb9 ^
32abf37b ^

08a758ed ^
aaacdc35 ^


50eead4e ^




cd6b8bf5 ^
09be1d57 ^

08a758ed ^
b7f19942 ^
51ea622d ^


aaacdc35 ^


a316ae24 ^

181ea25b ^

a316ae24 ^
7728bad5 ^
790e9377 ^
39e9d80a ^
7728bad5 ^

39e9d80a ^
ef43cb35 ^

790e9377 ^



39e9d80a ^
ef43cb35 ^
790e9377 ^




7728bad5 ^



39e9d80a ^
7728bad5 ^
39e9d80a ^






7728bad5 ^
ee17e946 ^




39e9d80a ^

ee17e946 ^


7728bad5 ^
d91d1dda ^
ee17e946 ^

39e9d80a ^
7728bad5 ^
39e9d80a ^
7728bad5 ^

11219c7d ^
4ee1a937 ^
aaacdc35 ^
1cfe1655 ^
c0ccab92 ^


c0ccab92 ^

4ee1a937 ^




c0ccab92 ^
ee17e946 ^
aaacdc35 ^
aaacdc35 ^

ee17e946 ^

aaacdc35 ^
ee17e946 ^
aaacdc35 ^
ee17e946 ^

aaacdc35 ^
d91d1dda ^
c0ccab92 ^
7728bad5 ^
d91d1dda ^
aaacdc35 ^

7728bad5 ^
ee17e946 ^





c0ccab92 ^
ee17e946 ^
aaacdc35 ^

c0ccab92 ^
ee17e946 ^
7728bad5 ^



51ea622d ^
2c4f1b5a ^












bbb14729 ^
7d6c75e4 ^

1cfe1655 ^





181ea25b ^
1cfe1655 ^


181ea25b ^
1cfe1655 ^

8323cf21 ^
896489a6 ^
aaacdc35 ^








2f902aea ^
c2004e4a ^

2f902aea ^


c2004e4a ^


088202c9 ^
c2004e4a ^
2f902aea ^
c2004e4a ^
896489a6 ^
d7a05e7a ^


181ea25b ^
85e450fd ^
7728bad5 ^


d526deb9 ^
8323cf21 ^


181ea25b ^

d526deb9 ^
8323cf21 ^


181ea25b ^
8323cf21 ^
181ea25b ^


8323cf21 ^

181ea25b ^
87f9bd65 ^



eff1e064 ^
d78298ae ^

181ea25b ^



87f9bd65 ^
c7770d1a ^




d526deb9 ^
87f9bd65 ^
181ea25b ^
85e450fd ^
181ea25b ^


d526deb9 ^
181ea25b ^


87f9bd65 ^



eff1e064 ^
c15d0404 ^

181ea25b ^


1cfe1655 ^
181ea25b ^

1cfe1655 ^
181ea25b ^

1cfe1655 ^

181ea25b ^
c15d0404 ^
181ea25b ^
647089a9 ^
896489a6 ^
85e450fd ^

088202c9 ^
647089a9 ^
ee8310c5 ^
a6bbcd0d ^
b086e346 ^
181ea25b ^
2d3b4faa ^
181ea25b ^
d242bb35 ^
181ea25b ^
85e450fd ^
bc0c3c8c ^
3c5aa064 ^
73c9788a ^

1cfe1655 ^

7728bad5 ^
c15d0404 ^
c2004e4a ^
0cfe4091 ^


a316ae24 ^
d3e50ed1 ^


65307235 ^
7d6c75e4 ^
3d6767ae ^
87f9bd65 ^
2c4f1b5a ^
87f9bd65 ^

cd6b8bf5 ^

87f9bd65 ^
ae3bbcae ^
87f9bd65 ^
ae3bbcae ^


181ea25b ^
ae3bbcae ^
181ea25b ^
3c5aa064 ^
73c9788a ^

c15d0404 ^

ae3bbcae ^

c9588388 ^
e38f831d ^



c9588388 ^


e38f831d ^
3b76f5f0 ^
e38f831d ^






c9588388 ^
e38f831d ^



d7e96333 ^





51d83224 ^










1cfe1655 ^




652251c2 ^


1cfe1655 ^
















652251c2 ^
1cfe1655 ^


















652251c2 ^
896489a6 ^
181ea25b ^
896489a6 ^

181ea25b ^





d526deb9 ^
181ea25b ^
896489a6 ^

d526deb9 ^

85e450fd ^
bd8e806b ^
652251c2 ^
4b482418 ^
85e450fd ^
7eee2e1f ^
85e450fd ^

7eee2e1f ^
bd8e806b ^
088202c9 ^
d526deb9 ^
088202c9 ^
34b90a0b ^
088202c9 ^
34b90a0b ^
cd6b8bf5 ^

85e450fd ^
1cfe1655 ^





85e450fd ^
1cfe1655 ^
2c4f1b5a ^



aaacdc35 ^
896489a6 ^
4e0fd8c7 ^


652251c2 ^
4e0fd8c7 ^
3b76f5f0 ^


62e1cce8 ^

d526deb9 ^
f3f13da8 ^
08a758ed ^
d526deb9 ^

c2004e4a ^
bd8e806b ^
a6bbcd0d ^
8ea2c50b ^
896489a6 ^
4e0fd8c7 ^
ae3bbcae ^
f3f13da8 ^
51ea622d ^






bd12a8be ^





51d83224 ^


18008acc ^
47214562 ^

18008acc ^
47214562 ^

bc0c3c8c ^


d526deb9 ^
17097052 ^
1cfe1655 ^
08a758ed ^
bfaf210d ^
3c5aa064 ^
51d83224 ^

8027e52c ^


3c5aa064 ^
51da9936 ^
51d83224 ^
36390a56 ^
a6bbcd0d ^
d9e430c8 ^
c4e2de9c ^
652251c2 ^
69870f3b ^
d526deb9 ^
b75466f2 ^


d526deb9 ^





54619460 ^
d526deb9 ^



d526deb9 ^
e5d170aa ^
d526deb9 ^
31fbd611 ^
54619460 ^
136d8d9e ^

d526deb9 ^


54619460 ^
d526deb9 ^




d526deb9 ^
d526deb9 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708