Better HN
topnewbestaskshowjobs
Log inSign up

pizza_man

79 karma · joined Apr 19, 2026 (7mo ago) · 33 submissions

Submissions

1.

Show HN: I wrote a DOOM clone in my own programming language(spectrelang.org ↗)

34 points · by pizza_man · 7mo ago · 18 comments

comment 7mo ago · link · parent

The contract system allows for static propagation of trust throughout a program. If some given invariant can be assumed to hold true for the duration of a function, its clearer what can and cant happen (semantically, as opposed to doing try/catch everywhere, and then missing some blindspots, and then adding more try/catch to cover those blindspots, this is actually resolved two-fold in Spectre by using option[T]/result[T, E] on top of the trust/contract system). Moreover, type-level invariants are evaluated at compile time where possible, and non-guarded pre/postconditions are stripped from release builds for performance, meaning you can get the performance of no runtime checks and the safety guarantees (assuming you test before building with --release) provided by contracts.

comment 7mo ago · link · parent

It couldn't be less relevant. It's noise that distracts from the interesting core of the topic. When I'm reading HN, I don't want a long string of "oh btw theres an account on this website called abc_defg". I doubt it's interesting to anyone with sense.
12