about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* 665 - hide the ugly memory dump by defaultKartik K. Agaram2015-01-281-2/+2
|
* 664 - new, wart-like promptKartik K. Agaram2015-01-282-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This is the right time for this change I've been meaning to make, because it lets me drop my hack in 'abort-to'. 'abort-to' is likely still a bad idea because: a) Just because this example doesn't need to clear a few things on abort doesn't mean such use cases don't exist. In other words, there's no way to tell if your stack frame recently returned from an abort. That question isn't even well-posed at the moment; what does 'recently' even mean? b) I may need to run deferred statements on each stack frame, and it's not clear how to rewrite 'defer' to be robust to aborts. Exceptions entering through the back door? Looks like all this is expected when implementing exception-like behavior using continuations: http://matt.might.net/articles/implementing-exceptions c) Of course we don't have composable exceptions. I still don't grok the value of that. We don't need yield since we have channels. What else might we need continuations for? Let's try to come up with a clean way to implement the amb operator or something. http://www.randomhacks.net/2005/10/11/amb-operator
* 663 - exit repl on ctrl-dKartik K. Agaram2015-01-281-0/+7
|
* 662 - abort current command cleanly on ctrl-gKartik K. Agaram2015-01-282-5/+30
| | | | | | | Poor man's continuation. Not first class or delimited yet. And we see the problem: hard to specify precisely what to do after unwinding the stack. We start reaching for a try/catch statement. But let's see if there's a better way.
* 661Kartik K. Agaram2015-01-281-32/+39
|
* 660Kartik K. Agaram2015-01-282-2/+9
| | | | Yet another 'grow-buffer' bug.
* 659Kartik K. Agaram2015-01-282-0/+7
| | | | 'grow-buffer' was never working until now. Too much spiking lately.
* 658Kartik K. Agaram2015-01-281-10/+0
|
* 657 - progress with a better color libraryKartik K. Agaram2015-01-281-8/+4
| | | | | (flush-output) does the trick as suggested in https://github.com/hopkinsr/terminal-color/issues/1
* 656Kartik K. Agaram2015-01-281-1/+1
|
* 655 - repl app can now backspace into strings, etc.Kartik K. Agaram2015-01-281-4/+29
|
* 654Kartik K. Agaram2015-01-281-14/+14
| | | | Stop misusing the 'result' convention.
* 653Kartik K. Agaram2015-01-281-11/+53
| | | | | | | Make use of the escape list to break out of strings and comments. Also fixes a bug in backspacing past start of comment: was prematurely terminating the current command.
* 652Kartik K. Agaram2015-01-281-2/+3
|
* 651 - new data structure in repl: list of backslash escapesKartik K. Agaram2015-01-282-7/+47
| | | | '#\\' only contains one escape character: the first backslash
* 650Kartik K. Agaram2015-01-281-1/+1
| | | | Another spot to fix 647.
* 649 - support #\( and #\) in replKartik K. Agaram2015-01-281-2/+12
|
* 648Kartik K. Agaram2015-01-271-17/+21
| | | | Extract a function; baby steps to better backspace support.
* 647 - bugfixKartik K. Agaram2015-01-271-1/+2
|
* 646Kartik K. Agaram2015-01-271-1/+1
|
* 645Kartik K. Agaram2015-01-271-2/+7
|
* 644 - backspacing out from within strings/commentsKartik K. Agaram2015-01-271-12/+23
| | | | | | | | | | | | I'd worried last night that I'd have to track the points where comments/strings begin, but at least so far this is elegant. Might run into problems when I try to backspace over strings after ending them. And backspacing over comments after terminating them is a whole different ball of wax. We still can't backspace over newlines because we can't move the cursor across lines because we can't tell where our cursor currently is. And even if we could tell we'd need to track how long each line is. A new data structure is needed..
* 643 - bug in use-before-set logicKartik K. Agaram2015-01-272-16/+10
| | | | | | | | Ran into this in color-repl.mu: I wasn't checking struct variables in 'get' operations. Still no way to test for use-before-set logic. But we'll fix it when we leave arc behind.
* 642 - repl app: backslash quoting in stringsKartik K. Agaram2015-01-271-0/+24
|
* 641Kartik K. Agaram2015-01-271-11/+13
| | | | | | Looping/breaking more than one block feels brittle somehow. It's not like java where the language can distinguish loops from other blocks. I think I'm just going to use jumps for more than one block.
* 640 - some todos for testsKartik K. Agaram2015-01-271-0/+10
|
* 639Kartik K. Agaram2015-01-271-1/+1
|
* 638 - quick spike: syntax highlighting in replKartik K. Agaram2015-01-273-4/+208
| | | | | | | | | | | | | | | Backspace kinda works. Parens are colored in three rotating colors which helps with balancing. Comments and strings are colored. But it's hard to handle backspace in all situations. Like if you backspace over a quote you have to either quit the string-slurping routine you're in, or return to string slurping mode. Similarly for comments; *there* you don't even have a end delimiter to let you know you're back in a comment. You have to keep track of what came before. I experimented with a library but it interacts poorly with the charterm library I'm already using. Ended up with a gross inefficient approach instead.
* 637 - show repl errors properlyKartik K. Agaram2015-01-261-0/+2
| | | | | We'll never be able to avoid dying on syntax errors. But hopefully we can make sessions easy to restore.
* 636 - a repl utility for arc in muKartik K. Agaram2015-01-261-0/+103
| | | | | | | Next step: convenience features like balancing parens, coloring parens. For that I'll have to leave line-based buffering behind. My workflow seems to be spike-test-clean.
* 635Kartik K. Agaram2015-01-262-3/+54
|
* 634Kartik K. Agaram2015-01-262-6/+53
|
* 633Kartik K. Agaram2015-01-261-1/+1
|
* 632Kartik K. Agaram2015-01-261-2/+1
|
* 631 - temporary: hook into underlying arc 'eval'Kartik K. Agaram2015-01-262-0/+21
|
* 630 - routines can now allocate unlimited memoryKartik K. Agaram2015-01-262-13/+11
|
* 629Kartik K. Agaram2015-01-262-15/+45
|
* 628Kartik K. Agaram2015-01-261-0/+27
|
* 627Kartik K. Agaram2015-01-262-4/+29
|
* 626 - start eliminating the memory-per-routine limitKartik K. Agaram2015-01-262-5/+31
|
* 625 - guard against errors with input-output argsKartik K. Agaram2015-01-252-16/+45
| | | | | | | | | | | (Another attempt at 623.) I dunno, this may all be a wild goose chase. I haven't been disciplined in tagging in-out arguments in 'read-move' and its helpers. Maybe I should just drop those 'nochange' oargs in 'read' and 'write'. Maybe I should reserve output args only for return values that callers might actually care about, and use more conventional metadata like 'const' or 'unique' or 'inout' on other args.
* 624 - no, that's all wrong, scratch 623Kartik K. Agaram2015-01-257-76/+46
|
* 623 - 'nochange' to guard against race conditionsKartik K. Agaram2015-01-258-55/+93
| | | | | | | | | I dunno, this may all be a wild goose chase. I haven't been disciplined in tagging in-out arguments in 'read-move' and its helpers. Maybe I should just drop those 'nochange' oargs in 'read' and 'write'. Maybe I should reserve output args only for return values that callers might actually care about, and use more conventional metadata like 'const' or 'unique' or 'inout' on other args.
* 621 - fix race condition in buffered-stdin.muKartik K. Agaram2015-01-252-19/+24
|
* 620 - fix broken examples and tests againKartik K. Agaram2015-01-254-26/+63
| | | | | | | | | I just did this in 611; what's the point of all this if tests can't stay passing? I don't understand why buffered-stdin.mu needs to preempt itself. stdin and buffered-stdin somehow end up sharing a single circular buffer, that's probably causing a race condition.
* 619 - chessboard now working rightKartik K. Agaram2015-01-252-5/+28
| | | | | | 2 bugs found: a) Have to slurp the newlines. b) Have to clear the line-buffer at the start of each line.
* 618Kartik K. Agaram2015-01-252-0/+0
|
* 617Kartik K. Agaram2015-01-251-92/+0
|
* 616 - buffered-stdin handles backspaceKartik K. Agaram2015-01-254-2/+46
| | | | Chessboard now *almost* handles backspace perfectly.
* 615 - eliminate scheduler non-determinismKartik K. Agaram2015-01-241-2/+5
|