about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* use markdown syntax for images HEAD mainKartik K. Agaram2023-11-262-2/+3
| | | | Now they render right on non-Github forges.
* smol.tv: get a few feeds reliably parsingKartik K. Agaram2022-04-231-0/+96
|
* smol.tlv: start of a browser for the small webKartik K. Agaram2022-04-231-0/+1581
|
* document `arg` var for commandline argumentsKartik K. Agaram2022-04-221-2/+7
|
* avoid overly long lines in manualKartik K. Agaram2022-04-221-2/+2
|
* .Kartik K. Agaram2022-04-161-1/+1
|
* a sharp edge in Lua's dorequire()Kartik K. Agaram2022-04-111-1/+1
| | | | | You can't call it on a file that isn't a module, i.e. that doesn't return something at the end. Use dofile() instead.
* fix a few sample appsKartik K. Agaram2022-04-114-0/+272
| | | | | | | Broken since Mar 18, when I started running tests in src/file.lua. It's more than a little ugly that .lua files in src/ require helpers inside .tlv apps.
* actually _use_ the ask permissionKartik K. Agaram2022-04-071-1/+29
|
* new perm: files under dir specified at commandlineKartik K. Agaram2022-04-051-1/+16
| | | | | | I think we can now use a file browser app with relative safety. Just give it inargs permissions, and provide a top-level directory at the commandline to gain access to everything under it.
* new permission: any file specified at commandlineKartik K. Agaram2022-04-051-0/+19
|
* experiment: ask for permission on file operationsKartik K. Agaram2022-04-052-34/+83
| | | | | | | | | | | | | | | | | | | | | | I'm not quite sure how to think about asking for permissions with respect to my red/orange/green color codes. On the one hand, it seems safer than many alternatives. On the other hand, it's liable to lead to fatigue and blindly allowing apps to do stuff. For now I consider ask to be orange. Ask + network allowed = red in summary, though it's orange on the permissions screen since there's more space to convey nuance. Then again, nobody may heed the nuance. The summary up top on the permissions screen is definitely still a work in progress. And there's a chicken-and-egg problem here: I can't really get a good feel for real-world bugs in the permissions screen until _other programmers_ are building apps to use the permissions screen, but they're almost certain to have a crappy time of it. I considered introducing a primitive called ask() in the Lua interpreter, but it doesn't really make sense to validate it and so on. I'm also not really supporting mixing Ask with other features so far. This is a major step towards turning my permissions screen into spaghetti; monitoring closely.
* show common suggestions when editing permissionsKartik K. Agaram2022-04-052-1/+17
| | | | | | Computer owners shouldn't get in the habit of trusting app authors regarding permissions. But they have to trust somebody, and they already trust the Teliva platform if they are running it.
* toot-toot: stop clobbering existing filesKartik K. Agaram2022-03-311-0/+62
| | | | | | | | | | I've been reluctant to do this until now because it makes it more difficult to grant an app the ideal permissions. Here's what I use: return string.find(filename, 'toot') == 1 But I'm also trying to keep people from looking to the app to figure out what permissions to give it :/
* toot-toot: disable ctrl-kKartik K. Agaram2022-03-301-0/+51
| | | | | | | | | Rather than invest LoC in asking for confirmation or an undo feature, just have people restart to clear the page. I fucking suck for how many ways I can come up with to lose data in a text editor. It really should have been fucking obvious that clearing the page so easily was a footgun just waiting to happen.
* some more reorg of the standard libraryKartik K. Agaram2022-03-278-672/+138
| | | | | Now life.tlv and gemini.tlv are also minimizing how much of the standard library they pull in, just to be easy to read.
* helper: count permutationsKartik K. Agaram2022-03-278-10/+400
|
* helper: countKartik K. Agaram2022-03-278-2/+130
|
* reorgKartik K. Agaram2022-03-201-2/+5
|
* disallow all relative paths (./ or ../)Kartik K. Agaram2022-03-204-1/+25
| | | | | | | | | Teliva's model doesn't include any way to change directory. We just have relative paths and absolute paths. Relative paths should not be able to reach into parent directories. The current test is a bit hacky; it also disallows directories ending in a period. Hopefully not an issue.
* graphviz: show topology in multiple linesKartik K. Agaram2022-03-193-12/+91
|
* graphviz: for basic stats, show all nodes orderedKartik K. Agaram2022-03-199-184/+527
| | | | | | The ordering is topological; nodes come before their dependencies. Also some more helpful functions in the template for new apps.
* standardize common helpers across all appsKartik K. Agaram2022-03-199-62/+883
| | | | | In particular, I merged take_out in anagrams.tlv with all_but in graphviz.
* graphviz: second sketch to present the FocusKartik K. Agaram2022-03-191-15/+100
| | | | | In the process we fix some bugs in how we compare tables and count nodes in the graph.
* .Kartik K. Agaram2022-03-181-5/+5
|
* graphviz: draft notion of nodes in 'focus'Kartik K. Agaram2022-03-189-24/+230
| | | | | Now the REPL isn't about deciding what to calculate, but just what nodes to calculate it for.
* idiom: table.insert for appendingKartik K. Agaram2022-03-186-14/+14
| | | | Stop using arr[#arr+1].
* graphviz: tweak data structure slightlyKartik K. Agaram2022-03-181-4/+3
| | | | | | | A node's edges contain an associative array of target nodes rather than a linear array. This way we automatically dedup edges when we load multiple graphs.
* graphviz: read multiple .dot filesKartik K. Agaram2022-03-181-0/+30
| | | | | It's useful to be able to import dependencies for multiple packages at once, so that we can see common dependencies.
* fix a warningKartik K. Agaram2022-03-181-1/+1
|
* graphviz: sketch of the dashboardKartik K. Agaram2022-03-181-0/+83
|
* graphviz: done parsing directed graphsKartik K. Agaram2022-03-181-1/+83
| | | | | This is mostly what I want since I'm interested in parsing the output of debtree.
* graphviz: show error when lacking permissionsKartik K. Agaram2022-03-181-4/+6
|
* graphviz: don't interpret substrings as regexesKartik K. Agaram2022-03-189-5/+41
|
* show current definition being editedKartik K. Agaram2022-03-182-6/+8
| | | | | | | | | | This serves two purposes: - Things get confusing if function being defined doesn't match the definition name. Displaying the current definition helps diagnose this situation. - We're already able to see callers at a glance even if the cursor is below the fold. The name of the current definition is arguably more important in that situation.
* stale references to callerKartik K. Agaram2022-03-181-2/+2
|
* beginnings of a parser for .dot filesKartik K. Agaram2022-03-181-0/+669
| | | | | I'm following https://graphviz.org/doc/info/lang.html. Just tokenization so far.
* fake to stand in for start_reading in testsKartik K. Agaram2022-03-181-0/+44
|
* break.tlv: nascent live-updating stack languageKartik K. Agaram2022-03-176-12/+824
| | | | | | | | | Joint work with Sumeet Agarwal. In the process we discovered several bugs in our fake window helpers for tests. Thanks Sumeet! Previous prototypes: - https://archive.org/details/akkartik-2min-2020-12-06 - https://merveilles.town/@akkartik/105759816342173743
* sandbox os.removeKartik K. Agaram2022-03-171-5/+18
|
* fix some warningsKartik K. Agaram2022-03-171-3/+3
|
* file handles vs file objects, ughKartik K. Agaram2022-03-171-2/+3
|
* function names from globals rather than debug infoKartik K. Agaram2022-03-161-22/+22
| | | | | | | | | | | This reclaims all the slowdown in sieve.tlv, and it also is now smart enough to detect calls to global bindings that pass through variables. On the flip side, we lose names for non-globals. But that's not very useful anyway in Teliva's context. This is still not enough to detect callers through coroutines (intervening anonymous functions), though.
* bring back hack when caller is mainKartik K. Agaram2022-03-161-0/+2
| | | | Partially undoes commit f2d29c22f86a88.
* cache function namesKartik K. Agaram2022-03-161-10/+46
| | | | This brings down the slowdown in sieve.tlv from 50% to 25% (15s).
* standardize some namesKartik K. Agaram2022-03-163-11/+12
|
* stop running task.scheduler by defaultKartik K. Agaram2022-03-165-42/+36
| | | | | sieve.tlv is 50% slower (18s vs 12s) with the new function call instrumentation.
* delete dead codeKartik K. Agaram2022-03-161-25/+0
|
* simplify function call instrumentationKartik K. Agaram2022-03-163-41/+20
| | | | | | | | src/ldo.c now has a minimal diff with Lua 5.1. It might be a bit slower than it was before, but not noticeably so.. This approach doesn't support indirect calls.
* drop a headerKartik K. Agaram2022-03-161-1/+0
|