A Java Geek weekly 152

Privacy for subdomains. Using PLANS.md for multi-hour problem solving. Open Executive. Technical Writing Style Guide. Kubernetes v1.37: Garhwal. How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache. htmx 4.0.0 has been released! How Jekyll Works. Latency Patterns for Faster AI Applications. Darkbloom. The Death of Developer Advocates. The U.S. is more than just the US (according to the ISO).

Privacy for subdomains

I recently learned about a new way to leak your privacy, and it’s a scary one. Before going further, know that I’m not a network engineer: perhaps if you work in the field, you’ve known it for your whole career, but it’s quite new to me. Let me share my findings and you can judge.

Using PLANS.md for multi-hour problem solving

If you have no SKILL to achieve that, the above is a good way to start.

Open Executive

An AI system that acts as your company’s virtual executive team — a senior advisor with Harvard MBA-level knowledge, customized for your specific business.

Some CEOs seem to think it’s possible to replace developers with AI. Actually, most developers think it’s possible to replace CEOs with AI. This project is the actual proof.

Technical Writing Style Guide

As good as any. Feed it to your LLM for consistent results.

Kubernetes v1.37: Garhwal
  • Spotlight on key updates
    • Stable: Resilient watchcache initialization
    • Beta: HorizontalPodAutoscaler scale to zero
    • Beta: Manifest-based admission control configuration
    • Alpha: Pod-level checkpoint and restore
  • Features graduating to Stable
    • KYAML
    • The metrics.k8s.io API
    • SELinuxMount and SELinuxChangePolicy
    • DRA features graduating to Stable
      • DRA: ResourceClaim status with possible standardized network interface data
      • DRA: handle extended resource requests via DRA Driver
      • DRA: device taints and tolerations
      • DRA: standard numaNode device attribute
    • Node declared features
    • Storage version migrator
    • Stable: Pod certificates and Cluster Trust Bundles
  • Features graduating to Beta
    • Gang scheduling support in Kubernetes
    • Native histogram support for Kubernetes metrics
    • WAS: Features graduating to Beta
      • Workload-aware preemption
      • DRA: ResourceClaim support for workloads
    • cAdvisor-less, CRI-full container and Pod stats
    • Support memory QoS with cgroups v2
    • Pod-level resource managers
    • Watch-based route controller reconciliation
    • Storage capacity scoring of Nodes
    • Integrate CSI volume attach limits with Cluster Autoscaler
    • Report last used time on a PVC
    • etcd RangeStream support
    • Concurrent watch object decode
    • Manifest-based admission control config
    • Improved handling for undecryptable resources
  • New features in Alpha
  • Deprecations and removals
How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache

I’m not a fan of deep optimization posts, but this one is quite clear (at least to me). Plus it’s Rust and Cloudflare.

htmx 4.0.0 has been released!
  • Breaking Changes
    • fetch() replaces XMLHttpRequest
    • Explicit inheritance
    • Error responses swap
    • hx-delete excludes form data
    • No history cache
    • OOB swap order
    • hx-trigger queue modifier removed
    • 60-second timeout
    • Extension loading
  • Renames and Removals
    • Attributes
    • Events
    • Config
    • Request headers
    • Response headers
    • JavaScript API
  • What’s New
    • Attributes
    • hx-swap scroll modifiers
    • hx-swap styles
    • Status code swaps
    • <hx-partial>
    • View transitions
    • JSX compatibility
    • JavaScript methods
    • Auto-logged events
    • Request Context in Events
    • Events
    • Config keys
    • Core extensions
How Jekyll Works

Jekyll is useful albeit old static site generator that I’m still using for this blog.

TIL: profiling.

Latency Patterns for Faster AI Applications

The patterns are definitely applicable outside of AI.

  • Locality Patterns
    • Colocation Pattern
    • Replication Pattern
    • Partitioning Pattern
    • Caching Pattern
  • Work Reduction Patterns
    • Algorithmic Work Reduction Pattern
    • Selective Data Processing Pattern
    • Setup Reuse Pattern
    • Request Coalescing Pattern
    • Runtime Tuning Pattern
  • Concurrent Execution Patterns
    • Synchronization Avoidance Pattern
    • Independent Concurrency Pattern
    • Progressive Response Pattern
    • Concurrency Budget Pattern
    • Hedged Requests Pattern
  • Anticipation Patterns
    • Predictive Prefetching Pattern
    • Optimistic Update Pattern
    • Speculative Execution Pattern
    • Precomputation Pattern
    • Prewarming Pattern
Darkbloom

Darkbloom routes encrypted requests to hardware-verified Apple Silicon providers, delivering comparable model performance at about 50% lower cost than typical API providers. Prompts stay hidden from operators, and Mac owners earn from compute they already own.

Install the provider, choose when your Mac is available, and earn from inference jobs matched by the network. During the public alpha, operators keep 100% of inference revenue.

The Death of Developer Advocates
  • TL;DR: The title is clickbait.
  • The work stays the same, but now developer advocates have another audience, the agents.
  • The speaker undersells herself. She claims she’s not an engineer, but she has a PhD in physics.

    My personal opinion from a former developer advocate is that Developer Advocacy died when money dried out. The discipline always was hard, as you had to prove your worth to your boss and/or the company. Long-term investments such as DevRel will always lose againt short-term benefits.

The U.S. is more than just the US (according to the ISO)

the ISO 3166 list is a list of country codes…​ and parts of countries. (emphasis mine)

It’s not only for the US actually. Here are France’s two-letters country codes:

  • fr — Metropolitan France
  • gf — French Guiana
  • gp — Guadeloupe
  • mq — Martinique
  • re — Réunion
  • yt — Mayotte
  • bl — Saint Barthélemy
  • mf — Saint Martin (French part)
  • pm — Saint Pierre and Miquelon
  • pf — French Polynesia
  • wf — Wallis and Futuna
  • nc — New Caledonia
  • tf — French Southern Territories