For discussing Java, the JVM, languages that run on the JVM, and other related technologies.
🌉 bridged from !java@programming.dev by Tidepool
For discussing Java, the JVM, languages that run on the JVM, and other related technologies.
🌉 bridged from !java@programming.dev by Tidepool
java.net.http.HttpClient quietly ignores a SOCKS proxy and sends requests from your own IP
Two traps in java.net.http.HttpClient that bite when you route it through a proxy, because neither one looks like a proxy problem at first.
Basic proxy auth is disabled for HTTPS tunnels by default, so your username and password can be perfectly right and the tunnel still fails on auth.
The nastier one: point it at a SOCKS proxy and it gets ignored, so requests leave from the machine's own address. No exception, no warning. Everything looks fine until you check the exit IP, and by then the job may have run for a week from your server.
So whatever client you use, I'd log the exit IP once at startup and fail the run if it matches the host's address. It's a few lines and it catches this whole family of mistakes.
Disclosure: we run a proxy service, this came out of comparing proxy support across languages.
Benchmarking JDK 25 Leyden AOT on GKE: Cutting Spring Boot Pod Readiness by 31%–58%
Everyone talks about JDK 25 Project Leyden AOT caches locally—almost nobody measures what happens when Kubernetes pods actually have to download a 200+ MiB archive at scale. Across four Spring Boot tiers tested on GKE with mnemo-warmup (from a 37-JAR microservice to a 458-JAR monolith): • Single-pod readiness dropped 31%–58%: Minimal services fell from 4.5s → 2.0s (-56%) and our 458-JAR monolith dropped from 30.8s → 21.2s (-31%). • Large archive fetches stayed fast: Pulling and SHA-256 verifying a 223.5 MiB archive from same-region Artifact Registry took 0.7s (saving 9.6s). • HPA 1→9 scale-out bursts: Median per-pod readiness improved by 22%–49% under load. • Zero code changes: Caches train asynchronously in-cluster via a CronJob and fail open cleanly to a standard JVM start if a registry stalls. • Benchmark write-up: Full tables, methodology & FAQ • GitHub repo: baokhang83/mnemo-warmup What is your real-world setup for Java startup on K8s? Vanilla JVM, build-time AppCDS, or experimenting with JDK 25 Leyden?
A fast Java linter in Rust that reproduces Checkstyle's findings exactly: reads your checkstyle.xml, runs Google's and Sun's bundled configs in full, many times faster.
Speed, on the full configs: 3.6–5.7x faster on one thread, up to 38x on 16, and 37–400 MB of memory instead of 3–4 GB. A single file takes about 10 ms, which is the number I actually cared about, because that’s what makes it usable in a pre-commit hook.
Finally migrate your contacts from Outlook to Thunderbird!
Git repo Convert Outlooks' horrendous .pst file to standard .vcf vCard and import to any vCard compatible client (your phone, radicale, thunderbird, etc.) ———
I decided to move my whole org to ThunderBird to be free from forced proprietary formats. And I created this Java CLI app (Because Java had the java-libpst to work with PST files) to do it. I converted ~500 contacts successfully and we are free from Outlook at last. ——— This has worked for us, and I tried to make it as robust as possible. If you see any issues, please open an issue or PR. My goal for sharing it is so more people can get out of outlook because the address book thing was a huge blocker for us, for quite a while. LLM disclaimer: I used OpenCode + BigPickle to create this but I wouldn't call it vibecoded. I spent ~2 days on it so far and let the LLM help me. Hope it helps.