Skip to content
HN On Hacker News ↗

Evergreen — Provably Safe Systems Code

▲ 111 points • 88 comments • by jordan_bonecut • 24h ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI and human-written content.

55 %

AI likelihood · overall

Mixed
45% human-written 55% AI-generated
SEGMENTS · HUMAN 4 of 7
SEGMENTS · AI 3 of 7
WORD COUNT 237
PEAK AI % 100% · §1
Analyzed
Nov 4
backend: pangram/v3.3
Segments scanned
7 windows
avg 34 words each
Distribution
45 / 55%
human / AI fraction
Verdict
Mixed
Pangram v3.3

Article text · 237 words · 7 segments analyzed

Human AI-generated
§1 AI · 100%

Provably SafeSystems Code Evergreen brings explicit contracts, checked invariants, and control over memory into one language. Write down what must hold.

§2 AI · 100%

Let the compiler check that it does.

§3 Human · 0%

Try Evergreen nonzero.evg EVERGREEN type NonZero = usize where self != 0; impl NonZero { fn new(x: usize) -> Self where x != 0 { NonZero(x) } } fn main() -> usize { let my_nonzero = NonZero::new(10); 0 } The constructor requires a nonzero input.The compiler checks the invariant when the value is built.

§4 Human · 0%

More Powerful Than C.Safer than Rust.

§5 AI · 100%

01 /Invariants live in your code.Put preconditions, postconditions, and data invariants beside the code they describe. They become obligations the compiler checks.fn increment(n: usize) -> usize where n < usize::MAX ensures result > n { n + 1 } 02 /A compiler that understands memory.Work with explicit layouts, ownership, and borrowed references. Evergreen tracks when a memory plane is live and which uses remain valid.let value: usize = 1; let cell = &mut value; *cell = 10; fact same = value == 10; 03 /Powerful proofs that don't affect performance.Proofs, lemmas by induction, and ideal computations are erased after checking.

§6 Human · 0%

Executable code keeps the work it needs to do.ideal let expected = integer::from(42); let value: usize = 42; fact matches = integer::from(value) == expected; Playground Example main.evgEVERGREEN Console Ready when you are. Run the example to see its output here.

§7 Human · 0%

Loading WebAssembly compiler…Ctrl / ⌘ + Enter to run