Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to preview a coding benchmark run before spending on model calls

Use the --dry-run option to inspect a benchmark plan before launching model calls. In Weave Router's public weave-bench harness, the option resolves the pinned task manifest and prints the Harbor commands and configuration for each comparison arm. The plan command makes no network calls and starts no benchmark jobs. One distinction matters: --smoke chooses a small task set, but it does not make…

Before launching a model run, use the --dry-run option to preview a benchmark plan. In Weave Router's public weave-bench harness, this option resolves the task manifest and displays commands and configurations for comparison arms. The plan command itself has no network impact and does not initiate any benchmark jobs.

Key points include:

- The --smoke option selects a smaller task set, but it does not execute any actual runs. Using --smoke with --dry-run will initiate jobs, which could incur costs.

- To set up the benchmark CLI, clone the public Weave Router repository, navigate to the bench directory, and export the necessary environment variables.

- Run the following command to generate a plan: uv run --locked --extra $HARBOR_EXTRA --extra tap weave-bench run terminal-bench-4 --arms router,luna --smoke --dry-run

- The plan output provides information on the selected task, manifest size, pinned versions, task name, and the exact harbor run command for each arm. It does not include any actual model results or costs.

- Double-check the plan before removing the --dry-run flag:

- Confirm the task selection and distinguish between the total manifest tasks and the smoke-subset tasks.

- Record the pinned versions of Harbor, Codex, and the benchmark.

- Verify the comparison arms and their configurations.

- Note the expected environment variable names for a real run.

- Remember that the smoke flag only limits task selection and does not prevent model calls.

- Once you're ready to execute, follow the repository's run instructions and ensure you provide the required credentials in your environment. Keep track of the run ID, source revision, task manifest, any failures, and the final report. Do not treat the dry-run plan as actual benchmark evidence.

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

Building a Trading Engine in Java: Beyond BUY and SELL Signals

Generating a BUY or SELL signal is relatively straightforward. Building a system that can reliably execute that signal is a different engineering problem.

  • A trading signal and trade are distinct concepts in the NERV Trade engine.
  • Market analysis and broker execution are separated into distinct responsibilities.
  • Position and trade are separate entities, with trade owning its exposure.

i wrote a cookie policy for a product that sets no cookies

most cookie policies are confessions written by lawyers. mine is a confession written by me. i’m om yaduvanshi, 18, an applied ai developer building cloudline , a cookieless analytics tool.

  • 18-year-old developer Om Yaduvanshi created Cloudline, a cookieless analytics tool.
  • Cloudline's cookie policy page exists despite no cookies being set, to avoid appearing negligent.
  • The policy outlines four data points collected: page, referrer, screen size, and time.

Why we stopped retrying on timeout and built reconciliation instead

Early in StareBrain’s action dispatch layer, we had a simple rule: if an action times out, retry it. It felt safe. It felt standard. It was wrong. The problem isn’t the retry.

  • StareBrain's previous rule was to retry actions on timeout, which proved incorrect.
  • New state model tracks Delivery and Acceptance states independently to reconcile ambiguous actions.

Pushing Beats Polling Explained: Live Poll Trust Above a Handful of Viewers

Short answer: pushing beats polling above a handful of viewers because one state change should not trigger repeated reads for every screen, but treat delivery as an optimization, not as authorization.

  • Pushing poll results, not polling, reduces unnecessary load and scaling issues with more viewers
  • Trust must be established independently of transport layer for untrusted clients
  • Small, immutable poll state snapshots enable reconnects with correct, up-to-date view

How I built a live halftone portrait in React with just Canvas 2D

My portfolio is set like a newspaper, so my photo couldn't just be a photo. I wanted it to look like a printed halftone: a grid of dots, bigger where the picture is dark and smaller where it's light.

  • Image transformed into low-resolution grid of dots using Canvas 2D API
  • Dot radius determined by sample darkness with applied tone curve
  • Cursor interaction causes dots to swell and recede in a breathing effect

More from Saturday 17 October →