Hacker News new | ask | show | jobs
by kristopolous 7 days ago
I've got an agent that just uses legacy perl 5.0001 ... close but there's no perl by default on windows (although it's easy enough to get on there)

https://github.com/kristopolous/old-agent

I've used it on plenty of old things.

I'd probably do a pure .vbs version if it was windows or a static pure win32 exe.

1 comments

Neat concept. I enjoyed the screenshots.

I took the same path with my for-fun/learning GUI coding agent in Tcl/Tk: https://wiki.tcl-lang.org/page/Featherweight. It shells out to curl for the networking.

I've just tried to get it to run on Windows XP SP3. (I have a VM for an old Canon all-in-one printer.) I grabbed a legacy Tcl 8.6.6 installer from https://github.com/dbohdan/tcl86-nsis-installer (mine) and a 2017 build of curl with certificates from https://winampplugins.co.uk/curl/. The harness was developed against curl 8 and didn't work with 7.53.1. MiMo-V2.6-Flash, running in the same harness on modern Linux with Wine for `curl.exe`, found that the necessary change was minimal and only touched `--write-out`:

  --- featherweight.tcl
  +++ featherweight.tcl
  @@ -2794,7 +2794,8 @@
               --request POST \
               --show-error \
               --silent \
  -            --write-out "\n%{http_code} %{exitcode} %{errormsg}" \
  +            --write-out "\n%{http_code} 0" \
               [dict get $config endpoint] \
Here are two screenshots of the result. Featherweight is running in Tcl 8.6.6 on Windows XP.

https://paste.dbohdan.com/1ng3b5y-kb4yd/greenshot-1.png https://paste.dbohdan.com/1ng3b5y-kb4yd/greenshot-2.png

Instead of Curl get IronTCL and use http://legacyupdate.net to update the certs.
I need HTTP proxy support in Featherweight. I have found shelling out to curl easier and more reliable than a stack of `http`, `tls`, and `autoproxy`.
The updates from http://legacyupdate.net makes Windows XP TLS 1.2-functional. And IronTCL worked for a Gopher/Gemini client I've got from elsewhere (https://luxferre.top). It's called BFG, you can peek its source and find that everything works in the spot. No issues to connect to any Gemini server where TLS it's mandatory.

I have some bundled BFG+IronTCL where it packs IronTCL, TCLlib and Tklib.

Use the proxy from old agent, it doesn't care. It'll bridge http to https and even read modern webapps and convert them to markdown (via lightpanda). It has free web search (via keenable) as well with no API key. 1000 requests/day per ip