about summary refs log tree commit diff stats
path: root/edit
Commit message (Collapse)AuthorAgeFilesLines
* 2586 - show first sandbox with error in statusKartik K. Agaram2016-01-224-17/+69
|
* 2585 - label sandboxes with a numberKartik K. Agaram2016-01-226-29/+38
| | | | | | | | | It also seems useful that the number maps to the name of the file the sandbox is saved in. However this mapping is currently a happy accident and not actually tested. I'm starting to switch gears and help make the editor useable with many many sandboxes. This is just the first step of several.
* 2580 - check product type of 'maybe-convert'Kartik K. Agaram2016-01-201-10/+10
| | | | I had to undo some over-zealous changes in 2576.
* 2576 - distinguish allocated addresses from othersKartik K. Agaram2016-01-1911-1257/+1257
| | | | | | | | | | | | | | | | 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.
* 2558Kartik K. Agaram2016-01-121-2/+5
|
* 2548 - teach 'print' to print integersKartik K. Agaram2015-12-286-21/+38
| | | | | | | | | | Still can't print non-integer numbers, so this is a bit hacky. The big consequence is that you can't print literal characters anymore because of our rules about how we pick which variant to statically dispatch to. You have to save to a character variable first. Maybe I can add an annotation to literals..
* three bugs fixedKartik K. Agaram2015-12-152-0/+65
| | | | | | | | | | | | | | | | | - 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.
* rest of edit/ fixedKartik K. Agaram2015-12-154-8/+8
| | | | No more bugs; phew.
* layer 3 of edit/ now workingKartik K. Agaram2015-12-151-6/+8
| | | | | Now I complain before running if a call somewhere doesn't line up with its ingredients, or if no specialization can be made to match it.
* layers 1 and 2 of edit/ now workingKartik K. Agaram2015-12-152-5/+5
|
* 2480Kartik K. Agaram2015-11-271-2/+2
| | | | | | | A long-standing question resolved: why specializations sometimes skipped some names. Turns out cleanup is incomplete if Recipe_ordinal and Recipe aren't exactly lined up with each other, and the early exit in new_variant was breaking that constraint.
* 2477Kartik K. Agaram2015-11-271-2/+2
|
* 2476Kartik K. Agaram2015-11-271-1/+1
|
* 2474 - overload 'copy' and 'equal' for textKartik K. Agaram2015-11-221-1/+1
| | | | 2473 was the final bugfix holding this back.
* 2471Kartik K. Agaram2015-11-221-4/+0
|
* 2468 - overload print-character as just 'print'Kartik K. Agaram2015-11-217-31/+31
|
* 2467 - rename 'string' to 'text' everywhereKartik K. Agaram2015-11-216-24/+24
| | | | | | | | 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.
* 2466 - eliminate ':string' from scenariosKartik K. Agaram2015-11-211-1/+1
|
* 2464: edit/: update errors in shape-shifting recipesKartik K. Agaram2015-11-191-0/+49
| | | | | Requires carefully deleting specializations so that they can be reintroduced each time.
* 2460 - headers for remaining recipesKartik K. Agaram2015-11-181-3/+3
|
* 2458 - edit/: recipe side free of sandbox errorsKartik K. Agaram2015-11-181-0/+35
| | | | | | | | | 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().
* 2451 - drop zoom/maximize featureKartik K. Agaram2015-11-151-125/+0
| | | | | | | | | I notice that it isn't working perfectly; after maximize/unmaximize the editor stops wrapping text, like it still thinks the editor is maximized. We don't even use this feature anymore, do we? Just delete it rather than bother debugging.
* 2446 - drop '-duplex' namespacing in recipesKartik K. Agaram2015-11-156-77/+77
| | | | Great that it just worked after the previous commit.
* 2442Kartik K. Agaram2015-11-152-4/+2
| | | | | | Fix the drawback in the previous commit: if an ingredient is just a literal 0 we'll skip its type-checking and hope to map type ingredients elsewhere.
* 2441 - never miss any specializationsKartik K. Agaram2015-11-152-2/+4
| | | | | | | | | I was failing to specialize calls containing literals. And then I had to deal with whether literals should map to numbers or characters. (Answer: both.) One of the issues that still remains: shape-shifting recipes can't be called with literals for addresses, even if it's 0.
* 2428 - sandbox/ working againKartik K. Agaram2015-11-121-1/+0
|
* 2422 - a bugfix from the last lessonKartik K. Agaram2015-11-101-1/+59
| | | | Thanks Caleb Couch. This one's been on my list for 2 weeks.
* 2417 - support mutable ingredients in headersKartik K. Agaram2015-11-105-19/+20
| | | | | | If a name repeats between ingredients, we raise an error. If a name repeats across ingredients and products, every call should share the same name across the corresponding ingredients and products.
* 2404 - ah, finally a useful assertionKartik K. Agaram2015-11-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And it caught a bug: I mean to always update type names and types in sync. The last month or so I've been getting reluctantly but inexorably converted to the need and value of a type system. First I thought I just need a minimal but rigorous type system to avoid memory corruption and security issues. Now I think I also want it to be expressive enough to be able to express what data different phases in a compiler read and write, and to be able to designate specific fields as 'fully computed' so that we can statically check that phases wait until their data is available. The phase-ordering problem in a compiler is perhaps the canary in the coal-mine for a more general problem: even small changes can dramatically explode the state space if they violate assumptions previously held about the domain. My understanding of when type pointers are null and not null is immeasurably more nuanced today than it was a week ago, but I didn't need the nuance until I introduced generic functions. That initial draft of a hundred lines bumped me up to a much larger state space. How to make it more obvious when something happens that is akin to discovering a new continent, or finding oneself teleported to Jupiter? Assumptions can be implicit or explicit. Perhaps a delete of an assertion should be estimated at 1000 LoC of complexity?
* 2397Kartik K. Agaram2015-11-081-1/+1
| | | | | Fix that stray issue with a better phase ordering. Another thing I'm not testing.
* 2388 - final layer of edit/ loaded successfullyKartik K. Agaram2015-11-071-37/+36
|
* 2376Kartik K. Agaram2015-11-051-7/+7
|
* 2375 - layer 9 doneKartik K. Agaram2015-11-051-6/+5
|
* 2374 - now edit works until layer 8Kartik K. Agaram2015-11-054-79/+73
|
* 2371 - layer 5 of editKartik K. Agaram2015-11-054-68/+45
|
* 2370 - layers 1-4 of edit are backKartik K. Agaram2015-11-054-353/+312
| | | | | | | | | | | | One nice consequence of all my deduction of reply ingredients is that I can insert the same fragment into recipes with different headers, and everything works as long as reply instructions are implicitly deduced. One thing I had to fix to make this work was to move reply-deduction out of rewrite rules and turn it into a first-class transform, so that it happens after tangling. I'm glad to see the back of that hack inside <scroll-down>.
* 2369 - layer 1 of edit is backKartik K. Agaram2015-11-051-27/+16
|
* 2368 - start getting edit working againKartik K. Agaram2015-11-051-16/+11
| | | | | Still seeing repeated null refinements. Maybe my approach to fixing those errors is fundamentally broken.
* 2309Kartik K. Agaram2015-10-2811-468/+468
|
* 2267Kartik K. Agaram2015-10-091-1/+1
| | | | | Introducing a new 'newlayer' tag like 'todo', to record places where a nascent new layer might be starting to bud off.
* 2260 - start tracing by depth rather than labelKartik K. Agaram2015-10-067-25/+25
| | | | Now we can collect all traces, just modulating the depth.
* 2247 - type-check products of non-primitive recipesKartik K. Agaram2015-10-053-14/+14
| | | | | | | | We still can't check ingredient types, and even this is still a run-time check. We'll need to start tracking recipe signatures at some point. I've had to introduce a hack called /skiptypecheck. Time to get generics working.
* 2234 - check type of get's productKartik K. Agaram2015-10-021-9/+9
| | | | Already I'm finding type errors in the programming environment.
* 2227 - offset-checking for containersKartik K. Agaram2015-10-011-7/+23
|
* 2226 - standardize warning formatKartik K. Agaram2015-10-011-5/+5
| | | | | | | | 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?
* 2218 - check types in instructions much earlierKartik K. Agaram2015-09-301-1/+1
| | | | | | | | | Front-loads it a bit more than I'd like, but the payoff is that other recipes will now be able to describe the type checks right next to their operation. I'm also introducing a new use of /raw with literals to indicate unsafe typecasts.
* 2216Kartik K. Agaram2015-09-292-1/+13
|
* 2206 - fix missing ingredientsKartik K. Agaram2015-09-261-2/+2
| | | | | How the heck was this working until now? There must be redundant moves. And was I clobbering test data?
* 2183 - environment + external editor using tmuxKartik K. Agaram2015-09-125-18/+10
| | | | Thanks Jack and Caleb Couch for the idea.
* 2182Kartik K. Agaram2015-09-122-3/+1
|