WEBVTT

00:00:01.290 --> 00:00:02.203
Hi, I'm Nacho!

00:00:02.203 --> 00:00:05.854
Bend 2 is a language that checks proofs and runs on GPUs.

00:00:05.854 --> 00:00:08.288
One small rule does most of the work.

00:00:09.975 --> 00:00:14.231
A value has exactly one owner, unless its type says it's Data.

00:00:14.231 --> 00:00:18.133
That one rule makes the logic consistent, removes the garbage collector,

00:00:18.133 --> 00:00:19.551
and reshaped the runtime.

00:00:21.008 --> 00:00:23.748
A human writes the laws a program must obey.

00:00:23.748 --> 00:00:27.402
An AI writes the code and the proofs, which are ordinary functions.

00:00:27.822 --> 00:00:29.983
One small, human-audited kernel checks them.

00:00:29.983 --> 00:00:32.864
The file either checks, or it doesn't compile.

00:00:33.830 --> 00:00:39.105
Then a mostly AI-written compiler, not yet audited, emits C, Metal, CUDA or JavaScript.

00:00:39.105 --> 00:00:41.365
That link is tested, not proven.

00:00:42.983 --> 00:00:46.898
Letting Type have type Type usually invites a classic paradox.

00:00:46.898 --> 00:00:49.638
Most systems add a hierarchy of universes.

00:00:50.058 --> 00:00:51.525
Bend blocks it differently.

00:00:51.525 --> 00:00:55.926
Every known paradox copies a function, and functions are never Data, so

00:00:55.926 --> 00:00:57.760
the checker refuses the copy.

00:00:59.233 --> 00:01:01.357
The new runtime dropped interaction nets.

00:01:01.357 --> 00:01:04.544
It reference-counts only the types that are actually shared.

00:01:04.964 --> 00:01:08.382
Everything else compiles to plain loads, stores and frees.

00:01:08.382 --> 00:01:09.521
No garbage collector.

00:01:09.941 --> 00:01:13.855
Parallelism is explicit: a two-name let forks two calls, and a bang

00:01:13.855 --> 00:01:15.813
sends a call to the GPU.

00:01:17.300 --> 00:01:21.300
Against a hand-written C twin, one core is close: seven point eight

00:01:21.300 --> 00:01:23.300
seconds to six point seven eight.

00:01:23.300 --> 00:01:24.966
The GPU is far faster.

00:01:26.225 --> 00:01:31.333
Affinity does triple duty: it keeps the logic consistent, removes the collector,

00:01:31.333 --> 00:01:34.313
and trades automatic parallelism for predictable speed.

00:01:36.108 --> 00:01:40.684
To recap: a small kernel checks your laws, affinity keeps the logic

00:01:40.684 --> 00:01:42.973
sound, and ownership replaced interaction nets.

00:01:43.393 --> 00:01:45.450
Every source is in the full article.

00:01:45.450 --> 00:01:46.037
I'm Nacho.

00:01:46.037 --> 00:01:46.331
Bye!
