View Single Post
Old 06-17-2025, 07:47 PM   #7
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 41
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
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
cdhigh is offline   Reply With Quote