about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 589Kartik K. Agaram2015-01-181-3/+0
|
* 588Kartik K. Agaram2015-01-182-2/+2
| | | | | Now that there isn't a stdout channel we can postpone the test showing the need to flush-stdout before clearing screen.
* 587Kartik K. Agaram2015-01-182-5/+10
|
* 586Kartik K. Agaram2015-01-182-28/+23
| | | | Dump yet another trying-to-be-polymorphic function.
* 585Kartik K. Agaram2015-01-181-7/+7
|
* 584Kartik K. Agaram2015-01-181-18/+0
|
* 583Kartik K. Agaram2015-01-181-1/+0
|
* 582 - first tests for printing to screenKartik K. Agaram2015-01-174-19/+167
|
* 580Kartik K. Agaram2015-01-171-1/+1
|
* 578 - switch to non-polymorphic 'print' functionsKartik K. Agaram2015-01-1711-64/+103
| | | | | Also clean up various prints from last few commits. As a convention, for debugging we always print directly to host.
* 577 - bounds-check on per-routine spaceKartik K. Agaram2015-01-171-7/+19
| | | | | | | | I discovered the problem when playing more than 3 moves in the chessboard app. But it turns out we've been clobbering each other willy-nilly even in the chessboard-retro app.
* 576 - helper for printing integersKartik K. Agaram2015-01-173-0/+164
| | | | | | | | | | | | | | | This requires creating a new data structure called buffer, because strings are too inefficient for appending to, and we need to know how long they need to be before we clear them. But I'm not gonna bother to write tests for all the new primitives I just introduced, because that's not expedient. One test for mu is how nicely it handles situations like this without requiring perfect test hygiene. In this case, I can imagine tools that will extract tests for a particular function out of all known tests. Especially if it's a pure function that should be easy. Then just show each test to the programmer and ask him to give it a reasonable name.
* 575Kartik K. Agaram2015-01-171-14/+12
| | | | | | | Minimize use of 'unless' forms, they're harder to follow. Also, using one-sided checks like greater-or-equal or lesser-or-equal is more defensive.
* 574 - printing string literals is a hack; hard-code it in for nowKartik K. Agaram2015-01-1610-60/+60
|
* 573 - print-board now takes terminal parameterKartik K. Agaram2015-01-151-10/+11
| | | | Feeling more confident now that prints are being managed right.
* 572Kartik K. Agaram2015-01-151-9/+10
|
* 571 - screen primitives take an explicit terminalKartik K. Agaram2015-01-1511-101/+125
| | | | | | | | | | | | | | | | | This will let me swap in a fake in tests. Still hacky, though. I'm sure I'm not managing the parameter right in the chessboard app. And then there's the question of whether it should also appear as an output operand. But it's a start. And using nil to mean 'real' is a reasonable convention. If I ever need to handle multiple screens perhaps we'll have to switch to 1:literal/terminal and 2:literal/terminal, etc. But those are equally easy to guard on.
* 570 - warn on potential name conflictKartik K. Agaram2015-01-141-0/+2
|
* 569 - ah, the right way to do generic functionsKartik K. Agaram2015-01-143-3/+9
| | | | | | | | | | Each clause creates its own default-space for local variables. Now we can justify prepending bodies on every 'function' form. Later we can optimize away the duplicate default-spaces. Another cost: we can't mindlessly use 'next-input' anymore. Pity.
* 568Kartik K. Agaram2015-01-141-0/+3
|
* 567 - stupid function name conflictKartik K. Agaram2015-01-141-4/+4
| | | | Is it even worth having my generic function prepend idea?
* 566Kartik K. Agaram2015-01-141-4/+25
|
* 565Kartik K. Agaram2015-01-141-10/+4
| | | | Reduce printing primitives before I start messing with fake versions.
* 564Kartik K. Agaram2015-01-143-689/+689
|
* 563 - check actual errors during move validationKartik K. Agaram2015-01-142-4/+11
|
* 562Kartik K. Agaram2015-01-141-1/+0
|
* 561 - vim hackKartik K. Agaram2015-01-131-4/+7
|
* 560Kartik K. Agaram2015-01-131-3/+0
|
* 559Kartik K. Agaram2015-01-131-1/+0
|
* 558 - more chessboard testsKartik K. Agaram2015-01-131-1/+38
|
* 557Kartik K. Agaram2015-01-131-0/+26
|
* 556 - correction: check that *read-move* ran to completionKartik K. Agaram2015-01-131-4/+6
| | | | | Getting the concurrent tests right is still proving difficult. Let's see if things improve with practice.
* 555Kartik K. Agaram2015-01-131-1/+1
|
* 554 - tedious to have to check for routine errors on every forkKartik K. Agaram2015-01-133-1/+6
|
* 553Kartik K. Agaram2015-01-131-1/+1
|
* 552 - timeout for read-move testKartik K. Agaram2015-01-131-1/+1
|
* 551Kartik K. Agaram2015-01-132-56/+62
| | | | Tests force me to extract functions 'read-rank' and 'read-file'.
* 550 - another bugfix, another pending testKartik K. Agaram2015-01-132-0/+7
|
* 549 - suppress prints in read-moveKartik K. Agaram2015-01-133-6/+33
| | | | | | This is the sort of thing we want to make super easy. But there's a bug at the moment: chessboard prints junk input at second move.
* 548 - hacky vim filetype for muKartik K. Agaram2015-01-131-0/+37
|
* 547 - hacky initial tests for reading chess movesKartik K. Agaram2015-01-131-0/+49
|
* 546 - chessboard now reads from stdinKartik K. Agaram2015-01-121-5/+13
| | | | Hacky, but it's a start.
* 545 - graphics mode is now called bringing up a windowKartik K. Agaram2015-01-122-4/+4
|
* 544 - text modes now called 'retro' & 'cursor'Kartik K. Agaram2015-01-124-5/+4
| | | | | | | | | | | | | Other options considered for 'retro': 'teletype': perhaps most accurate, but arcane 'chat': captures that you have to hit 'enter', but not the rendering 'wrap': captures the auto-wrap when printing text but not that you have to hit 'enter' when typing 'text': useful as a synonym of 'chat' while conveying more information in other meanings, but too generic, nobody will get it Why do the input and output options have to be entangled like this?
* 543Kartik K. Agaram2015-01-121-1/+1
|
* 542Kartik K. Agaram2015-01-122-3/+75
| | | | Tests for terminating when there's just helpers left.
* 541Kartik K. Agaram2015-01-111-3/+3
|
* 540Kartik K. Agaram2015-01-111-1/+1
|
* 539Kartik K. Agaram2015-01-111-6/+3
| | | | Simpler to just always sleep, whether or not a character was received.
* 538 - stdin app now responsiveKartik K. Agaram2015-01-111-1/+6
|