about summary refs log tree commit diff stats
path: root/020run.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2171 - 'main' can take ingredients from the shellKartik K. Agaram2015-09-061-4/+15
| | | | | | | | | | Ingredients of 'main' are always strings (type address:array:character), and are delineated from .mu files to load by a "--", e.g.: $ ./mu x.mu y.mu -- a b c Here 'main' must be defined in one of x.mu and y.mu, and will receive the ingredients "a", "b", and "c".
* 2170Kartik K. Agaram2015-09-061-15/+22
|
* 2169Kartik K. Agaram2015-09-061-1/+0
|
* 2168Kartik K. Agaram2015-09-061-1/+0
|
* 2155 - `mu` can now load all files in a directoryKartik K. Agaram2015-09-051-0/+25
|
* 2154 - check types only after loading all layersKartik K. Agaram2015-09-051-1/+1
| | | | | Follow-up to 2147, which switched transform_all to only run once, after loading all layers.
* 2152 - never warn about redefining main in testsKartik K. Agaram2015-09-051-0/+1
|
* 2147 - starting to split edit.mu into layersKartik K. Agaram2015-09-051-1/+2
| | | | | | | | | | | | | | | | edit.mu is now over 9k lines long. Only 2.6k of them are code. Plan: chunk it into multiple files inside say an 'edit' directory. Then you can run it with: $ mu edit/* I also want to be able to test just a few layers: $ mu edit/00[1-5]* When I try to chunk it into files, the first issue I run into is that before/after can't refer back to previous layers. Solution: transform_all at one shot after loading all files.
* 2126Kartik K. Agaram2015-09-011-1/+1
|
* 2095Kartik K. Agaram2015-08-281-11/+9
| | | | | | | | | | | | Finally terminate the experiment of keeping debug prints around. I'm also going to give up on maintaining counts. What we really need is two kinds of tracing: a) For tests, just the domain-specific facts, organized by labels. b) For debugging, just transient dumps to stdout. b) only works if stdout is clean by default. Hmm, I think this means 'stash' should be the transient kind of trace.
* 2078 - update entire screen on tb_present()Kartik K. Agaram2015-08-261-3/+3
| | | | | | | | | | | | | | | | | | | Termbox had been taking shortcuts when it thinks the screen hasn't changed, which doesn't work if some other process messes up the screen. The Go version has a Sync method in addition to Flush/tb_present for precisely this eventuality. But it feels like an unnecessary optimization given C's general speed. Just drop it altogether. --- This took me a long time to track down, and interestingly I found myself writing a new tracing primitive before I remembered how to selectively trace just certain layers during manual tests. I'm scared of generating traces not because of performance but because of the visual noise. Be aware of this. I'm going to clean up $log now. Maybe I should also stop using $print..
* 2052Kartik K. Agaram2015-08-211-1/+1
| | | | | | | If I try to run a single test and it triggers an error the trace gets saved in the current directory, as if I was trying to log an interactive run. Then when I try to rerun the test the trace tries to load as mu code, and hilarity ensues. Just log interactive runs in .traces/ as well.
* 2005Kartik K. Agaram2015-08-141-4/+4
| | | | Turn off profiling.
* 2000 - stop constantly copying large arrays aroundKartik K. Agaram2015-08-141-4/+11
|
* 1999Kartik K. Agaram2015-08-141-0/+12
| | | | | Still worth trying to optimize, though. Current lowest-hanging fruit: stop having index/index-address copy entire arrays around.
* 1997Kartik K. Agaram2015-08-141-2/+1
|
* 1996Kartik K. Agaram2015-08-141-8/+8
|
* 1995 - simple profile of instruction spendKartik K. Agaram2015-08-141-0/+11
| | | | | The slowness of the environment -- even for code spanning just a couple hundred lines -- is the biggest priority right now.
* 1973Kartik K. Agaram2015-08-101-0/+27
|
* 1951 - warn when copying scalars to arrays, etc.Kartik K. Agaram2015-08-071-0/+40
|
* 1933 - bugfix: backspace now works on right sideKartik K. Agaram2015-08-041-12/+1
|
* 1923Kartik K. Agaram2015-08-021-3/+6
| | | | | | | | | | Still iterating on the right way to handle incorrect number of ingredients. My first idea of creating null results doesn't really work once they're used in later instructions. Just add a warning at one place in the run loop, but otherwise only add products when there's something to save in them. Undoes some work around commit 1886.
* 1921 - show trace by clicking on codeKartik K. Agaram2015-08-021-1/+1
| | | | | | | Region to click on to edit is now reduced to just the menu bar for the sandbox (excluding the 'x' for deleting the sandbox). The symmetry there might be useful, but we'll see if the relative click area is in line with how commonly the actions are performed.
* 1901Kartik K. Agaram2015-07-301-1/+1
| | | | | Don't swamp edit.mu with warnings when something writes to address 0. Warn once, then keep going.
* 1879 - types required at first mention of a nameKartik K. Agaram2015-07-281-1/+3
| | | | That should avoid many issues with typos in names.
* 1868 - start using naked literals everywhereKartik K. Agaram2015-07-281-11/+11
| | | | First step to reducing typing burden. Next step: inferring types.
* 1863 - two bugfixes in deleting sandboxesKartik K. Agaram2015-07-281-4/+14
| | | | | Forgot to show screen after delete, and 'release' events were causing double deletions.
* 1844 - explicitly end each trace lineKartik K. Agaram2015-07-251-8/+11
| | | | | | | | | More verbose, but it saves trouble when debugging; there's never something you thought should be traced but just never came out the other end. Also got rid of fatal errors entirely. Everything's a warning now, and code after a warning isn't guaranteed to run.
* 1830Kartik K. Agaram2015-07-231-0/+3
|
* 1824Kartik K. Agaram2015-07-201-1/+2
|
* 1814 - save code in editorKartik K. Agaram2015-07-181-1/+1
| | | | | | | Very rudimentary ability to read/write from file+version control. No control over name. Recipes now saved. But what to do about sandboxes?
* 1782 - stop tracing anything but warnings inside editKartik K. Agaram2015-07-141-1/+1
| | | | | | | | | Speeds up edit.mu tests by 10x, and shrinks memory usage by 100x. We need a more efficient implementation of traces, but we can keep going for now. We didn't really need to reclaim memory just yet, after all. Mu is pretty memory-efficient.
* 1751 - sluggishness fixedKartik K. Agaram2015-07-101-1/+1
| | | | | | | Ah, I was indeed double-rendering, but somehow it was still hard to see the problem past that preliminary diagnosis. Still two failing tests to fix.
* 1724 - first stab at printing interactive resultsKartik K. Agaram2015-07-081-0/+1
|
* 1702 - experiment: start using 'ordinal' in namesKartik K. Agaram2015-07-041-6/+6
| | | | | | | It comes up pretty early in the codebase, but hopefully won't come up in the mu level until we get to higher-order recipes. Potentially intimidating name, but such prime real estate with no confusing overloadings in other projects!
* 1699 - first-class recipe typesKartik K. Agaram2015-07-031-0/+1
| | | | | It should now be easy to do dynamic dispatch, create higher-order functions, etc.
* 1620Kartik K. Agaram2015-06-221-5/+6
| | | | | | | | chessboard finally passing all its tests. What made this hard was that for some reason one of the background routines in the main chessboard test wasn't terminating like it used to. And so it was polluting *later* tests. Just clean up that source of contamination for now. Later we'll think about routine termination.
* 1616 - merging keyboard and events into 'console'Kartik K. Agaram2015-06-211-0/+1
| | | | | Only core layers currently passing. Console apps are probably still broken.
* 1614Kartik K. Agaram2015-06-211-5/+0
|
* 1612Kartik K. Agaram2015-06-201-0/+7
|
* 1611 - switch to keyboard+mouse eventsKartik K. Agaram2015-06-201-2/+12
|
* 1585Kartik K. Agaram2015-06-171-2/+2
|
* 1582Kartik K. Agaram2015-06-171-0/+1
|
* 1581Kartik K. Agaram2015-06-171-1/+1
|
* 1523Kartik K. Agaram2015-06-031-3/+2
| | | | Variable 'instruction_counter' was obfuscating more than it clarified.
* 1518 - still horribly brokenKartik K. Agaram2015-06-011-0/+7
| | | | | | Just figured out why a first keystroke of backspace was sending me out for a spin: run_interactive needs all early exits that don't actually run anything to increment the current_step_index(). FML, this is lousy..
* 1417 - draft zoom levels in tracesKartik K. Agaram2015-05-211-11/+3
|
* 1414 - traces now robust to new recipes/typesKartik K. Agaram2015-05-211-13/+9
|
* 1399 - better 'unknown type' warningsKartik K. Agaram2015-05-181-8/+0
| | | | | | | | 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-16/+16
|