about summary refs log tree commit diff stats
path: root/037recipe.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2378Kartik K. Agaram2015-11-061-1/+1
| | | | | | Now we're starting to run up against the misbehavior introduced by generics: Type tries to insert rows for type ingredients. That is a no-no.
* 2377 - stop using operator[] in mapKartik K. Agaram2015-11-061-6/+6
| | | | | | | | | | | | | | | | 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.
* 2295 - drop first-class recipes and continuationsKartik K. Agaram2015-10-281-52/+0
| | | | Making life too complex at this time.
* 2294Kartik K. Agaram2015-10-281-1/+3
| | | | Bah, sick of CALL and continuations.
* 2283 - represent each /property as a treeKartik K. Agaram2015-10-261-1/+1
|
* 2277 - reagents now have a tree of typesKartik K. Agaram2015-10-251-3/+3
|
* 2271 - bugfix: traces cross-contaminating errorsKartik K. Agaram2015-10-191-0/+5
| | | | | | | | | | | | | | | | | | There were several places where we push a call on to a routine without incrementing call-stack depth, which was used to compute the depth at which to trace an instruction. So sometimes you ended up one depth lower than you started a call with. Do this enough times and instructions that should be traced at level 100 end up at level 0 and pop up as errors. Solution: since call-stack depth is only used for tracing, include it in the trace stream and make sure we reset it along with the trace stream. Then catch all places where we forget to increment call-stack depth and make sure we catch such places in the future. When I first ran into this with Caleb I thought there must be some way that we're writing some output into the warnings result. I didn't recognize that the spurious output as part of the trace, just at the wrong level.
* 2262 - strengthen some type checksKartik K. Agaram2015-10-071-1/+10
|
* 2258 - separate warnings from errorsKartik K. Agaram2015-10-061-2/+2
| | | | | | | 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.
* 2232Kartik K. Agaram2015-10-011-9/+10
|
* 2226 - standardize warning formatKartik K. Agaram2015-10-011-2/+2
| | | | | | | | Always show recipe name where error occurred. But don't show internal 'interactive' name for sandboxes, that's just confusing. What started out as warnings are now ossifying into errors that halt all execution. Is this how things went with C and Unix as well?
* 2137Kartik K. Agaram2015-09-031-1/+0
|
* 1868 - start using naked literals everywhereKartik K. Agaram2015-07-281-2/+2
| | | | First step to reducing typing burden. Next step: inferring types.
* 1848 - core instructions now check for ingredientsKartik K. Agaram2015-07-251-2/+10
| | | | Also standardized warnings.
* 1829Kartik K. Agaram2015-07-231-1/+1
|
* 1711 - start adding methods to editor-data objectsKartik K. Agaram2015-07-051-4/+6
| | | | The menu bar needs separate recipes to render and respond to events.
* 1702 - experiment: start using 'ordinal' in namesKartik K. Agaram2015-07-041-5/+5
| | | | | | | 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!
* 1701Kartik K. Agaram2015-07-041-4/+4
|
* 1699 - first-class recipe typesKartik K. Agaram2015-07-031-0/+51
It should now be easy to do dynamic dispatch, create higher-order functions, etc.
3c436a3c5d90972ca'>^
c442a5ad ^

51530916 ^
c442a5ad ^

d51abbf1 ^
c442a5ad ^

d51abbf1 ^
c442a5ad ^





















c442a5ad ^



c442a5ad ^















51530916 ^

c442a5ad ^
























fd6d8612 ^



aa2fd725 ^
c442a5ad ^


8359e579 ^
c442a5ad ^


aa2fd725 ^
c442a5ad ^

fd6d8612 ^





4a943d4e ^
fd6d8612 ^
c442a5ad ^



51530916 ^
c442a5ad ^













8cf59120 ^
1ba81b0f ^
c442a5ad ^
1ba81b0f ^
8359e579 ^















c442a5ad ^

b5ab709c ^
4a943d4e ^
c442a5ad ^








1ba81b0f ^
c442a5ad ^
93d4cc93 ^


c442a5ad ^
1ba81b0f ^
1441e507 ^










1ba81b0f ^
c442a5ad ^

















51530916 ^
baaf6d65 ^
5af83346 ^

c442a5ad ^
4e39c6bb ^

60c566ea ^
4e39c6bb ^






c442a5ad ^








4a943d4e ^
c442a5ad ^
4e39c6bb ^
fd6d8612 ^
2e72dc12 ^
60c566ea ^
06584c52 ^
4a943d4e ^
b24eb476 ^
ac0e9db5 ^
51530916 ^
ac0e9db5 ^
41f5188d ^

6c96a437 ^
f72f34d3 ^

51530916 ^
ac0e9db5 ^
51530916 ^
ac0e9db5 ^
41f5188d ^
51530916 ^

f72f34d3 ^







51530916 ^



c442a5ad ^




f72f34d3 ^
c442a5ad ^
f72f34d3 ^

41f5188d ^

51530916 ^

41f5188d ^
b5ab709c ^
51530916 ^
6c96a437 ^
41f5188d ^
e9445310 ^
51530916 ^
eba30983 ^
51530916 ^



75ab8732 ^


6c96a437 ^
75ab8732 ^







c442a5ad ^










51530916 ^

c442a5ad ^



8cf59120 ^
c442a5ad ^
51530916 ^

51530916 ^

ac0e9db5 ^
51530916 ^
ac0e9db5 ^

51530916 ^


7be15b8b ^
51530916 ^




7be15b8b ^








c442a5ad ^


4a943d4e ^
c442a5ad ^
















065c0184 ^


c442a5ad ^























8359e579 ^











c442a5ad ^


d7494165 ^












51530916 ^
385ff136 ^
51530916 ^
385ff136 ^
51530916 ^
385ff136 ^
2fb94e3c ^
51530916 ^
385ff136 ^
51530916 ^


385ff136 ^
51530916 ^

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