Dec 22, 2021
Beginnings of a Gemini browser in Teliva, a way to share small, hackable, text-mode Lua apps.

Try it out:

git clone https://github.com/akkartik/teliva
cd teliva
make linux  # or macosx or bsd
src/teliva gemini.tlv

Largely built from within Teliva. Here's a session of me implementing links. (video; 45 minutes)

https://archive.org/details/akkartik-teliva-2021-12-21

permalink

* *
Dec 19, 2021
🤯

https://codeberg.org/ngn/k/src/branch/master/a21

permalink

* *
Dec 17, 2021
A simple terminal app for composing multiple toots at once

  • Paste in a small amount of ASCII text from the clipboard (no scrolling)
  • Edit it at will (insert, arrow keys, backspace)
  • Always show the character count
  • Anywhere the text contains some delimiter, treat it as a chunk boundary, show character count for the previous chunk.

Amazing how difficult this is to get right.

I've built multiple text editors but still can't figure this out. Data structure this time: just a raw string.


I figured out the problem! I didn't have tests in Teliva! Now I do.

It turns out my brain only works when embedded in an exo-brain of tests.

Screenshot of teliva showing a single function being edited along with some tests for it.

permalink

* *
Dec 15, 2021
Advent day 15, part 2

Throwing in the towel. My solution works for the test input.

I get this message for the answer: "Curiously, it's the right answer for someone else; you might be logged in to the wrong account or just unlucky. In any case, you need to be using your puzzle input."

permalink

* *
Dec 13, 2021
I'm so stuck on Advent day 14, star 2

No hints just yet, please.

Let's see if this is going to work..

I'm getting some neat visualizations, at least. But I think they're just showing me how screwed I am.

Oh, just needed to print less often. It's going faster now. But still exponential..

permalink

* *
Dec 10, 2021
Random page in the Lua book introduces me to a whole new CS algorithm I'd never seen before 🤯

https://www.lua.org/pil/11.6.html

permalink

* *
Dec 8, 2021
Finally a day when solving Advent didn't result in me having to add any helpers to Teliva's "standard library".

permalink

* *
Dec 8, 2021
For all my years of writing higher-order functions in Lisp, put me in a timed situation and I instantly go back to writing raw loops.

permalink

* *
Dec 2, 2021
Day 3 of #adventofcode is a bust. I found a fatal issue in Teliva: if running the app ever shows an error, I get thrown back to the editor. So I can't see any prints. So my usual strategy of debug by print doesn't work.

So I need to rethink how Teliva displays run-time errors. Now I hazily remember Turbo Pascal having a "press any key to continue" prompt on run-time error.


I did finish after all. An hour into the day, after doing other stuff (going over review jam feedback with Teliva, creating a list of bugs), it occurred to me to get "press any key" by adding just one line of code to Teliva and recompiling. That got me debugging again.

But this video is going to be useless. Across two sessions, I have an hour of me umming and aahing, muttering and swearing.

permalink

* *
Nov 30, 2021
A whimsical landing page for announcing my tour of Mu

http://akkartik.name/post/silfen-paths

Many thanks again to https://compudanzas.net for play-testing it and making it 10x more hospitable a road to travel.

permalink

* *
archive
projects
writings
videos
subscribe
Mastodon
RSS (?)
twtxt (?)
Station (?)