about summary refs log tree commit diff stats
path: root/anagrams.tlv
Commit message (Collapse)AuthorAgeFilesLines
* use method syntax where possibleKartik K. Agaram2022-03-061-7/+7
| | | | | | Perhaps this is a bad idea. It feels arbitrary, what methods Lua happens to include in string and table objects without having to go through the respective modules.
* reconcile all apps with template.tlvKartik K. Agaram2022-03-061-23/+7
| | | | | | They may take more or less from it (sieve.tlv in particular takes nothing since call depth doesn't help at all there), but what they take is in the right order so that you can compare across apps.
* anagrams.tlv: now fully responsiveKartik K. Agaram2022-03-051-13/+115
| | | | | | | | | If we press a key the computation now restarts instantly. There's no fiction of multi-threading in Teliva. If the application doesn't work right, it beach-balls. If it doesn't beach-ball under normal circumstances you're more certain it'll never beach-ball. It's more work up-front, but there's less variability in outcomes.
* anagrams.tlv: slightly more responsiveKartik K. Agaram2022-03-051-1/+11
| | | | | | | Now we cancel screen-painting if any key is pressed. However it looks like just computing the list of anagrams can take a long time.
* distinguish between window global and argKartik K. Agaram2022-03-021-5/+5
|
* starting to make Teliva apps more testableKartik K. Agaram2022-02-271-7/+7
| | | | | | | | | | Tasteful apps should only perform side-effects through 'window' arguments rather than the 'curses' module directly. It's ok however to read constants like curses.A_NORMAL or curses.stdscr(). There are some limitations, unfortunately. Ncurses wasn't designed with testability in mind. For example, there's no way to curs_set or assume_default_colors without the 'curses' module. Oh well.
* a little program for kids: anagrams of namesKartik K. Agaram2022-02-211-0/+336