about summary refs log tree commit diff stats
path: root/tangle
Commit message (Collapse)AuthorAgeFilesLines
* 5001 - drop the :(scenario) DSLKartik Agaram2019-03-124-583/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've been saying for a while[1][2][3] that adding extra abstractions makes things harder for newcomers, and adding new notations doubly so. And then I notice this DSL in my own backyard. Makes me feel like a hypocrite. [1] https://news.ycombinator.com/item?id=13565743#13570092 [2] https://lobste.rs/s/to8wpr/configuration_files_are_canary_warning [3] https://lobste.rs/s/mdmcdi/little_languages_by_jon_bentley_1986#c_3miuf2 The implementation of the DSL was also highly hacky: a) It was happening in the tangle/ tool, but was utterly unrelated to tangling layers. b) There were several persnickety constraints on the different kinds of lines and the specific order they were expected in. I kept finding bugs where the translator would silently do the wrong thing. Or the error messages sucked, and readers may be stuck looking at the generated code to figure out what happened. Fixing error messages would require a lot more code, which is one of my arguments against DSLs in the first place: they may be easy to implement, but they're hard to design to go with the grain of the underlying platform. They require lots of iteration. Is that effort worth prioritizing in this project? On the other hand, the DSL did make at least some readers' life easier, the ones who weren't immediately put off by having to learn a strange syntax. There were fewer quotes to parse, fewer backslash escapes. Anyway, since there are also people who dislike having to put up with strange syntaxes, we'll call that consideration a wash and tear this DSL out. --- This commit was sheer drudgery. Hopefully it won't need to be redone with a new DSL because I grow sick of backslashes.
* 4980Kartik Agaram2019-02-181-8/+8
|
* 4979Kartik Agaram2019-02-182-1/+112
|
* 4406Kartik Agaram2018-07-252-2/+29
| | | | Fix CI.
* 4405Kartik Agaram2018-07-252-25/+69
|
* 4404 - clean up generated code for scenariosKartik Agaram2018-07-252-23/+65
| | | | Thanks Max Bernstein for the feedback.
* 4403Kartik Agaram2018-07-252-1/+7
| | | | | | Couple of improvements for the tangle/ directory: a) Start running tangle unit tests at build time again. b) Option to print out test names as they run, just like in top-level.
* 4402Kartik Agaram2018-07-251-19/+99
|
* 4401 - make unit tests for tangle a little more readableKartik Agaram2018-07-251-41/+200
| | | | Thanks Max Bernstein for surfacing this idea to my memory.
* 4000Kartik K. Agaram2017-09-151-0/+1
|
* 3839Kartik K. Agaram2017-04-202-3/+20
| | | | | | Fix CI. In the process I also fixed a bug in the tangle/ utility.
* 3726Kartik K. Agaram2016-12-301-0/+1
|
* 3711Kartik K. Agaram2016-12-265-13/+3
| | | | | Delete '^L' characters now that I'm trying to switch from Vim to Kakoune. Pages aren't text objects in Kakoune.
* 3550Kartik K. Agaram2016-10-222-2/+2
|
* 3450Kartik K. Agaram2016-10-061-25/+0
| | | | Purge remaining `makefile`s, without breaking CI.
* 3448Kartik K. Agaram2016-10-061-5/+5
| | | | Drop perl dependency everywhere.
* 3363 - bugfix in tangleKartik K. Agaram2016-09-152-1/+12
|
* 3361Kartik K. Agaram2016-09-151-7/+7
|
* 3278Kartik K. Agaram2016-08-291-5/+2
|
* 3218Kartik K. Agaram2016-08-172-0/+14
| | | | | | Fix CI. Scenario size_of_shape_shifting_exclusive_container was triggering undefined behavior in tangle/ and causing things to break in some compilers but not others.
* 3217Kartik K. Agaram2016-08-171-2/+2
| | | | Fix a new warning from Perl.
* 3101 - purge .traces/ dir from repo historyKartik K. Agaram2016-07-052-13/+0
| | | | | | | | | | | | | | | | | | | | | I'd been toying with this idea for some time now given how large the repo had been growing. The final straw was noticing that people cloning the repo were having to wait *5 minutes*! That's not good, particularly for a project with 'tiny' in its description. After purging .traces/ clone time drops to 7 seconds in my tests. Major issue: some commits refer to .traces/ but don't really change anything there. That could get confusing :/ Minor issues: a) I've linked inside commits on GitHub like a half-dozen times online or over email. Those links are now liable to eventually break. (I seem to recall GitHub keeps them around as long as they get used at least once every 60 days, or something like that.) b) Numbering of commits is messed up because some commits only had changes to the .traces/ sub-directory.
* 3063Kartik K. Agaram2016-06-193-6/+5
|
* 2768 - get working in Linux againKartik K. Agaram2016-03-131-0/+2
| | | | Need to start testing every commit on Linux in addition to Mac.
* 2760Kartik K. Agaram2016-03-112-0/+0
|
* 2759Kartik K. Agaram2016-03-105-316/+19
| | | | Clean up tangle/ helper.
* 2575 - better messages on trace count failuresKartik K. Agaram2016-01-192-3/+3
|
* 1746 - load file and run a single testKartik K. Agaram2015-07-101-1/+1
| | | | $ ./mu test run-instruction-and-print-warnings
* 1676Kartik K. Agaram2015-06-281-1/+1
|
* 1501Kartik K. Agaram2015-05-282-14/+28
|
* 1500Kartik K. Agaram2015-05-281-0/+5
|
* 1483 - *really* check color screens in scenariosKartik K. Agaram2015-05-272-17/+12
| | | | | | | | | | | | | | | | | Required fixing two levels of bugs: a) The hack in tangle to drop initial comments a '%' directive.. b) ..was masking a bug where run_mu_scenario wasn't robust to initial comments. Mildly concerned that neither of the sub-issues have their own tests, but I'm just removing hacks, and writing tests for that throwaway function like run_mu_scenario seems pointless. Instead I've solved the problem by disallowing comments before '%' directives. I've also taken this opportunity to at least try to document the 'scenarios' and '%' directives at the first layer where they appear.
* 1439 - support clang in addition to gccKartik K. Agaram2015-05-231-1/+1
|
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-058-0/+1488
I've tried to update the Readme, but there are at least a couple of issues.
blame/003trace.cc?h=hlt&id=0608409526d1a33265fa6ed20797eef45a79f78e'>^
aa2fd725 ^
c442a5ad ^
90e6596f ^
c442a5ad ^
8359e579 ^
6e1eeeeb ^
c442a5ad ^

aa2fd725 ^
c442a5ad ^

fd6d8612 ^





4a943d4e ^
fd6d8612 ^
c442a5ad ^



51530916 ^
c442a5ad ^












6e1eeeeb ^
8cf59120 ^
1ba81b0f ^
6e1eeeeb ^

1ba81b0f ^
6e1eeeeb ^
8359e579 ^

6e1eeeeb ^
8359e579 ^
6e1eeeeb ^

8359e579 ^

6e1eeeeb ^



8359e579 ^


6e1eeeeb ^
8359e579 ^





c442a5ad ^

b5ab709c ^
4a943d4e ^
c442a5ad ^








1ba81b0f ^
c442a5ad ^
93d4cc93 ^


c442a5ad ^
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 ^
6e1eeeeb ^

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 ^













c442a5ad ^

065c0184 ^


ab02bb66 ^
c442a5ad ^

90e6596f ^
6e1eeeeb ^
14a06183 ^
d260b017 ^
c442a5ad ^




90e6596f ^
c442a5ad ^









6e1eeeeb ^
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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523