{"full_name":"bendlang/bend","owner":"bendlang","name":"bend","shard":"1","url":"https://github.com/bendlang/bend","description":"Bend 2: a fast language that blocks AI mistakes via proof. Install: curl -fsSL https://bend-lang.com/install.sh | sh","homepage":"https://bend-lang.com","topics":["bend","cuda","dependent-types","gpu","metal","parallel","programming-language","proof","theorem-proving"],"tag_pages":["cuda","gpu","metal","parallel","programming-language","theorem-proving"],"language":"TypeScript","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/330058878?v=4","created_at":"2023-08-29T20:44:32Z","pushed_at":"2026-11-24T19:06:19Z","metrics":{"stars":25999,"forks":828,"watchers":108,"issues":918,"prs":1431,"releases":33,"issues_open":144,"issues_closed":774,"prs_open":96,"prs_closed":397,"prs_merged":938,"discussions":0},"growth":{"day":{"stars":41,"forks":1,"base_day":"2026-11-27"},"week":{"stars":290,"forks":7,"base_day":"2026-11-21"}},"history":{"dates":["2026-11-20","2026-11-21","2026-11-22","2026-11-23","2026-11-24","2026-11-25","2026-11-26","2026-11-27","2026-11-28"],"stars":[25635,25709,25744,25794,25834,25867,25898,25958,25999],"forks":[820,821,823,826,827,827,827,827,828],"watchers":[115,114,114,112,109,109,109,108,108],"issues_open":[91,93,93,93,116,143,143,143,144],"prs_open":[65,68,69,76,98,94,95,96,96]},"boards":{},"same_owner":[],"issues":[{"number":1182,"title":"BendTT mismatch for opaque higher-order template with dependent equality result","comments":11,"created_at":"2026-09-29T00:47:02Z"},{"number":1573,"title":"A file read into an Array<U32>, so loading model weights is not one list cell per byte","comments":10,"created_at":"2026-10-15T03:47:01Z"},{"number":1781,"title":"A tiled matmul in Bend runs about 4x slower than the same kernel handwritten in CUDA: where the time goes","comments":9,"created_at":"2026-10-20T00:40:04Z"},{"number":1376,"title":"A read-only borrow of an Array for a parallel let, without @unsafe","comments":8,"created_at":"2026-10-07T03:17:07Z"},{"number":1069,"title":"C backend: a segment with more than 247 live one-word values fails to compile","comments":6,"created_at":"2026-09-25T15:27:25Z"},{"number":2141,"title":"CPU: a small parallel let wakes every worker thread: 0.6 ms of system time a let on 16 threads, and the sequential code between lets runs up to 38% slower","comments":5,"created_at":"2026-11-13T01:01:35Z"},{"number":2094,"title":"Metal: IR evaluator works on CPU but fails on M1 Max","comments":5,"created_at":"2026-11-08T09:39:40Z"},{"number":1514,"title":"An imported forward dotted datatype is resolved as lib.lib:Type","comments":5,"created_at":"2026-10-12T12:11:17Z"}],"discussions":[],"latest_release":{"name":"Bend 2.0.40","tag":"v2.0.40","published_at":"2026-11-06T02:06:29Z","body":"- **The checker no longer hangs on a proof that a list is its own head <>\n  tail**: conversion gave a share cell the value of an equal one, so a bare\n  `{==}` of `{Hd(D) <> Tl(D) == D}` made `D` name itself, and the next\n  check through `D` never ended, or `--verdict` overflowed the stack. Equal\n  cells now join a class and no value moves: a file that ran past 900 s\n  checks in 3.3 s.\n- **`bend --publish` sends the `README.md` beside the entry**, and the hub\n  shows it (PR #2033).\n- **`bend-cache`** (`tools/`): a proof cache for `--check-only` outside\n  bend (PR #2045).\n- **Base**: `Array.get_unchecked`, an `@unsafe` read without the wrap mask\n  (PR #1880 by adeerkhan); `U32.popcount` and `U32.ctz` (PR #1905 by\n  MattCozendey); merge sort starts from sorted pairs (PR #2018 by\n  toprameen).\n- **IO**: positioned byte writes (PR #1887 by vicmcorrea);\n  `File.open(path, \"r+\")` opens an existing file to read and write (PR\n  #1853 by EpsilonPhoenix); a pointer event is one `Press` for a mouse, a\n  finger or a pen (PR #1867 by MattCozendey); native fullscreen keeps the\n  logical rendering resolution (PR #1443 by oxura).\n- **Faster checks**: let kind checks, quantity comparisons, the scope\n  search, call arguments, constructor fields, `pmap_set`, free names,\n  operators and the verdict's walk each do less work (PRs #1947, #1952 by\n  raramos9; #1965, #1967 by sebastianbreguel; #1966, #2013, #2048, #2053,\n  #2060, #2061 by nicolas-abril).\n- **Faster programs**: a long loop over `F32` is a call on the host too:\n  nbody 1.19x on SEQ, 1.15x on PAR (#1240, PRs #1814, #1950 by\n  nicolas-abril); a match arm's node allocation is hoisted (PR #1792 by\n  viridale); host lanes share large freed blocks (PR #1869 by\n  sebastian-griego); `blk_new` fills vectorize (PRs #1928 by raramos9,\n  #1946 by nicolas-abril); a wide def's boxed record stays boxed until a\n  use needs it, and an unfold builds its callee's body once (PRs #2036,\n  #2051 by nicolas-abril); JS channel waits, GPU size checks and\n  positioned reads cost less (PRs #1859, #1872 by sebastianbreguel; #1993,\n  #2015, #2016 by toprameen).\n- **Clearer errors** (#1632): a call missing arguments, a pair where `Data`\n  is expected, a self-call that does not shrink, a false `{==}` (its sides\n  as written), a match missing cases and a def given `<...>` each say what\n  is wrong (PRs #1865, #2000, #2002, #2006, #2007, #2008); a do-block bind\n  or let written without its type gets a note (PR #1807 by HamedShams); a\n  call to a def written below its caller names the file order (#1782, PR\n  #1783 by viridale); a stray `=` after a do block's last statement is\n  refused (PR #1889); spaced successor patterns and a glued `x+y` point at\n  the right spelling (PR #1969); the import path and array depth errors\n  say what a name and `d` are (PRs #1963, #1964 by sebastianbreguel).\n- **CLI**: a BUILD tag after the version, for forks (PR #1907 by\n  MattCozendey); a `!` program built for the CPU because no CUDA toolkit\n  was found says so (PR #1888); colliding output requests are refused\n  before anything is written (PR #2010 by vicmcorrea); a hyphenated\n  published file prints valid aliases (PR #1849 by vicmcorrea).\n- **Fixes**:\n  - Checker and verdict: a law names its module's own def when a Base\n    constructor shares the name (#1236, PR #2047 by nicolas-abril); `!=`\n    and `where` mean the `Empty` and `Exists` of the file they are written\n    in (PR #1577 by HamedShams); BendTT labels spell the canonical key\n    injectively (#1131, #1247, PR #1216 by oxura); `--verdict` keeps\n    dependent template argument types and uses checked defs as model\n    fallbacks (PRs #1874, #1901 by sebastian-griego); a term at a type with\n    no finite η-long form goes to the kernel whole (#1164, PR #1896 by\n    nicolas-abril); `Nat` converts to `F32` without narrowing to `U32` (PR\n    #1610 by oxura).\n  - Compiler: a fold reads an argument's liveness by its position (PR #2054\n    by nicolas-abril); a fork's join opens on the fork p","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-28T10:06:57Z","history_start":"2026-09-06"}