Urgent.News

What's breaking now, across thousands of outlets.

Tech

If you're looking for what comes after wire, take a look at kanna-di

For a long time, compile-time DI in Go meant google/wire. But wire is no longer taking new features, and every so often the question comes up: what do you use instead? This post introduces kanna-di , which I wrote to sit in that spot. Like wire, the generated code is plain Go and imports nothing at run time. The difference is that you register no providers . What was tedious Think about what you…

For a long time, compile-time Dependency Injection (DI) in Go meant the google/wire library. However, wire has ceased to accept new features, prompting the question of what alternative to use. This article introduces kanna-di, which fills that gap. Similar to wire, kanna-di generates code that is plain Go and does not import anything at runtime.

The key difference lies in how providers are registered. In wire, you declare the injector's signature yourself, use wire.NewSet to collect providers, and pass it to wire.Build and wire.Bind for every interface and constructor. With kanna-di, you simply mark the struct that will serve as the container, and that's it. It examines each field's type, locates the constructor next to that type, follows the constructor's parameters recursively, and writes a constructor that calls everything in order.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Browser Fingerprinting Protection: Randomize, Blend In or Block

A page can ask the browser which graphics card it runs on, through WebGL, the browser's 3D graphics interface. An unprotected browser answers with the exact model.

  • Brave randomizes graphics and audio data for each session
  • Firefox blocks known scripts and adds canvas randomization
  • Safari and Tor Browser blend in by using same user agent

GHOSTLINE — The Terminal That Remembers

GHOSTLINE 👻 — The Terminal That Remembers This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine What I Built What if your terminal remembered everything you…

  • Ghostline is an AI-powered terminal companion
  • Enhances developer workflows with interactive AI
  • Maintains conversation history locally offline

How I built an asynchronous predictive compiler using Git Worktrees and Docker

Current AI coding tools have a fundamental workflow problem: they are entirely reactive. You write a function, you run your test suite, it fails, you copy the error logs, paste them into the AI chat…

  • Shadow-Branch Engine uses Git worktrees for real-time code replication.
  • TypeScript Compiler API reduces context sent to LLM by over 90%.
  • Docker containers execute generated test suites and patches with autonomous healing.

On‑policy distillation works with limited additional data

AutoDAgger recovers teacher trajectories online, letting compact policies inherit large‑model skill while requiring only modest extra data.

  • AutoDAgger distills compact policies using minimal additional data
  • Student policy improves from 27.8 to 77.8 after 90 episodes
  • TILDE achieves 80.6, 63.9, and 69.2 scores on manipulation tasks

More from Saturday 31 October →