Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Show HN: Shapefile viewer that asks which datum when the .prj is missing(9revolution9.com)
    discuss
  2. Show HN: EagleQR – Privacy-first QR scanner with on-device decoding and summary(play.google.com)
    discuss
  3. Forging 1024-bit RSA signatures in nearly SNFS time(github.com/ucsd-hacc)
    discuss
  4. ECB will invest in tokenised securities, and settle trades on its own new rail(thenextweb.com)
    discuss
  5. RustyTux: Linux kernel n-day local privilege escalation(github.com/m0x41nos)
    discuss
  6. Pyrowave: GPU-back video codec for high-bandwidth, low-latency streaming(github.com/themaister)
    1comments
  7. I think it's time to hang up my Three.js hat(twitter.com/dangreenheck)
    discuss
  8. The first mRNA flu shot is now available. Here's who can get it(nbcnews.com)
    2comments
  9. The Chern-Simons Function and the Quantum Hall Effect(arxiv.org)
    discuss
  10. Scaling Discovery Through Test-Time Communication(arxiv.org)
    discuss
  11. BCBS Michigan posts $246M loss in 2025(beckerspayer.com)
    discuss
  12. ShinyHunters hijack rival Clop's leak site(theregister.com)
    discuss
  13. Raspberry Pi is intentionally blocking RAM capacity upgrades(notebookcheck.net)
    discuss
  14. REO Trucks teams up with frankstephenson design on its new Runabout lineup(reotrucks.com)
    discuss
  15. Avoid White Noise at Work(inc.com)
    discuss
  16. First NetHack Ascension by an LLM(hardfought.org)
    discuss
  17. Trump admin won't give AI leaders a 'liability shield,' Bessent tells CNBC(cnbc.com)
    discuss
  18. Why Russia's New Jet-Powered Drones Are Harder to Stop(united24media.com)
    discuss
  19. Magic Jev Ball(rorz.io)
    discuss
  20. TIL: 0xCAFEBABE(artima.com)
    discuss
  21. Living is not for the weak(mikhailgarth.com)
    discuss
  22. No Easy Fix for Bogus Respondents in Online Opt-In Polls(pewresearch.org)
    discuss
  23. Show HN: Nvidia networking equipment masquerading as ATT consumer modems and PON
    discuss
  24. Argus II: The story of a $150k artificial retina(youtube.com)
    discuss
  25. Jevframe: Typed semantic decisions for Pandas and Polars with Jev(pypi.org)
    discuss
  26. Department of Energy launches $215M race to build quantum computer by 2028(science.org)
    discuss
  27. You're predictable. That's a good thing: Can personal LLMs learn your judgment?(handsdiff.substack.com)
    discuss
  28. How Google is drafting AI chatbot laws around the country(npr.org)
    discuss
  29. Did OpenAI solve the wrong Navier-Stokes problem?(scientificamerican.com)
    discuss
  30. Open Mercato Hackathon in Wrocław – AveCezar(cygankiewicz.com)
    1comments

Show HN: Jevopt: Making intelligent compiler optimisation decisions with Jev

1 pointsby 53m agogithub.com
0 comments
Can Jev optimise the size of compiled binaries better than clang -Oz?

Turns out it can (sometimes)! Introducing jevopt: making intelligent compiler optimisation decisions with Jev. I used Jev to make intelligent inlining decisions at each LLVM IR call-site. Here’s why and how I did it.

Everywhere I looked, I saw cool Jev demos, so I thought I'd apply it to my area: systems programming and compilers. When optimising binary size (e.g. in embedded systems), choosing whether to inline a function call is tricky, because while it can duplicate code, it can also enable optimisations that ultimately eliminate code!

Jevopt uses Jev's "intelligence" to make this choice. At each discretionary call site, Jev sees the current caller/callee LLVM IR, original C/C++ source, build context, and 7 structural facts about the program. It returns one choice: inline or keep out of line.

So how well does it work? I evaluated jevopt on all 19 Embench 1.0 programs. Aggregated with geometric mean, the .text in its programs is 7.87% larger than clang -Oz, meaning that jevopt loses in aggregate. However, it sometimes achieves big wins over the mature clang heuristic.

E.g., on Statemate, jevopt produces a .text of 2382B vs 5698B for clang -Oz, achieving a whopping 58% reduction! In total, it beats clang -Oz on 7/19 programs.

(Clearly) jevopt is not production software, but it shows that intelligent model judgements sometimes beat heuristics. Despite the overall negative result, there are two reasons why I find it exciting:

1. Measuring code size, unlike runtime, is essentially free. So if one compiles with both jevopt and -Oz, there are real gains to be had at the cost of just 1 extra compilation (and a few cents in Jev API calls)!

2. As wonderfully intelligent as Jev is, I am fairly certain this is not a use case the author had in mind :) Finetuning a Jev-like model specifically for this task should improve jevopt's performance even more and might even get us an aggregate win over clang -Oz.

The code is open source (github.com/Ramneet-Singh/…), and a full dashboard with the details of my Embench run is hosted at ramneet-singh.github.io/jevopt/.

I plan to keep doing cool stuff at the intersection of AI and compilers, so please reach out if you're interested in this too!

A quiet thread, for now.Start the conversation on HN ↗