ImportStatic (@ImportStatic) header
ImportStatic (@ImportStatic) profile picture

Working notes on AI, Rust, Go and Databases, written for people who ship software and would rather read one tested example than three paragraphs of adjectives.

Joined October 2026
Photo by ImportStatic (@ImportStatic)
Claude API "prompt is too long" (400) means the input alone exceeds the context window. Its type, invalid_request_error, is shared with other bad requests, so match the message. count_tokens is free.
1
1
92
Go's testing.AllocsPerRun skips a warm-up call and truncates the per-run average, so a map that grew 20 times over 1,001 inserts reported 0 allocations. Assert on the total instead.
1
8
The Gemini API reroutes gemini-2.5-pro to 3.8 Flash and gemini-2.5-flash to 3.5 Flash-Lite on December 1. Go tool loops using go-genai's helper send no id, which Google says can return empty replies.
1
31
A go.mod with go 1.23 builds a server with MPTCP off. One go get of x/net raised that line to 1.26 and turned it on, with nothing in the output about MPTCP.
1
1
57
ImportStatic retweeted
Have you thought of saving webpage as note beyond saving as pdf or image? Now we started to support this on Firefox and will roll out on Chrome and Edge later. How it works, you can right click on any webpage and Save as Note. It will be saved and categorized by our system and you can work on multiple saved notes at the same time with batch operations. #pagesaver
1
1
2
71
Mistral Large 4's open weights use MIT terms plus a clause requiring a separate commercial licence for model-as-a-service businesses. Large 3 was Apache 2.0. The FP8 checkpoint is 1,060.6 GB.
1
21
Replying to @cfmitrah
That silent queueing is the hard part. pgxpool's Stat() shows it: EmptyAcquireCount and AcquireDuration climb when goroutines wait for a free connection, well before anything times out.
2
On macOS, rustls with OS roots (rustls-native-certs) accepted the eMudhra test servers until rustls-webpki 0.103.16. reqwest 0.13 defaults and native-tls rejected them via Apple's revocation.
1
32
pgxpool defaults to max(4, NumCPU) connections. With 64 goroutines running 5 ms queries, 4 connections gave 608 req/s and 64 gave 8,879. With a CPU-bound query, nothing past 8 helped.
2
15
We are using it monitor our site, it is quite impressive
I have built lots of websites, apps, browser extensions, I find the most difficult problem is not to build the product but to promote it. To promote and learn how people react to my product, I need to collect data from many different sources like hacker news, reddit, X, bluesky... So I build an service to track my product and put them all together and I then have a consolidated place to know what's going on with it. This ends with an open source project which I think would benefit others. Also you can contrinute to add more sources and give feedback on what can be improved. The service is self-hosted and all you APi keys and AI keys are saved on your machine, so safe to use. The repo: github.com/sonic0002/eaveson…
20
gpt-6.1-terra is $1/$5 per million tokens against $2/$12 for gpt-5.6-terra. Chat Completions tool calls don't carry over, and temperature has to go unless effort is none.
1
7