about summary refs log tree commit diff stats
path: root/052tangle.cc
Commit message (Collapse)AuthorAgeFilesLines
* 3108Kartik K. Agaram2016-07-101-1/+0
|
* 3001Kartik K. Agaram2016-05-241-4/+8
|
* 2990Kartik K. Agaram2016-05-201-4/+4
| | | | | | | | | | Standardize quotes around reagents in error messages. I'm still sure there's issues. For example, the messages when type-checking 'copy'. I'm not putting quotes around them because in layer 60 I end up creating dilated reagents, and then it's a bit much to have quotes and (two kinds of) brackets. But I'm sure I'm doing that somewhere..
* 2987Kartik K. Agaram2016-05-201-0/+448
|
* 2971Kartik K. Agaram2016-05-171-448/+0
| | | | | | Long-overdue reorganization to support general 'dilated' reagents up front. This also allows me to move tests that are really about unrelated layers out of layers dealing with parsing.
* 2883 - another warning in the spirit of 2882Kartik K. Agaram2016-04-281-0/+31
| | | | | | All code to be tangled at a label should be defined between two calls to transform_all(). This property is trivially satisfied if a production run only ever has one call to transform_all().
* 2872 - tangle directive spurious errors fixedKartik K. Agaram2016-04-271-7/+8
|
* 2773 - switch to 'int'Kartik K. Agaram2016-03-131-5/+5
| | | | This should eradicate the issue of 2771.
* 2735 - define recipes using 'def'Kartik K. Agaram2016-03-081-13/+13
| | | | | | | | | | | | I'm dropping all mention of 'recipe' terminology from the Readme. That way I hope to avoid further bike-shedding discussions while I very slowly decide on the right terminology with my students. I could be smarter in my error messages and use 'recipe' when code uses it and 'function' otherwise. But what about other words like ingredient? It would all add complexity that I'm not yet sure is worthwhile. But I do want separate experiences for veteran programmers reading about Mu on github and for people learning programming using Mu.
* 2712Kartik K. Agaram2016-02-261-4/+4
|
* 2680Kartik K. Agaram2016-02-201-4/+4
| | | | Delete all the [] that has crept in since 2377 in November.
* 2678Kartik K. Agaram2016-02-201-1/+1
| | | | | | | Start using type names from the type tree rather than the property tree in most places. Hopefully the only occurrences of 'properties.at(0).second' left are ones where we're managing it. Next we can stop writing to it.
* 2611Kartik K. Agaram2016-01-271-1/+1
|
* 2557 - type-check most ingredients ahead of timeKartik K. Agaram2016-01-121-6/+0
|
* 2494Kartik K. Agaram2015-11-281-1/+1
| | | | | Some more structure to transforms, and flattening of dependencies between them.
* 2383 - new concern: idempotence of transformsKartik K. Agaram2015-11-061-2/+2
| | | | | I'd not paid any attention to it so far, but I need to do so from now on.
* 2379 - further improvements to map operationsKartik K. Agaram2015-11-061-6/+6
| | | | | | | Commands run: $ sed -i 's/\([^. (]*\)\.find(\([^)]*\)) != [^.]*\.end()/contains_key(\1, \2)/g' 0[^0]*cc $ sed -i 's/\([^. (]*\)\.find(\([^)]*\)) == [^.]*\.end()/!contains_key(\1, \2)/g' 0[^0]*cc
* 2377 - stop using operator[] in mapKartik K. Agaram2015-11-061-4/+4
| | | | | | | | | | | | | | | | I'm still seeing all sorts of failures in turning on layer 11 of edit/, so I'm backing away and nailing down every culprit I run into. First up: stop accidentally inserting empty objects into maps during lookups. Commands run: $ sed -i 's/\(Recipe_ordinal\|Recipe\|Type_ordinal\|Type\|Memory\)\[\([^]]*\)\] = \(.*\);/put(\1, \2, \3);/' 0[1-9]* $ vi 075scenario_console.cc # manually fix up Memory[Memory[CONSOLE]] $ sed -i 's/\(Memory\)\[\([^]]*\)\]/get_or_insert(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe_ordinal\|Type_ordinal\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe\|Type\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* Now mu dies pretty quickly because of all the places I try to lookup a missing value.
* 2360Kartik K. Agaram2015-11-041-2/+2
| | | | | | | | | More flailing around trying to come up with the right phase ordering. I've tried to narrow down each transform's constraints wrt transforms in previous layers. One issue that keeps biting me is the Type map containing empty records because of stray [] operations. That's gotta be important.
* 2358 - starting to tackle the phase ordering problemKartik K. Agaram2015-11-041-3/+3
| | | | | | | A new externality is starting to make its presence felt. Until I sort this out it's going to be hard to finish making duplex-list generic.
* 2357Kartik K. Agaram2015-11-041-1/+1
|
* 2306 - recipe headersKartik K. Agaram2015-10-281-2/+4
| | | | | | | | | | Once a student has gotten used to recipes and ingredients using the staged 'next-ingredient' approach there's no reason to avoid conventional function headers. As an added bonus we can now: a) check that all 'reply' instructions in a recipe are consistent b) deduce what to reply without needing to say so everytime c) start thinking about type parameters for recipes (generic functions!)
* 2283 - represent each /property as a treeKartik K. Agaram2015-10-261-1/+1
|
* 2258 - separate warnings from errorsKartik K. Agaram2015-10-061-7/+7
| | | | | | | At the lowest level I'm reluctantly starting to see the need for errors that stop the program in its tracks. Only way to avoid memory corruption and security issues. But beyond that core I still want to be as lenient as possible at higher levels of abstraction.
* 2149Kartik K. Agaram2015-09-051-2/+2
|
* 2138 - warn on jump to an ambiguous labelKartik K. Agaram2015-09-041-41/+172
| | | | | | | | | | | | | | | | | | | | This seemingly simple goal uncovered a little nest of bugs: it turns out I've been awash in ambiguous labels until now. My baseline recipes in edit.mu were clean, but they introduced duplicate <waypoints> -- and *those* waypoints contained +jump-targets. Result: duplicate jump targets, so that I wasn't jumping where I thought I was jumping. Somehow I happened to be picking one of the alternatives that magically kept these issues quiescent. My first plan to fix this was to mangle names of all labels inside before/after fragments, keep the jump targets private to their fragment. But the labels also include more waypoints! Mangle those, and I can't tangle to them anymore. Solution: harden the convention that jump targets begin with '+' and waypoints are surrounded by '<>'. Mangle jump targets occurring inside before/after fragments to keep them private to their lexical fragment, but *don't* mangle waypoints, which must remain globally accessible.
* 2095Kartik K. Agaram2015-08-281-4/+0
| | | | | | | | | | | | Finally terminate the experiment of keeping debug prints around. I'm also going to give up on maintaining counts. What we really need is two kinds of tracing: a) For tests, just the domain-specific facts, organized by labels. b) For debugging, just transient dumps to stdout. b) only works if stdout is clean by default. Hmm, I think this means 'stash' should be the transient kind of trace.
* 1945Kartik K. Agaram2015-08-061-19/+68
| | | | | | Turns out it is indeed useful to insert code at multiple duplicate labels within a single (long) recipe. Like handle-keyboard-event in edit.mu.
* 1939 - allow nested tanglingKartik K. Agaram2015-08-051-30/+49
| | | | However, you can't have duplicate labels within a single recipe.
* 1938 - warn on unused before/after fragmentsKartik K. Agaram2015-08-051-0/+27
|
* 1870Kartik K. Agaram2015-07-281-0/+198
Kartik K. Agaram <vc@akkartik.com> 2015-04-08 00:47:04 -0700 1037 - support scenarios in mu files' href='/akkartik/mu/commit/cpp/031scenario?h=hlt&id=e38c85a1eb6a0107ed43d7d7dbc9f4080a917c59'>e38c85a1 ^
23fd54f1 ^


7a84094a ^
23fd54f1 ^
acc4792d ^
23fd54f1 ^


7c9def3c ^
23fd54f1 ^
b0bf5321 ^
23fd54f1 ^
df0c0bab ^










9a81d746 ^
255cc288 ^

2186422c ^
4f95cdb0 ^
2186422c ^
4f95cdb0 ^
255cc288 ^
05331766 ^
f90a7a2b ^
41e8b437 ^
5a9e3a11 ^
6c96a437 ^
2a0e6275 ^
41e8b437 ^

6ff9413c ^
41e8b437 ^

255cc288 ^
4f95cdb0 ^



6c96a437 ^
2a0e6275 ^
4f95cdb0 ^

6ff9413c ^
4f95cdb0 ^
5a9e3a11 ^
4f95cdb0 ^
255cc288 ^
78e3f553 ^







60e11efc ^
4f95cdb0 ^

60e11efc ^

a70d593d ^
ba32c4f0 ^
6c96a437 ^
ba32c4f0 ^
838b1afc ^



ba32c4f0 ^


a70d593d ^


77469816 ^
5f05e954 ^
77469816 ^
255cc288 ^
22b30692 ^
77469816 ^
de49fb42 ^
6c1376f8 ^
de49fb42 ^
de49fb42 ^
6573fe1f ^
de49fb42 ^
0d3f30c2 ^
ea5ff2d4 ^
dd0846dc ^

00e9ddeb ^

2ada05dc ^
4cec4143 ^
b5ab709c ^
a39df92d ^
f28f2636 ^




22b30692 ^


77469816 ^
e38c85a1 ^

49620728 ^


3e31f29a ^





49620728 ^
ea5ff2d4 ^

63e1c465 ^
ea5ff2d4 ^
d8509b41 ^
ea5ff2d4 ^


f385814f ^



ea5ff2d4 ^








1211a3ab ^
ea5ff2d4 ^









7a84094a ^
ea5ff2d4 ^




4cec4143 ^
ea5ff2d4 ^

c5e965d8 ^

a0b9fa55 ^
5ed9bb13 ^
a0b9fa55 ^
1ead3562 ^
7a84094a ^
c5e965d8 ^
1ead3562 ^
7a84094a ^
c5e965d8 ^
5ed9bb13 ^
c5e965d8 ^
195a846b ^








00e9ddeb ^







a0b9fa55 ^
793fcf5f ^
c5e965d8 ^
255cc288 ^
9a81d746 ^

255cc288 ^
6f65d591 ^
6573fe1f ^
255cc288 ^
255cc288 ^
1ead3562 ^
255cc288 ^
7a84094a ^
255cc288 ^



6f65d591 ^






166e3c0d ^
dd0846dc ^
255cc288 ^
1ead3562 ^
255cc288 ^
7a84094a ^
255cc288 ^

7a84094a ^
255cc288 ^




5f98a10c ^
b56c564c ^
255cc288 ^
260c3de2 ^

ec99eb7a ^
260c3de2 ^

255cc288 ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^




3e31f29a ^
255cc288 ^



795f5244 ^
166e3c0d ^



255cc288 ^

b2c86f7a ^
0487a30e ^
255cc288 ^






b24eb476 ^
255cc288 ^

08cf048f ^
255cc288 ^
66abe7c1 ^

3e31f29a ^
66abe7c1 ^

0f125d5f ^
255cc288 ^


b24eb476 ^
255cc288 ^


94c42090 ^
66abe7c1 ^

3e31f29a ^
66abe7c1 ^

94c42090 ^
3e31f29a ^

63f3ada6 ^
94c42090 ^


f3760b0f ^
3e31f29a ^
cdd6fd09 ^
795f5244 ^
3e31f29a ^

63f3ada6 ^
77469816 ^

255cc288 ^





93d4cc93 ^
0f125d5f ^
255cc288 ^

66abe7c1 ^

3e31f29a ^
66abe7c1 ^

255cc288 ^


66abe7c1 ^

3e31f29a ^
66abe7c1 ^

b24eb476 ^
255cc288 ^
f4fd623f ^




05d17773 ^
b56c564c ^
255cc288 ^

1211a3ab ^
9dcbec39 ^
255cc288 ^

b56c564c ^



3e31f29a ^
b56c564c ^
63f3ada6 ^
047296d8 ^

b56c564c ^
6c96a437 ^
b56c564c ^

3e31f29a ^
b56c564c ^
63f3ada6 ^
047296d8 ^

255cc288 ^



260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^




3e31f29a ^
255cc288 ^
b56c564c ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
7a84094a ^



255cc288 ^
167d0ca0 ^
255cc288 ^

b56c564c ^
255cc288 ^
b56c564c ^
1ead3562 ^
7a84094a ^



255cc288 ^
167d0ca0 ^
255cc288 ^

b56c564c ^
255cc288 ^



94c42090 ^


1ead3562 ^
94c42090 ^



3e31f29a ^
94c42090 ^
f4fd623f ^












94c42090 ^


1ead3562 ^
94c42090 ^




a3a0574f ^
94c42090 ^
255cc288 ^




5f98a10c ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^




3e31f29a ^
255cc288 ^



795f5244 ^
166e3c0d ^



255cc288 ^

b2c86f7a ^
0487a30e ^
255cc288 ^



5f98a10c ^
255cc288 ^
afb467ea ^
255cc288 ^
5feb36ff ^
afb467ea ^
b24eb476 ^
6c96a437 ^
5feb36ff ^

255cc288 ^

afb467ea ^
255cc288 ^
3e31f29a ^


570494f2 ^

dddc384c ^
d9cd13ad ^

5feb36ff ^
255cc288 ^
5feb36ff ^
6c96a437 ^
0487a30e ^

b24eb476 ^
d2cf04d1 ^
3e31f29a ^
d2cf04d1 ^


5feb36ff ^
255cc288 ^



5f98a10c ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^
65b3db5d ^
255cc288 ^





3e31f29a ^
255cc288 ^

260c3de2 ^
1ead3562 ^
255cc288 ^
65b3db5d ^
255cc288 ^




2e1f630f ^
5f98a10c ^
255cc288 ^




5f98a10c ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^
65b3db5d ^
255cc288 ^




3e31f29a ^
255cc288 ^



795f5244 ^
166e3c0d ^



255cc288 ^

b2c86f7a ^
0487a30e ^
255cc288 ^



5f98a10c ^
255cc288 ^


5feb36ff ^
6c96a437 ^
5feb36ff ^
3e31f29a ^
dddc384c ^
255cc288 ^






260c3de2 ^
1ead3562 ^
255cc288 ^



2e1f630f ^
5f98a10c ^
255cc288 ^
5f98a10c ^
260c3de2 ^
5f98a10c ^
1ead3562 ^
255cc288 ^
65b3db5d ^
255cc288 ^





3e31f29a ^
255cc288 ^
2ef12021 ^
1ead3562 ^
2ef12021 ^




a9a2f7db ^
2ef12021 ^



795f5244 ^
166e3c0d ^
2ef12021 ^
166e3c0d ^
2b250717 ^
2ef12021 ^

5f98a10c ^
9dcbec39 ^
2ef12021 ^

78c50205 ^
9dcbec39 ^
2ef12021 ^

166e3c0d ^




b24eb476 ^
2ef12021 ^
b24eb476 ^
2ef12021 ^
3e31f29a ^

606decec ^
4cb5b567 ^
2ef12021 ^



bd5d3936 ^


























3e31f29a ^



bd5d3936 ^

bd5d3936 ^































3e31f29a ^



bd5d3936 ^

bd5d3936 ^




2ef12021 ^

5f98a10c ^
1ead3562 ^
2ef12021 ^




3e31f29a ^
2ef12021 ^
805fde84 ^
9a81d746 ^
805fde84 ^


ea5ff2d4 ^

















6c96a437 ^
ea5ff2d4 ^





b39ceb27 ^

22b30692 ^
255cc288 ^

df0c0bab ^
255cc288 ^

1326a4ec ^
255cc288 ^
66abe7c1 ^




255cc288 ^



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
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923