about summary refs log tree commit diff stats
path: root/012transform.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2494Kartik K. Agaram2015-11-281-0/+8
| | | | | Some more structure to transforms, and flattening of dependencies between them.
* 2458 - edit/: recipe side free of sandbox errorsKartik K. Agaram2015-11-181-0/+1
| | | | | | | | | This is happening because of our recent generic changes, which trigger some post-processing transforms on all recipes even if we processed them before. We could clear 'interactive' inside 'reload' to avoid this, but random 'run' blocks in scenarios can still pick up errors from sandboxes earlier in a scenario. The right place to clear the 'interactive' recipe is right after we use it, in run_code_end().
* 2393 - redo 2391Kartik K. Agaram2015-11-071-1/+1
| | | | | | | | | | | Got that idea to work with a special-case for 'new'. Requires parsing new's first ingredient, performing the replacement, and then turning it back into a string. I didn't want to replace NEW with ALLOCATE right here, because then it messes with my invariant that transform should never see a naked ALLOCATE. Layer 11 still not working, but everything else is. Let's clean up before we diagnose the new breakage.
* 2392 - undo 2391Kartik K. Agaram2015-11-071-1/+1
| | | | Yup, type ingredients were taking size 1 by default.
* 2391Kartik K. Agaram2015-11-071-1/+1
| | | | | | | | | | | | | No, my idea was abortive. My new plan was to run no transforms for generic recipes, and instead only run them on concrete specializations as they're created. The trouble with this approach is that new contains a type specification in its ingredient which apparently needed to be transformed into an allocate before specialization. But no, how was that working? How was new computing size based on type ingredients? It might have been wrong all along.
* 2382Kartik K. Agaram2015-11-061-0/+1
| | | | Starting to leave commented out prints again out of desperation.
* 2374 - now edit works until layer 8Kartik K. Agaram2015-11-051-4/+0
|
* 2373 - bad bug: instruction was losing /lookupKartik K. Agaram2015-11-051-0/+4
|
* 2364Kartik K. Agaram2015-11-051-0/+10
|
* 2358 - starting to tackle the phase ordering problemKartik K. Agaram2015-11-041-1/+5
| | | | | | | 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.
* 2316 - preparing for static dispatchKartik K. Agaram2015-10-291-1/+2
|
* 2311Kartik K. Agaram2015-10-291-0/+4
|
* 2154 - check types only after loading all layersKartik K. Agaram2015-09-051-0/+1
| | | | | Follow-up to 2147, which switched transform_all to only run once, after loading all layers.
* 2095Kartik K. Agaram2015-08-281-2/+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.
* 1702 - experiment: start using 'ordinal' in namesKartik K. Agaram2015-07-041-4/+4
| | | | | | | It comes up pretty early in the codebase, but hopefully won't come up in the mu level until we get to higher-order recipes. Potentially intimidating name, but such prime real estate with no confusing overloadings in other projects!
* 1699 - first-class recipe typesKartik K. Agaram2015-07-031-0/+1
| | | | | It should now be easy to do dynamic dispatch, create higher-order functions, etc.
* 1399 - better 'unknown type' warningsKartik K. Agaram2015-05-181-1/+1
| | | | | | | | Implement warnings for types without definitions without constraining where type definitions must appear. We also eliminate the anti-pattern where a change in layer 10 had its test in layer 11 (commit 1383).
* 1391 - avoid unsigned integersKartik K. Agaram2015-05-171-5/+5
|
* 1387Kartik K. Agaram2015-05-161-2/+2
|
* 1357 - temporarily revert floating-point supportKartik K. Agaram2015-05-121-1/+1
|
* 1356 - snapshot #2: floating point supportKartik K. Agaram2015-05-121-1/+1
| | | | | | | | | | | | | | | I added one test to check that divide can return a float, then hacked at the rippling failures across the entire entire codebase until all tests pass. Now I need to look at the changes I made and see if there's a system to them, identify other places that I missed, and figure out the best way to cover all cases. I also need to show real rather than encoded values in the traces, but I can't use value() inside reagent methods because of the name clash with the member variable. So let's take a snapshot before we attempt any refactoring. This was non-trivial to get right. Even if I convince myself that I've gotten it right, I might back this all out if I can't easily *persuade others* that I've gotten it right.
* 1343Kartik K. Agaram2015-05-111-1/+1
|
* 1323 - keyboard supports backspace and newlineKartik K. Agaram2015-05-101-5/+2
| | | | | | Lots mixed into this commit: some off-by-one errors in display.cc a new transform to translate jump labels that I'd somehow never gotten around to supporting
* 1299 - stop using [] in any vectorKartik K. Agaram2015-05-071-4/+4
| | | | | | | | | Useful check: $ grep "[^ '\"]\[[^\"]" *.cc \ |perl -pwe 's/\Wargv\[|\WTests\[|\Wframe\[|\WMemory\[|\WName\[|\WSurrounding_space\[|\WRecipe\[|\WType\[|\WRecipe_number\[|\WType_number\[|\WBefore_fragments\[|\WAfter_fragments\[//g' \ |perl -pwe 's/\Wargv\[|\WTests\[|\Wframe\[|\WMemory\[|\WName\[|\WSurrounding_space\[|\WRecipe\[|\WType\[|\WRecipe_number\[|\WType_number\[|\WBefore_fragments\[|\WAfter_fragments\[//g' \ |grep '[^ ]\['
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-051-0/+55
I've tried to update the Readme, but there are at least a couple of issues.
re>
760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^



760f683f ^
5203ba0c ^




9dcbec39 ^
5203ba0c ^




760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

9dcbec39 ^
5203ba0c ^



760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^






a0331a9b ^
5203ba0c ^



760f683f ^
5203ba0c ^

a0331a9b ^
5203ba0c ^

9dcbec39 ^
5203ba0c ^


a0331a9b ^
5203ba0c ^



760f683f ^
5203ba0c ^

01ce563d ^
5203ba0c ^
a0331a9b ^
5203ba0c ^





5203ba0c ^


a0331a9b ^
5203ba0c ^

760f683f ^
5203ba0c ^

9dcbec39 ^
5203ba0c ^

5203ba0c ^


a0331a9b ^
5203ba0c ^

a0331a9b ^
5203ba0c ^
760f683f ^
5203ba0c ^



0d3a6f20 ^











5203ba0c ^

760f683f ^
5203ba0c ^


760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^
760f683f ^
5203ba0c ^







760f683f ^
5203ba0c ^


760f683f ^
5203ba0c ^







760f683f ^
5203ba0c ^







760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^






760f683f ^
5203ba0c ^
9dcbec39 ^
5203ba0c ^



aae198a9 ^
760f683f ^
897ae8c1 ^
5203ba0c ^

514f0e34 ^
760f683f ^
aae198a9 ^
5203ba0c ^
aae198a9 ^
5203ba0c ^

897ae8c1 ^
5203ba0c ^
760f683f ^
5203ba0c ^






d8509b41 ^
5203ba0c ^






6c96a437 ^
5203ba0c ^
5203ba0c ^

2caaa7f1 ^
5203ba0c ^
6c96a437 ^
5203ba0c ^

f222051e ^
5203ba0c ^




2caaa7f1 ^
5203ba0c ^




6c96a437 ^
5203ba0c ^



dc16b228 ^

f222051e ^
dc16b228 ^
5203ba0c ^








6c96a437 ^
5203ba0c ^






2caaa7f1 ^
5203ba0c ^
6c96a437 ^
5203ba0c ^



6c96a437 ^
5203ba0c ^
5203ba0c ^






059def11 ^

























2caaa7f1 ^













5203ba0c ^



7a84094a ^
760f683f ^
5203ba0c ^


760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^



9dcbec39 ^
5203ba0c ^

2caaa7f1 ^
5203ba0c ^
6c96a437 ^
5203ba0c ^



2b250717 ^
5203ba0c ^
2b250717 ^
5203ba0c ^





6c96a437 ^
5203ba0c ^












2b250717 ^
5203ba0c ^
2b250717 ^
5203ba0c ^




5203ba0c ^

2b250717 ^
5203ba0c ^
2b250717 ^
5203ba0c ^




d8509b41 ^
5203ba0c ^

9dcbec39 ^
5203ba0c ^






6c96a437 ^
5203ba0c ^





2caaa7f1 ^
5203ba0c ^
6c96a437 ^
5203ba0c ^











9a81d746 ^
5203ba0c ^







7a84094a ^
760f683f ^
5203ba0c ^


760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^

760f683f ^
5203ba0c ^



760f683f ^
5203ba0c ^








af023b32 ^
8e64ab8b ^

af023b32 ^
8e64ab8b ^
5203ba0c ^

8e64ab8b ^
c0d61295 ^
8e64ab8b ^



c0d61295 ^
8e64ab8b ^

01ce563d ^
8e64ab8b ^

c0d61295 ^












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