Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Show HN: Less Prompts, More Guardrails(yasyf.com ↗)
    discuss
  2. Coding Machines(teamten.com ↗)
    discuss
  3. Birdle Explorer(birdle.world ↗)
    1comments
  4. I Investigated Coinbase a Year Ago For Forbes. The Bigger Story Now Is Its Power(thesignalmemo.substack.com ↗)
    discuss
  5. EA Safety(venkateshrao.com ↗)
    discuss
  6. A Builder's Simple Perspective on the Future of the Job Market(wenbo.site ↗)
    discuss
  7. Lint-HTTP 0.1.0 – Easy to use, complete HTTP traffic linter(crates.io ↗)
    discuss
  8. While the human's away, do the agents slip into foul play?(yuv.run ↗)
    discuss
  9. Winning the Visa Lottery(aeaweb.org ↗)
    discuss
  10. The Rise of Niche Consumption(aeaweb.org ↗)
    discuss
  11. Presley Gerber, Son of Cindy Crawford and Rande Gerber, Dies at 27(hollywoodreporter.com ↗)
    discuss
  12. Talk to Hector Salamanca, powered by Jev and a bell(jev-hector.vercel.app ↗)
    discuss
  13. Rally English(wikipedia.org ↗)
    discuss
  14. The Trouble with 'Ntile()'(djnavarro.net ↗)
    discuss
  15. The Genesis of Attribute Grammars [pdf](miami.edu ↗)
    discuss
  16. New wild cat species is identified for first time in 100 years(nbcnews.com ↗)
    discuss
  17. A Silicon Valley radical: Trump's AI whisperer pushing for limited regulation(theguardian.com ↗)
    discuss
  18. Vibemaxxer(cro.sh ↗)
    discuss
  19. China is not ready for a post-American world(economist.com ↗)
    discuss
  20. NYTimes Journalist Regrets Long Ordeal Sending Daughter to Worse NY Schools(nytimes.com ↗)
    discuss
  21. Skills to Make the Perfect Website(github.com/noamankhalil ↗)
    discuss
  22. Chemical and Biological Weapons Explained – Brett Edwards (2024) [video](youtube.com ↗)
    1comments
  23. You Are the Executive Now(sundaylettersfromsam.substack.com ↗)
    discuss
  24. NASA's Moon Orbiter Spots New, 'Once-in-Century' Moon Crater(nasa.gov ↗)
    discuss
  25. Show HN: GrowSpot – checks if a plant can live in an exact spot, not just a room(growspotapp.com ↗)
    discuss
  26. Show HN: Hibi – An open-source obsidian alternative(github.com/schmayterling ↗)
    discuss
  27. Linus demands real users before hazard pointers land(freenode.net ↗)
    discuss
  28. How we're (actually) all going to die(siliconpalace.substack.com ↗)
    4comments
  29. Want to Entice New Residents? Offer Cash, for a Start(nytimes.com ↗)
    discuss
  30. Relativistic Raytracing(publish.obsidian.md ↗)
    discuss

Deterministic Core, Non-Deterministic Shell

12 pointsby 1h agooutdata.net
2 comments
1h agoHN ↗

great work the world needs more of this!

5m agoHN ↗

I agree with the thrust of the article but I want to quibble with one thing: the article says “calling RNGs that aren't seeded” doesn’t count as deterministic behavior, but randomized algorithms often have simpler implementations and better asymptotics than non-randomized algorithms while having statistical guarantees (“almost surely”) on their properties. Two of my favorite examples: (1) a randomized quicksort where choosing the pivot randomly in each iteration is simpler and better than deterministic methods of choosing the pivot; (2) a randomized treap gives you a balanced binary search tree with far simpler implementation than say a red black tree. And that’s besides the more utilitarian security benefit of using randomness inside hash functions so hash tables are resistant to HashDoS attacks.

So I’d implore the author to delete this restriction. Even when randomized algorithms produce different outputs (the treap giving you differently shaped trees with the same sequence of inserts) these outputs have properties that can be checked statistically.