Yay, another programming language! And this one doesn't look vibed at first glance! (Not being sarcastic. The more the merrier.) Unfortunately, 'at first glance' was exactly right and it turns out to be another vibecoded language. Whereby Yay, another programming language becomes sarcastic retroactively.
I would honestly like to hear what about it makes you think its vibecoded. This kind of redditor investigation always makes me laugh. The compiler backend is literally months of work. Is it bad? Have you tried it?
Looks like an interesting project! I'm personally very excited about Verus and Creusot, which add compile-time verified function specifications to Rust, and I'm always happy to see new languages where these features are part of the language design, rather than bolted on retroactively.
Two things that confused me while reading though the documentation:
The website states that "all contracts are checked at compile time", which sounds similar to what Verus & Creusot do, where everything is checked by SMT solvers statically, and only provably correct programs compile. But the docs later clarify that "contracts are evaluated at compile time when the compiler has enough information, at runtime otherwise".Even worse, the examples imply that the compile-time prover is essentially just constant folding, meaning any interesting statement about function inputs ends up being a runtime assertion.
The other flagship feature from the homepage, the "Immix Collector", is only the "intended" design. According to the docs: "the current runtime implements a parallel mark-and-sweep subset". So the claims about this garbage collector are also misleading.
SMT solvers sound good but in practice if the compiler cant prove your program is correct, it doesnt compile, or it just allows everything, which makes them impractical, and the DX just ends up being terrible, with the contracts being an obstacle instead of an assistance.
The runtime checking thing means that the compiler forces you to use Result[T, E] if it cant prove something, which is much better than not compiling at all, and means that the program doesnt abort at runtime because of something that couldnt be proven at compile time. Hope that helps.
I mean it's a valid design choice to make runtime assertions a built-in language feature; D, Ada and Eiffel do something very similar, and some modern languages (e.g. Zig) have built-in unit testing. It's just that none of these language claim that "all contracts are checked at compile time".
well this one does, isn't that great? :) they are all checked, the unchecked ones become Result types that need to be unwrapped. so even they are checked.
hey whoever downvoted fuck off im trying to have a conversation here. jeez, reddit cucks, am i right aaron?
Looking at the documentation, I see that Haze supports pattern matching, but doesn't support nested patterns. Is there a reason why those are disallowed? They can provide succinct expressions for things like balancing red-black trees:
balanceLeft (Node _ (Node Red lx kx vx rx) ky vy ry) k v r = Node Red (Node Black lx kx vx rx) ky vy (Node Black ry k v r)
Context error reporting is cool! Donβt worry, keep working on this. Publish some articles, benchmarks. You will need a package manager, use a winget-like git-based package registry, is easier to manage things, and start create the ecosystem!
The brainlet comments from the redditor neckbeards is really funny to me.
> Ignores unique memory allocation strategy and spec that took months to sketch > Ignores compiler backend that applies optimizations on top of QBE to achieve near-LLVM performance for a fraction of the cost > Ignores DbC guarantees and compile time evaluation from the compiler > Uses single braincell: > "AI was used, if you check theirs repo"
10
u/futur3_pr3s3nt 16h ago edited 14h ago
Yay, another programming language!
And this one doesn't look vibed at first glance! (Not being sarcastic. The more the merrier.)Unfortunately, 'at first glance' was exactly right and it turns out to be another vibecoded language. Whereby Yay, another programming language becomes sarcastic retroactively.3
u/beephod_zabblebrox 15h ago
which domain is right? here its haze-lang.cc, on github its hazelang.org
3
u/Aaron1924 11h ago
Looks like an interesting project! I'm personally very excited about Verus and Creusot, which add compile-time verified function specifications to Rust, and I'm always happy to see new languages where these features are part of the language design, rather than bolted on retroactively.
Two things that confused me while reading though the documentation:
5
u/standard_cog 12h ago
"AI artist"
2
u/AustinVelonaut 12h ago
Looking at the documentation, I see that Haze supports pattern matching, but doesn't support nested patterns. Is there a reason why those are disallowed? They can provide succinct expressions for things like balancing red-black trees:
1
u/Lonely-Session-7643 13h ago
Context error reporting is cool! Donβt worry, keep working on this. Publish some articles, benchmarks. You will need a package manager, use a winget-like git-based package registry, is easier to manage things, and start create the ecosystem!
1
u/ggeldenhuys 12h ago
A fork of QBE to support Windows? But QBE does support Windows. π€·ββοΈ
1
u/funcieq 12h ago
I know your nickname from somewhere, did you made axe lang?
1
u/KvThweatt 13h ago
Looks neat. Attaching a contract to a function and declaring a contract looks very similar to my language Ideka. I approve. Keep it up.
1
u/funcieq 12h ago
I love type system in your language
-10
u/Top_Marionberry_4413 14h ago edited 14h ago
The brainlet comments from the redditor neckbeards is really funny to me.
> Ignores unique memory allocation strategy and spec that took months to sketch
> Ignores compiler backend that applies optimizations on top of QBE to achieve near-LLVM performance for a fraction of the cost
> Ignores DbC guarantees and compile time evaluation from the compiler
> Uses single braincell:
> "AI was used, if you check theirs repo"
Hilarious.