<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi" -->

---
title: Programming languages are for humans | daily.dev
description: borrIR is a borrow checker for raw LLVM IR, built so AI agents can write memory-safe code directly in assembly without a higher-level language. It parses...
canonical: https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Programming languages are for humans | daily.dev
og:description: borrIR is a borrow checker for raw LLVM IR, built so AI agents can write memory-safe code directly in assembly without a higher-level language. It parses...
og:url: https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi
og:image: https://api.daily.dev/og/posts/Tb1yF16oi.png
og:image:alt: Programming languages are for humans
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Programming languages are for humans

**[Farid Zakaria’s Blog](https://daily.dev/sources/fzakaria)** · 6 min read · 1 upvotes · 0 comments

## Summary

borrIR is a borrow checker for raw LLVM IR, built so AI agents can write memory-safe code directly in assembly without a higher-level language. It parses textual LLVM IR or bitcode, builds each function's control-flow graph, and runs a forward dataflow analysis to enforce affine ownership. The first release reports eight error classes (E0001 to E0008) plus one warning from use after move to laundering a pointer through inttoptr. It ships libir, a verified standard library with no libc, producing fully static ELF binaries, and includes a bitcode package manager. The code is 100% LLM-generated, and a WebAssembly playground is available.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://fzakaria.com/2026/11/27/programming-languages-are-for-humans>

## Questions this post answers

### Can a borrow checker work without Rust, directly on LLVM IR?

Yes. borrIR is a static analysis pass in front of llvm-as that parses textual LLVM IR or disassembled bitcode, builds each function's control-flow graph, tracks pointer provenance, and runs a forward fixed-point dataflow analysis to enforce affine ownership. It reports eight error classes (E0001 to E0008) and one warning, covering cases like use after move and laundering a pointer through inttoptr.

_Developers following compiler and memory-safety tooling track experiments like this on daily.dev._

### Why does LLVM IR get Non-Lexical Lifetimes almost for free in a borrow checker?

LLVM IR has no lexical scopes. Early Rust kept a borrow alive until the closing brace of its scope, even if the reference was never used again, and fixing that required inventing MIR to track each reference's last use. Since LLVM IR has no scopes to begin with, a checker built on it avoids that problem.

_Compiler internals like lifetimes and IR design are a regular topic for developers on daily.dev._

## Similar posts on daily.dev

- [BorrowSanitizer](https://daily.dev/posts/borrowsanitizer-4ckct9kas) · Lobsters · 0 upvotes · 0 comments
- [Google Proposes JSIR As A High-Level IR For JavaScript](https://daily.dev/posts/google-proposes-jsir-as-a-high-level-ir-for-javascript-emhlrdtev) · Phoronix · 0 upvotes · 0 comments
- [GitHub - glouw/nibble: Generating LLVM IR without malloc or external dependencies](https://daily.dev/posts/github---glouw-nibble-generating-llvm-ir-without-malloc-or-external-dependencies-7hcbmffdt) · Hacker News · 0 upvotes · 0 comments
- [Borrow-checking without type-checking](https://daily.dev/posts/borrow-checking-without-type-checking-tjpie4zif) · Jamie Brandon · 0 upvotes · 0 comments
- [Borrow checker notes](https://daily.dev/posts/borrow-checker-notes-1ngbdqtmw) · Lobsters · 1 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#ai-coding](https://daily.dev/tags/ai-coding)

[View this post on daily.dev](https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Programming languages are for humans","url":"https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi"},"datePublished":"2026-11-28T06:13:41.695Z","dateModified":"2026-11-28T06:14:02.586Z","description":"borrIR is a borrow checker for raw LLVM IR, built so AI agents can write memory-safe code directly in assembly without a higher-level language. It parses...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/196a430d0d97b71238fb198ead68d2ba?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/196a430d0d97b71238fb198ead68d2ba?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Farid Zakaria’s Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Farid Zakaria’s Blog","logo":"https://media.daily.dev/image/upload/s--YqqvRt90--/f_auto/v1723789280/logos/fzakaria","url":"https://daily.dev/sources/fzakaria"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust,ai-coding","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Farid Zakaria’s Blog","item":"https://daily.dev/sources/fzakaria"},{"@type":"ListItem","position":3,"name":"Programming languages are for humans"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/programming-languages-are-for-humans-tb1yf16oi#faq","mainEntity":[{"@type":"Question","name":"Can a borrow checker work without Rust, directly on LLVM IR?","acceptedAnswer":{"@type":"Answer","text":"Yes. borrIR is a static analysis pass in front of llvm-as that parses textual LLVM IR or disassembled bitcode, builds each function's control-flow graph, tracks pointer provenance, and runs a forward fixed-point dataflow analysis to enforce affine ownership. It reports eight error classes (E0001 to E0008) and one warning, covering cases like use after move and laundering a pointer through inttoptr. Developers following compiler and memory-safety tooling track experiments like this on daily.dev."}},{"@type":"Question","name":"Why does LLVM IR get Non-Lexical Lifetimes almost for free in a borrow checker?","acceptedAnswer":{"@type":"Answer","text":"LLVM IR has no lexical scopes. Early Rust kept a borrow alive until the closing brace of its scope, even if the reference was never used again, and fixing that required inventing MIR to track each reference's last use. Since LLVM IR has no scopes to begin with, a checker built on it avoids that problem. Compiler internals like lifetimes and IR design are a regular topic for developers on daily.dev."}}]}
```

