Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. America's Shifting Blue-Collar Landscape (city-journal.org)
    —discuss
  2. When the World Saw van Gogh as 'A Madman,' She Saw His Genius (nytimes.com)
    1comments
  3. Human Frailty (aaatalanta.substack.com)
    —discuss
  4. Fedora 45 to Feature Smoother Experience for Snapdragon X1 Laptops (phoronix.com)
    —discuss
  5. Medusa Headless Commerce Agencies: 10 Best Options in 2026 (focusreactive.com)
    —discuss
  6. Portland Real Estate Is Such a Mess That All Housing Is Affordable Housing (wsj.com)
    —discuss
  7. A programming language is a medium for people (fuzzypixelz.com)
    —discuss
  8. Show HN: Sprout – a TUI habit tracker written in Rust (github.com/kb019)
    —discuss
  9. The Perfect Crime: LLM Agents Can Easily Tamper with Their Own Traces (perfect-crime.ai)
    —discuss
  10. New Digital Voice Mode for HF Radio (arrl.org)
    1comments
  11. Open Source AMS for Bambu Labs (github.com/amsozzer1)
    1comments
  12. Show HN: I'm a dermatologist and I vibe coded a 3D biophysical skin model (drmagnuslynch.com)
    —discuss
  13. EnigmaForge – an LLM benchmark where the question is hidden in the story (arxiv.org)
    —discuss
  14. Buying a New Computer (1993) (archive.org)
    —discuss
  15. It Was the Harness, Not the Model (herlein.com)
    1comments
  16. How Pew Research Center is – and is not – using AI in our work (pewresearch.org)
    —discuss
  17. The Untold Origins of Trump's Plan to Sharply Restrict Mail-In Voting (propublica.org)
    —discuss
  18. Parasocial media: why influencers aren't your friend (baldurbjarnason.com)
    —discuss
  19. Stanford Encyclopedia of Philosophy (stanford.edu)
    —discuss
  20. Dodge's Fire-Preventing Ejecting Battery Patent (jalopnik.com)
    —discuss
  21. Manus 2.0 (manus.im)
    —discuss
  22. Ask HN: Finetuning strategies
    1comments
  23. Small Decisions: Engineering a Leading Model (brooker.co.za)
    —discuss
  24. The Download: rogue agent liability and the AI Hype Index (technologyreview.com)
    —discuss
  25. Singer: The Downfall of a Great American Manufacturer (worseonpurpose.com)
    1comments
  26. Firefox 157 (neowin.net)
    —discuss
  27. How private equity is killing public access to hospitals and emergency care (washingtonpost.com)
    2comments
  28. Fifty Years of Semicolons (jordanzimmerman.com)
    —discuss
  29. Driver Ticketed for No Insurance Just Because Flock (YC 2017) Said She Didn't (techdirt.com)
    —discuss
  30. The Artificial Analysis Cyber Index (artificialanalysis.ai)
    —discuss

Ask HN: Can we translate normal Rust (axum) to Lean 4 without restrictions?

3 pointsby 38m ago
0 comments
I'm trying to build a web app in Rust using axum, and am thinking whether I can export that Rust code to Lean4 so that I can verify business logic or security properties.

I first tried Aeneas, but it can only work for restricted grammer and structurs that are hard to review (it even doesnt look like Rust).

For example, when I want to write:

``` fn find_post(ps: &[Post], id: u64) -> Option<&Post> {

    ps.iter().find(|p| p.id == id)
}

```

I have to write:

``` pub fn find_post(ps: &Vec<Post>, id: u64) -> Option<Post> {

  let mut i = 0;

    while i < ps.len() {

        if ps[i].id == id {
            return Some(ps[i].clone());
        }

        i += 1;
    }

    None
}

```

Is there anybody who have addressed this kind of problem??

For anyone interested, the experiment source and examples are at https://github.com/h5i-dev/i5h. I've ported parts of a few real web apps (e.g., Kellnr, Atuin, Wastebin, Conduit), and their core logic can now be verified to some extent. Ofcourse, that does assume the rest is correct, like axum/hyper for HTTP and PostgreSQL plus the engine for storage.

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