‹ BackHN Continuity

Thread

Vx – One Language, Every Chip

75 points · 54 comments · elffjs

  1. AnimalMuppet · · focus · HN ↗
    I haven't played with it at all, but the writeup looks promising. Moving a bunch of things into the type system and out of runtime crashes is one of the ways we make progress.
    1. dnautics · · focus · HN ↗
      I think this is wrong. Type systems should be simpler, and you should design it so that your language is easily and correctly statically checked. Not all invariants necessarily have to be verified at the same cadence (compile time)
      1. classified · · focus · HN ↗
        So you prefer runtime crashes to compiler diagnostics, just so the type system can be "simpler"? I find these priorities backwards.
        1. dnautics · · focus · HN ↗
          > So you prefer runtime crashes

          Do you not understand what static analysis is?

          1. AnimalMuppet · · focus · HN ↗
            We understand that static analysis is often less bulletproof than a compiler's type system. It doesn't always catch everything. If it does, it often says "may", and then you have to sort out the false positives from the real problems, and there can be a lot of them.

            And if you don't take every problem seriously, and do a full investigation, then you are risking a real problem that you don't fix, which can turn into... a runtime crash.

            1. dnautics · · focus · HN ↗
              You are describing static analysis as it has been done. Nothing stopping you from doing sa that rejects as strictly as rust for example does.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.