4 ms·
Here are the available 'details' on harelang. > Hare is a systems programming language designed to be simple, stable, and robust. Hare uses a static type syste
by karmakaze 5y ago
Here are the available 'details' on harelang.
> Hare is a systems programming language designed to be simple, stable, and robust. Hare uses a static type system, manual memory management, and a minimal runtime. It is well-suited to writing operating systems, system tools, compilers, networking software, and other low-level, high performance tasks.
A code example:
use io;
export fn main() void = {
const greetings = [
"Hello, world!",
"¡Hola Mundo!",
"Γειά σου Κόσμε!",
"Привет, мир!",
"こんにちは世界!",
];
for (let i = 0z; i < len(greetings); i += 1) {
io::println(greetings[i]);
};
};
And a list of Design principles
Trust the programmer.
Provide tools the programmer may use when they don't trust themselves.
Prefer explicit behavior over implicit behavior.
A good program must be both correct and simple.
Without any elaboration on "Provide tools the programmer may use" assuming that these will relate to language concepts of constructs, there's no differentiating it from many of the well-established 'better C' languages. If there's anything we've learned it's that anything close to C in the area of "Trust the programmer" leads to broken software and we need to aim higher.
- rurban 5y agoit doesn't really trust the programmer. it is even more opinioned than go, where every unused variable or function is an error. eg. it has weird identation rules, like mandatory hard tabs, and alignment demands. it uses the reverse go styles types. but if you look at the stdlib, it looks pretty clean.
- pjmlp 5y agoThe irony is that the C creators were all aware of this, that is why they also created lint (in 1979!), but many macho devs think they know better and dealing with compiler warnings is too much trouble.
- gaws 5y agoVery petty to put the website that's been up for months behind a login page: https://harelang.org/ https://harelang.org/