about summary refs log tree commit diff stats
path: root/037new.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2849Kartik K. Agaram2016-04-201-1/+23
|
* 2809Kartik K. Agaram2016-03-231-0/+2
|
* 2808 - quick fix for memory corruptionKartik K. Agaram2016-03-221-9/+7
| | | | | | | | | | Thanks Caleb for finding this. Repeatedly running sandboxes was in some reliably reproducing situations causing 'new' to return 1, or to run into writes to the free list. No test yet; the issue is likely only mitigated at this point, not fixed. Even if routines share the Free_list, that should probably not cause memory corruption.
* 2803Kartik K. Agaram2016-03-211-22/+22
| | | | | Show more thorough information about instructions in the trace, but keep the original form in error messages.
* 2799 - new approach to undoing changes in testsKartik K. Agaram2016-03-201-0/+1
| | | | | | | | As outlined at the end of 2797. This worked out surprisingly well. Now the snapshotting code touches fewer layers, and it's much better behaved, with less need for special-case logic, particularly inside run_interactive(). 30% slower, but should hopefully not cause any more bugs.
* 2773 - switch to 'int'Kartik K. Agaram2016-03-131-34/+34
| | | | This should eradicate the issue of 2771.
* 2766 - bugfix in reclaiming arraysKartik K. Agaram2016-03-121-1/+14
|
* 2765Kartik K. Agaram2016-03-121-3/+3
| | | | | Get rid of a local variable that was only serving to render unreadable the code for reclaiming allocated memory.
* 2763Kartik K. Agaram2016-03-121-10/+11
|
* 2735 - define recipes using 'def'Kartik K. Agaram2016-03-081-23/+23
| | | | | | | | | | | | 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-9/+9
|
* 2701 - turn some warnings into errorsKartik K. Agaram2016-02-251-2/+2
| | | | | | | I really have only one warning left: when somebody redefines a function. I think I'm going to just turn that into an error as well and drop the notion of warnings altogether. Anytime we find something wrong we stop running the program. This is a place where hygiene is justified.
* 2681 - drop reagent types from reagent propertiesKartik K. Agaram2016-02-211-12/+2
| | | | | | | | | | | | | | | | | All my attempts at staging this change failed with this humongous commit that took all day and involved debugging three monstrous bugs. Two of the bugs had to do with forgetting to check the type name in the implementation of shape-shifting recipes. Bug #2 in particular would cause core tests in layer 59 to fail -- only when I loaded up edit/! It got me to just hack directly on mu.cc until I figured out the cause (snapshot saved in mu.cc.modified). The problem turned out to be that I accidentally saved a type ingredient in the Type table during specialization. Now I know that that can be very bad. I've checked the traces for any stray type numbers (rather than names). I also found what might be a bug from last November (labeled TODO), but we'll verify after this commit.
* 2680Kartik K. Agaram2016-02-201-6/+6
| | | | Delete all the [] that has crept in since 2377 in November.
* 2678Kartik K. Agaram2016-02-201-3/+3
| | | | | | | Start using type names from the type tree rather than the property tree in most places. Hopefully the only occurrences of 'properties.at(0).second' left are ones where we're managing it. Next we can stop writing to it.
* 2670 - better names for string conversionsKartik K. Agaram2016-02-191-1/+1
| | | | | | to_string(): relatively stable fields only; for trace() debug_string(): all fields; for debugging inspect(): for a form that can be parsed back later
* 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.
* 2638Kartik K. Agaram2016-02-071-0/+659