Urgent.News

What's breaking now, across thousands of outlets.

Tech

There's no reason for software to be slow anymore

Article URL: https://danluu.com/perf-opt/ Comments URL: https://news.ycombinator.com/item?id=49395628 Points: 227 # Comments: 168

In recent times, a viral tweet suggested that people's concerns about slow, bloated code caused by LLMs (large language models) would become obsolete once everything is rewritten in super-optimized assembly. However, despite not being at the point where we want to write everything in assembly, there is a growing realization that one can choose how many bugs they want, which aligns with what Nolan Lawson stated about testing. This notion is becoming increasingly true for performance.

Marc Brooker responded to a comment from the previous post, agreeing that the cost of performance work that used to require specialized skills has dropped by many orders of magnitude, allowing anyone with basic typing skills to perform optimizations previously reserved for large-scale or lucrative projects. In response to this, dynamic custom software tailored to specific workloads rather than general workloads has emerged as a very likely outcome. This approach comes with its own set of risks and opportunities.

The meme circulating about AI not helping because "code was never the hard part" may be true in some domains, but it's different when it comes to writing code. JIT (just-in-time) compilers, such as those in pgrust, have lowered the barrier to entry, making it easier to write a JIT compiler. This is the foundation behind projects like pgrust. Historically, databases were the most challenging piece of software to build due to their complexity, but now with AI, we can be more ambitious in the types of software we build.

A case in point is FRE, a regex engine built by an agent over a month, improving performance using the rebar regex benchmark suite. Although FRE was heavily overfit to the benchmark suite, once an agent was warned about a holdout benchmark, it generalized the optimizations, resulting in acceptable performance on the holdout benchmarks.

While a well-tested regex engine would be preferable, a notable aspect of FRE is that its native AOT compiled version performs well for longer searches, demonstrating the potential of running a native code compiler in another thread while ripgrep's normal matcher runs and then switching to the native code when the compilation finishes.

This approach can result in better performance for longer searches, albeit at the expense of shorter queries.

The same principle applies to other areas of software development. Instead of writing a native code compiler for regex matching, creating an index could be a more practical solution for speeding up text searches. The author, who has experience with BitFunnel, the Bing search index, can envision a project to build a fast local index of their entire machine.

With access to state-of-the-art models running on high-performance hardware, the author might even consider custom optimization efforts. With a modest monthly budget of $200, a faster ripgrep combined with an off-the-shelf index might be sufficient for most users.

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

Also reported by 1 other outlet

Read the original at danluu.com →

More in Tech

Japanese space tech startup Letara expands beyond satellite thrusters with $16M

Japanese space startup Letara is betting its hybrid rocket technology can move beyond small satellite thrusters into a broader market for space, defense and security, after raising ¥2.6 billion ($16…

  • Letara expands into large rocket systems for defense and security markets.
  • Hybrid propulsion uses plastic and rubber as solid fuel, separate from liquid oxidizer.
  • Global hybrid rocket market projected to reach $2.6 billion by 2032.

How I’m Improving a Local Service Website for SEO, AEO & GEO

I’ve been working on improving a local pressure washing website in Jacksonville, FL, and I’ve been focusing on more than just traditional SEO.

  • Jacksonville pressure washing business overhauls SEO strategy
  • Focus on image implementation, semantic HTML, internal linking
  • Aims to improve AI search and LLM visibility while maintaining traditional SEO

JavaScript Sandbox Escape via Type Confusion in isolated-vm

1. Basic Information Article Name : GHSA-864f-rcv7-6rh4: Critical Type Confusion Vulnerability in isolated-vm Publisher : Endor Labs Publication Date : 2026-08-20 Update Date : None Severity : high…

  • Critical type confusion vulnerability in isolated-vm JavaScript sandbox
  • Untrusted code can escape sandbox, gain host process control
  • Exploits affect Node.js, V8, n8n, Activepieces, Mastra AI

The jitter wasn't in the interpolation. It was in the schedule.

The avatar standing on my desktop looked like it was stuttering. One symptom — but it turned out to have three causes of completely different kinds.

  • Jitter issue had three causes: interpolation, overlap, and visibility
  • Interpolation not root cause; schedule timing caused jumps
  • Guard missed procedural-motion path, leading to stutter

More from Saturday 22 August →