Urgent.News

What's breaking now, across thousands of outlets.

Tech

25x Performance, Three Optimizations

On December 31st 2024, the author decided to convert their scheme implementation to a CPS-based JIT compiler instead of an AST interpreter. This was done to make creating continuations mechanical. The author compared the performance of their final interpreted version of scheme-rs to Guile, the scheme implementation installed on the most computers, and found that Guile was over 10x faster.

The author then implemented three optimizations to bring scheme-rs back to the same performance level as Guile. The first optimization was the beta reduction step, which eliminated useless functions and reduced overhead. The second optimization involved mapping expressions to primitive operators, allowing for faster execution by avoiding user functions and continuation expressions.

The third optimization focused on fixing the value type for scheme-rs, replacing a giant enum with a more controlled representation.

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

Read the original at maplant.com →

More in Tech

I couldn’t find a local Post-Quantum file encryption tool, so I built my own. Looking for feedback. Any thought on this ?

Hey everyone, I’ve been searching for a dedicated post-quantum cryptography (PQC) tool to secure my local files against "harvest now, decrypt later" attacks, but couldn’t find a standalone tool that…

  • Combines AES-256-GCM, XChaCha20-Poly with quantum-resistant KEMs like Cypherpunk Max and X-wing.
  • Includes duress password feature to permanently erase encryption key under duress.

More from Friday 28 August →