Unofficial Hacker News companion — get notified on comment replies, and more.

The need for a formally verifiable mainstream programming language (opens external site)

344 points by todsacerdoti 4 days ago | blainehansen.me | 325 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. I'm surprised about this bit of wisdom imparted to you. Componentization addresses the 'whole system state space' issue, does it not? In our modern societies, we routinely use insanely complex mechanisms built by very average workers. The key seems to be discreet parts. The state space of individual parts is not huge and its seems to me (disclaimer: not a PhD /g) hierarchical systems can afford manageable state space complexity at each layer of the hierarchical system.
    Replies (1)
    1. Hierarchical componentization is the same strategy that leads to the bloated megacorporations laden with management layers and applications laden with frameworks we see and lament about today. Discrete parts introduce API's to manage the relationships between the parts, giving rise to impedance mismatch and the other aspects of relationship management we all exert effort to tame. Large state spaces bring their own baskets of dysfunction to put effort into corralling.

      I feel we're searching for an ordering of the universe that bumps up against thermodynamic limits as we know them, something like Shannon's Entropy, and there is no silver bullet, only choices of where to select the complexity landscape and take our stand.

      Replies (1)
      1. > Hierarchical componentization is the same strategy that leads to the bloated megacorporations laden with management layers and applications laden with frameworks we see and lament about today.

        But to a large extent that's a "so what?" if you plan for it.

        If each layer adds 30% overhead and you have 8 layers, that's a 6x slowdown compared to a beautiful/horrible knot of code. 6x slowdown is really bad for a company, but the vast majority of your program is using negligible resources and 6x is still too small to worry about. The important part is designing around the part that needs to be fast.