Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    23comments
  2. Cloudflare Quick Tunnels(cloudflare.com ↗)
    187comments
  3. Saving another 100TB of RAM with math (and Rust)(cloudflare.com ↗)
    5comments
  4. Apple releases iPhone Duo simulator and Xcode 27.1 beta(developer.apple.com ↗)
    4comments
  5. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    31comments
  6. Cache-to-Cache: Direct Semantic Communication Between Large Language Models(arxiv.org ↗)
    discuss
  7. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    55comments
  8. OpenJev(openjev.com ↗)
    229comments
  9. North Korean nuclear test sets off years of earthquakes(science.org ↗)
    117comments
  10. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    160comments
  11. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    4comments
  12. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    134comments
  13. Our brain evolved from two primitive nervous systems that merged: Study(newscientist.com ↗)
    23comments
  14. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    150comments
  15. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    16comments
  16. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    10comments
  17. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    36comments
  18. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    83comments
  19. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    192comments
  20. Minimal Phone 2(minimalcompany.com ↗)
    81comments
  21. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    5comments
  22. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  23. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    5comments
  24. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    12comments
  25. How to Write with an LLM(sockpuppet.org ↗)
    209comments
  26. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    5comments
  27. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    12comments
  28. Jemalloc 5.4.0(github.com/jemalloc ↗)
    79comments
  29. I don't like passkeys(hawksley.dev ↗)
    642comments
  30. The scourge of x86 emulation(fex-emu.com ↗)
    72comments

Programming as Theory Building (1985) [pdf]

117 pointsby 7y agopages.cs.wisc.edu
11 comments
7y agoHN ↗

The last paragraph:

    Documentation cannot--and so need
    not--say everything. Its purpose is
    to help the next programmer build an
    accurate theory about the system.
7y agoHN ↗

I keep sending copies of this paper to numerous colleagues. AFAIK almost none of them finished (or even started) reading it. I’m at a loss to explain why, since it is such a deeply insightful paper.

7y agoHN ↗

Yes, but this paper is so important, yet not as well known as it should be, that I feel it is right it resurfaces every few years here.

Everyone involved in software development should read and understand it!

7y agoHN ↗

Often times on HN, people provide links to previous postings merely so others can reference the previous discussions. It's generally not meant to be a call out of bad behavior.

7y agoHN ↗

Strange article - essentially comes down to "If you need to know, ask, because no one understands - or probably even reads - documentation anyway."

It's not obvious how thinking about programming as theory building will help with any part of this. The real problem seems to be poor communication between projects and developer groups, with the implication that any self-guided learning approach can't possibly work because it's impossible to communicate the "why" of code without having someone who does understand it explain it to you.

It's an interesting point, and in some ways explains a lot. But I see no reason to think that "theory building" - which really means teaching domain expertise external to the code - is a practical solution in most projects.

7y agoHN ↗

I really liked the article. I think the idea is fundamental. It sheds light on the value of things like trying to retain staff and allowing them to become experts on a piece of code. It explains why Brook's Law ("adding human resources to a late software project makes it later") is true.

7y agoHN ↗

That seems like a strange summary. A better one:

Everyone builds models about the world around them (Naur used "Theory" instead of "Model" but they're the same here). Not all models are as accurate as others, though they may be sufficient for many situations. The developers of a system (most likely) have the best model of how the system operates and is constructed. Operators have a separate model. Maintainers have a third model. By separating the initial developers, operators, and maintainers, and reducing communication to, primarily, the exchange of programming notation and documentation, three different models (at least) will be produced. Incorrect models lead to incorrect usage and incorrect maintenance activities.

If your programs are short-lived or very simple, this paper is of little utility to you. But if your programs are expected to live for a decade or more, or are very complex, the ideas here are more useful, probably critical to the longterm success of your enterprise.

I work (or have worked) on systems that were developed over 30 years ago. A lot of knowledge has been lost, and a lot of wheels get reinvented. Or components of the system go underutilized, or misused because of misunderstandings of how the system functions and was designed. The more successful projects have had people working on or with them for 10+ years. Without them, program modifications have usually been small (large changes were seen as untenable), complete rewrites (because no one understood it), or failures (long delays, maybe a working product at the end, often with one or more rewrites along the way).

7y agoHN ↗

Thank you for sharing this!

In my opinion, this is spot on and an important insight into programming.

The validity of this view of programming is particularly evident when using a logic programming language like Prolog or Mercury: In this case, the programmers' task is to describe what holds, and the clauses that constitute the program and their semantic consequences are literally the theory of interest.