Slide 53 of 53

Where to go next

$ hive check hello.hive
No problems found in hello.hive (0s)

$ hive run hello.hive
it works

$ hive test hello.hive
  1 test: 1 passed
  coverage: 100.0% of statements (3/3)

$ hive container hello.hive
Wrote Dockerfile for hello.hive (0s)
That is the tour. Everything in it runs on the same compiler that served it to you — one executable, and nothing else to install beside it. The download link below is the latest release, built for every platform Go targets; put it on your PATH and every example here is one file away from running for real.The repository is the reference this tour is not. spec/ is the language written down properly, one numbered document per part — the grammar, the type system, the mutability rules, the bounds pass, the standard library, the lowering to Go — and it is where to look once the tour has told you a thing is true and you want to know exactly how true. examples/ holds whole programs rather than fragments, numbered and each one runnable, and they double as the compiler's own test suite, which is what keeps them honest.And the compiler is itself written in Hive and builds itself, so src/ is also the largest Hive program there is to read.
← PrevNext →