Skip to content
Agentguiden.no
Submit

Move old research code to a safer language with agents

From Google, the company behind Gemini. According to Google, an agent in Antigravity moved the core of a 174,774 line Fortran and C ocean model to Rust in 59 minutes. It first recorded the original's output across 100 random runs, then planned all 264 files and rewrote the code. It found six old bugs, and the new code ran 1.88 times faster using about half the memory. The figures are Google's own.

Done with Valgfri agentModerate

What was done

From Google, the company behind Gemini. According to Google, an agent in Antigravity moved the core of a 174,774 line Fortran and C ocean model to Rust in 59 minutes. It first recorded the original's output across 100 random runs, then planned all 264 files and rewrote the code. It found six old bugs, and the new code ran 1.88 times faster using about half the memory. The figures are Google's own.

How to do it

  1. Paste the prompt into the tool, and replace the text in brackets with your own.
  2. Read the answer through. Do not send, delete or publish anything until you have seen it yourself.
  3. Check the original before you trust a figure, a name or a date.

Try it with Valgfri agent

Here is [codebase] written in [old language]. Build and run the original first, and keep the results from [number] runs as the reference. Then plan the whole rewrite to [new language] and show me the plan before you write new code. Note any bugs you find in the original, but do not fix them without telling me. You are done when the new code gives the same answers as the reference in every run and the tests pass.

Replace text in brackets with your own.

Read the original

Google (the company behind Gemini) ·

  • Find what slows your websites down with parallel agents

    A developer pulled out which pages used the most server time over the last day, then set four Grok agents to work, one per site. Each agent first took a baseline and tested three possible explanations. In 20 minutes they found and fixed, among other things, a database query that went from 550.7 to 0.45 milliseconds and a page that went from 228 to 11. He has shared the setup as open source.

    Grok@illyism on X ·

  • Build a holo card effect with Kimi, layer by layer

    A user on X took a card from their own collection and made a holo foil effect in the browser with Kimi K3.1 Pro and Three.js. The result has 8 foil patterns, sliders and a card that tilts with the mouse. It took 38 minutes and cost 2.10 dollars, the user writes. The rule that worked was to ask for one layer at a time. The price is compared with other models, but it is a self-measurement, not a test.

    Kimi@slash1sol on X ·

Five agents a day

A short email each morning with five concrete examples of what people use AI agents for. Each example links to its source. You can unsubscribe at any time.

You will first get an email to confirm the address.