r/AIprogrammingLanguage • • Sep 17 '26

U: a hyper-safe programming language for Humans and AI Agents to collaborate

https://ulanguage.org

Get ready to level up your programming game.

It’s 2026. This language makes you leave all your footguns 🦶🏾🔫 at the door.

It gives LLM all the context they need to stop hallucinating and start writing safe code by default.

It actively prevents supply chain attacks, and more.

It prevents SQL injections and other string interpolation security nightmares

It features exact floating point arithmetic, so 0.1 + 0.2 == 0.3 and no need for crazy workarounds.

It lets you write vectorized GPU-accelerated and CPU-paralllized code without the need for CUDA

It doesn’t even need a garbage collector.

It is its own preprocessor.

Intrigued? Check it out. The compiler is hosted so there is nothing to install. You can try it yourself in the playground. Your binaries are compiled to WASM so they run in your browser. Yes, even with WebGPU acceleration. You can do inference with U.

Oh, one more thing…

U comes with js-based transpilers that you can run in your browser, to transpile your existing PHP, Python, Javascript, Typescript… to U. Then the U compiler finds lots of issues you can fix, and source maps let you see it in your own code.

Been working on this for years but thanks to Claude i was able to make it a realiry. I would love feedback and discussion from anyone who actually looks thoughtfully at the spec and maybe plays around with it in the playground.

6 Upvotes

6 comments sorted by

2

u/lgastako Sep 18 '26

It features exact floating point arithmetic, so 0.1 + 0.2 == 0.3 and no need for crazy workarounds.

Then it's not floating point, or at least not IEEE 754 floating point, right?

1

u/EGreg Sep 18 '26

It is. Here is the research paper https://arxiv.org/pdf/2607.22612

3

u/lgastako Sep 18 '26

Ah, so this literally fixes the 0.1+0.2 problem but introduces huge worse case slowdowns and breaks down for stuff like ML-like uses cases with long chains of matrix multiplications. Interesting tradeoff to make in this day and age.

2

u/EGreg Sep 18 '26

Actually, it doesn’t break down. Paste the paper and ask ChatGPT or Claude. It defers it intelligently until you need a floating point number

1

u/SwedishFindecanor 23d ago

Interesting. I've been looking for a reasonably fast rational numeric format for a scripting language.

All rational numbers could also be represented in a form with repeating decimals. And of course that works in base 2 as well. The beauty is that you could use floating point numbers and bit-intervals, and when the interval exceeds the number of bits it just degrades into a regular floating point number. Addition and subtraction is relatively fast: normal addition or subtraction, matching up intervals and then correcting the bottom-most bits. Multiplication and division in this format is more difficult however, but perhaps there will be hardware support for this some day.

BTW. Google Android's calculator also uses a multi-format representation that uses a rational numeric representation until it isn't possible.

1

u/Otherwise_Wave9374 Sep 18 '26

A language aimed at human-agent collaboration needs safety properties that are easy to verify at the tool boundary, not just safer syntax. Capability-based permissions, effect typing, resource limits, deterministic builds, and machine-readable contracts would make agent-generated code easier to audit. Agentix Labs relates to this direction because its agent systems work depends on enforceable execution boundaries. A convincing next step would be a threat model plus examples showing rejected file, network, and process operations without relying on model compliance.