|
|
Log in / Subscribe / Register

DeVault: Announcing the Hare programming language

DeVault: Announcing the Hare programming language

Posted May 2, 2022 12:52 UTC (Mon) by Tobu (subscriber, #24111)
Parent article: DeVault: Announcing the Hare programming language

Going by just the design principles, especially the last one:

  1. Trust the programmer.
  2. Provide tools the programmer may use when they don’t trust themselves.
  3. Prefer explicit behavior over implicit behavior.
  4. A good program must be both correct and simple.

The design direction for a language should tell about the language rather than about "good programs" in general, saying nothing about where they exist. If the language is to encourage correct programs, this implies reducing the space of programs that it is willing to compile. It means sufficient tools that the programmer doesn't in fact need to trust themselves, or that it could be the exception.

That point about language design space and the space of legal programs is better made in the intro paragraphs of Some mistakes Rust doesn't catch, up until the first code snippet. If making "bad programs" with Hare is too easy, if the type system isn't up to building safe abstractions, I doubt Hare will have a shot at being stable and robust.


to post comments

DeVault: Announcing the Hare programming language

Posted May 2, 2022 13:25 UTC (Mon) by ddevault (subscriber, #99589) [Link]

Reading through this post on mistakes that you've linked to, saving for once it gets into the weeds with operator overloading and generics and threading (all of which is absent in Hare), all of the same limitations enforced by Rust are also enforced by Hare. For example, Hare detects unreachable code and considers it a compile-time error, and enforces initializers for all globals/variable bindings.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds