about summary refs log tree commit diff stats
path: root/010vm.cc
Commit message (Collapse)AuthorAgeFilesLines
* 1416Kartik K. Agaram2015-05-211-0/+2
|
* 1414 - traces now robust to new recipes/typesKartik K. Agaram2015-05-211-9/+6
|
* 1407Kartik K. Agaram2015-05-191-1/+1
|
* 1399 - better 'unknown type' warningsKartik K. Agaram2015-05-181-2/+4
| | | | | | | | 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-14/+14
|
* 1390 - support non-integer literalsKartik K. Agaram2015-05-171-2/+2
| | | | | | | | | | | | | | | | | | | | Since '3.14159:literal' looks ugly, we'll just say '3.14159'. It's not like non-integers can be confused for anything but literals. Once I tried to turn reagent values into doubles, I uncovered a bug: arithmetic using signed integers is busted; if either operand of subtraction is unsigned the result is unsigned as well. If it needs to be negative: ka-boom. It was only masked because I was eventually storing the result in a long long int, where it was out of range, and so overflowing into the correct signed value. Once I switched to doubles the unsigned value would indeed fit without overflowing. Ka-boom. Yet another reminder that unsigned integers suck. I started using them mostly to avoid warnings in loops when comparing with .size(), which is usually a size_t. Who knows what other crap lurks here. Just use signed integers everywhere. (And avoid bitwise operators.)
* 1383 - warn on unknown typeKartik K. Agaram2015-05-161-1/+4
| | | | | | | | | | | | | This bit me in the last commit for the first time. Layer 010vm.cc is starting to look weird. It has references to stuff that gets implemented much later, like containers and exclusive containers. Its helpers are getting an increasing amount of logic. And it has no tests. I'm still inclined to think it's useful to have major data structures in one place, even if they aren't used for a bit. But those helpers should perhaps move out somehow or get some tests in the same layer.
* 1363 - rename 'integer' to 'number'Kartik K. Agaram2015-05-131-5/+5
| | | | ..now that we support non-integers.
* 1360 - store doubles in memoryKartik K. Agaram2015-05-121-2/+2
| | | | | | | | | | | | | This is a far cleaner way to provide *some* floating-point support. We can only represent signed integers up to 2^51 rather than 2^63. But in exchange we don't have to worry about it elsewhere, and it's probably faster than checking tag bits in every operation. Hmm, yeah, surprised how easy this was. I think I'll give up on the other approach. I still don't have non-integer literals. But we won't bother with those until we need them. `3.14159:literal` seems ugly.
* 1357 - temporarily revert floating-point supportKartik K. Agaram2015-05-121-1/+1
|
* 1351Kartik K. Agaram2015-05-121-3/+2
|
* 1299 - stop using [] in any vectorKartik K. Agaram2015-05-071-11/+11
| | | | | | | | | 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/+259
I've tried to update the Readme, but there are at least a couple of issues.
shifting in html docs' href='/akkartik/mu/commit/html/023boolean.cc.html?h=main&id=76755b2836b0dadd88f82635f661f9d9df77604d'>76755b28 ^
4690ce81 ^
d059fe74 ^
4690ce81 ^
2f02189d ^
76755b28 ^


4690ce81 ^
c842d90b ^
4690ce81 ^


2f02189d ^
4690ce81 ^

76755b28 ^

672e3e50 ^
4690ce81 ^

d059fe74 ^
65361948 ^
65361948 ^

672e3e50 ^



3e1349d2 ^
f344b250 ^


672e3e50 ^
672e3e50 ^

90560d71 ^
3e1349d2 ^
f344b250 ^
65361948 ^



3e1349d2 ^
f344b250 ^
65361948 ^


90560d71 ^
3e1349d2 ^
f344b250 ^
65361948 ^


672e3e50 ^


76755b28 ^

4690ce81 ^
d059fe74 ^
4690ce81 ^
2f02189d ^
76755b28 ^


4690ce81 ^
c842d90b ^
4690ce81 ^


2f02189d ^
4690ce81 ^

76755b28 ^

672e3e50 ^
4690ce81 ^

d059fe74 ^
65361948 ^
65361948 ^

672e3e50 ^



3e1349d2 ^
f344b250 ^


672e3e50 ^
672e3e50 ^

90560d71 ^
3e1349d2 ^
f344b250 ^
65361948 ^



3e1349d2 ^
f344b250 ^
65361948 ^


90560d71 ^
3e1349d2 ^
f344b250 ^
65361948 ^


672e3e50 ^


76755b28 ^

4690ce81 ^
0cac7022 ^
c842d90b ^
76755b28 ^

d059fe74 ^
4690ce81 ^
2f02189d ^
4690ce81 ^


d059fe74 ^
4690ce81 ^

2f02189d ^
76755b28 ^




672e3e50 ^
4690ce81 ^
9542bb11 ^
d059fe74 ^
65361948 ^

672e3e50 ^



3e1349d2 ^
f344b250 ^

672e3e50 ^
672e3e50 ^
65361948 ^

3e1349d2 ^
f344b250 ^
65361948 ^



672e3e50 ^


a654e4ec ^
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