Since I developed Inkwell, my son has often been using ChatGPT on his Kindle over the past few months to get answers to various questions (as I don’t allow him to use a smartphone). While reading, he can also easily look up background information about certain chapters in real time.
Because the Kindle has limited memory and the original Inkwell was developed in Python, it consumed relatively large amounts of memory. To solve this, I ported the script to Go lang (which comes with a built-in cross-compilation toolchain). This significantly improves both startup speed and memory usage.
The latest version has been updated in the first post of this thread.
--------------
By the way, I highly recommend this approach to anyone who wants to develop terminal applications for Kindle. There’s no need to struggle with complex C cross-compilation environments anymore. Just use Go — a single command can produce a binary for the target platform:
Code:
GOOS=linux GOARCH=arm GOARM=5 go build app.go
or
Code:
set GOOS=linux
set GOARCH=arm
set GOARM=5
go build app.go