about summary refs log tree commit diff stats
path: root/091run_interactive.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2773 - switch to 'int'Kartik K. Agaram2016-03-131-14/+14
| | | | This should eradicate the issue of 2771.
* 2735 - define recipes using 'def'Kartik K. Agaram2016-03-081-12/+12
| | | | | | | | | | | | 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
|
* 2707Kartik K. Agaram2016-02-251-8/+1
|
* 2704 - eradicate all mention of warnings from coreKartik K. Agaram2016-02-251-2/+2
|
* 2703Kartik K. Agaram2016-02-251-6/+4
|
* 2702Kartik K. Agaram2016-02-251-16/+16
|
* 2685Kartik K. Agaram2016-02-191-3/+3
| | | | | | | | | | | | | | | | Stack of plans for cleaning up replace_type_ingredients() and a couple of other things, from main problem to subproblems: include type names in the type_tree rather than in the separate properties vector make type_tree and string_tree real cons cells, with separate leaf nodes redo the vocabulary for dumping various objects: do we really need to_string and debug_string? can we have a version with *all* information? can we have to_string not call debug_string? This commit nibbles at the edges of the final task, switching from member method syntax to global function like almost everything else. I'm mostly using methods just for STL in this project.
* 2628Kartik K. Agaram2016-02-051-0/+1
| | | | | Ran into a crash here while loading Caleb's deck-of-war program. Not bothering debugging it..
* 2576 - distinguish allocated addresses from othersKartik K. Agaram2016-01-191-30/+30
| | | | | | | | | | | | | | | | This is the one major refinement on the C programming model I'm planning to introduce in mu. Instead of Rust's menagerie of pointer types and static checking, I want to introduce just one new type, and use it to perform ref-counting at runtime. So far all we're doing is updating new's interface. The actual ref-counting implementation is next. One implication: I might sometimes need duplicate implementations for a recipe with allocated vs vanilla addresses of the same type. So far it seems I can get away with just always passing in allocated addresses; the situations when you want to pass an unallocated address to a recipe should be few and far between.
* 2562Kartik K. Agaram2016-01-171-1/+1
| | | | | | | | | | | | We want to use the type 'recipe' for recipe *variables*, because it seems nicer to say `recipe number -> number` rather than recipe-ordinal, etc. To support this we'll allow recipe names to be mentioned without any type. This might make a couple of places in this commit more brittle. I'm dropping error messages, causing them to not happen in some situations. Maybe I should just bite the bullet and require an explicit :recipe-literal. We'll see.
* 2553 - keep failed specializations from generating spurious errorsKartik K. Agaram2015-12-281-1/+0
| | | | Thanks Caleb Couch.
* three bugs fixedKartik K. Agaram2015-12-151-4/+70
| | | | | | | | | | | | | | | | | - notes bug in edit/ triggers in immutable but not master branch bug triggered by changes to layer 059: we're finding an unspecialized call to 'length' in 'append_6' hard to debug because trace isn't complete just bring out the big hammer: use a new log file length_2 from recipes.mu is not being deleted (bug #1) so reload doesn't switch length to length_2 when variant_already_exists (bug #2) so we end up saving in Recipe for a primitive ordinal so no valid specialization is found for 'length' (bug #3) why doesn't it trigger in a non-interactive scenario? argh, wasn't checking for an empty line at end. ok, confidence restored.
* 2622Kartik K. Agaram2015-12-131-10/+10
|
* 2473 - bad idea to use /raw with multiple intentionsKartik K. Agaram2015-11-221-1/+1
| | | | | /raw is to express absolute addresses /unsafe is to sidestep type-checking in test setup
* 2467 - rename 'string' to 'text' everywhereKartik K. Agaram2015-11-211-3/+3
| | | | | | | | Not entirely happy with this. Maybe we'll find a better name. But at least it's an improvement. One part I *am* happy with is renaming string-replace to replace, string-append to append, etc. Overdue, now that we have static dispatch.
* 2464: edit/: update errors in shape-shifting recipesKartik K. Agaram2015-11-191-0/+17
| | | | | Requires carefully deleting specializations so that they can be reintroduced each time.
* 2458 - edit/: recipe side free of sandbox errorsKartik K. Agaram2015-11-181-2/+8
| | | | | | | | | 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().
* 2440Kartik K. Agaram2015-11-141-2/+1
| | | | | | In debugging 2438, I spent a while going around in circles trying to decide if there was a stray overload of 'interactive'. Part of the problem was the hacky delete of a recipe just above. Stop doing that.
* 2430 - make room for more transformsKartik K. Agaram2015-11-131-0/+452
t; 2012-04-30 02:36:45 +0100 Create history session' href='/danisanti/profani-tty/commit/test_prof_history.c?id=f21cb52ab025cfe1bc90226d7bb433fc775d390e'>f21cb52a ^
07308673 ^
f21cb52a ^

07308673 ^
f21cb52a ^
1d5046bc ^










6bad38c2 ^
07308673 ^
f21cb52a ^

07308673 ^
f21cb52a ^
1d5046bc ^

f21cb52a ^
1d5046bc ^

f21cb52a ^
07308673 ^
4531aebd ^

07308673 ^
4531aebd ^
1d5046bc ^

4531aebd ^
1d5046bc ^

4531aebd ^
07308673 ^
4531aebd ^

07308673 ^
4531aebd ^
1d5046bc ^

4531aebd ^
1d5046bc ^


4531aebd ^
07308673 ^
b6c5fef4 ^

07308673 ^
1730372e ^
1d5046bc ^







07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
1730372e ^

07308673 ^
1730372e ^
1d5046bc ^







07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^

07308673 ^
1730372e ^
1d5046bc ^







07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
1730372e ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
1730372e ^
1d5046bc ^
07308673 ^
1730372e ^

07308673 ^
8202255d ^
1d5046bc ^

8202255d ^
1d5046bc ^
07308673 ^
6bad38c2 ^
1d5046bc ^
07308673 ^
8202255d ^
1d5046bc ^
07308673 ^
8202255d ^
1d5046bc ^
8202255d ^
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