Repository navigation
Releases
Bend 2.0.40
- The checker no longer hangs on a proof that a list is its own head <>
tail: conversion gave a share cell the value of an equal one, so a bare
{==}of{Hd(D) <> Tl(D) == D}madeDname itself, and the next
check throughDnever ended, or--verdictoverflowed the stack. Equal
cells now join a class and no value moves: a file that ran past 900 s
checks in 3.3 s. bend --publishsends theREADME.mdbeside the entry, and the hub
shows it (PR #2033).bend-cache(tools/): a proof cache for--check-onlyoutside
bend (PR #2045).- Base:
Array.get_unchecked, an@unsaferead without the wrap mask
(PR #1880 by adeerkhan);U32.popcountandU32.ctz(PR #1905 by
MattCozendey); merge sort starts from sorted pairs (PR #2018 by
toprameen). - IO: positioned byte writes (PR #1887 by vicmcorrea);
File.open(path, "r+")opens an existing file to read and write (PR
#1853 by EpsilonPhoenix); a pointer event is onePressfor a mouse, a
finger or a pen (PR #1867 by MattCozendey); native fullscreen keeps the
logical rendering resolution (PR #1443 by oxura). - Faster checks: let kind checks, quantity comparisons, the scope
search, call arguments, constructor fields,pmap_set, free names,
operators and the verdict's walk each do less work (PRs #1947, #1952 by
raramos9; #1965, #1967 by sebastianbreguel; #1966, #2013, #2048, #2053,
#2060, #2061 by nicolas-abril). - Faster programs: a long loop over
F32is a call on the host too:
nbody 1.19x on SEQ, 1.15x on PAR (#1240, PRs #1814, #1950 by
nicolas-abril); a match arm's node allocation is hoisted (PR #1792 by
viridale); host lanes share large freed blocks (PR #1869 by
sebastian-griego);blk_newfills vectorize (PRs #1928 by raramos9,
#1946 by nicolas-abril); a wide def's boxed record stays boxed until a
use needs it, and an unfold builds its callee's body once (PRs #2036,
#2051 by nicolas-abril); JS channel waits, GPU size checks and
positioned reads cost less (PRs #1859, #1872 by sebastianbreguel; #1993,
#2015, #2016 by toprameen). - Clearer errors (#1632): a call missing arguments, a pair where
Data
is expected, a self-call that does not shrink, a false{==}(its sides
as written), a match missing cases and a def given<...>each say what
is wrong (PRs #1865, #2000, #2002, #2006, #2007, #2008); a do-block bind
or let written without its type gets a note (PR #1807 by HamedShams); a
call to a def written below its caller names the file order (#1782, PR
#1783 by viridale); a stray=after a do block's last statement is
refused (PR #1889); spaced successor patterns and a gluedx+ypoint at
the right spelling (PR #1969); the import path and array depth errors
say what a name anddare (PRs #1963, #1964 by sebastianbreguel). - CLI: a BUILD tag after the version, for forks (PR #1907 by
MattCozendey); a!program built for the CPU because no CUDA toolkit
was found says so (PR #1888); colliding output requests are refused
before anything is written (PR #2010 by vicmcorrea); a hyphenated
published file prints valid aliases (PR #1849 by vicmcorrea). - Fixes:
- Checker and verdict: a law names its module's own def when a Base
constructor shares the name (#1236, PR #2047 by nicolas-abril);!=
andwheremean theEmptyandExistsof the file they are written
in (PR #1577 by HamedShams); BendTT labels spell the canonical key
injectively (#1131, #1247, PR #1216 by oxura);--verdictkeeps
dependent template argument types and uses checked defs as model
fallbacks (PRs #1874, #1901 by sebastian-griego); a term at a type with
no finite η-long form goes to the kernel whole (#1164, PR #1896 by
nicolas-abril);Natconverts toF32without narrowing toU32(PR
#1610 by oxura). - Compiler: a fold reads an argument's liveness by its position (PR #2054
by nicolas-abril); a fork's join opens on the fork path's holds (#1953,
PR #2042); on Metal the shared-node half of a take is a call (PR #1978
by HamedShams); CUDA's dispatch entry check reads the frontier from
device memory (PR #1877 by nuxyel);Window.openwithout
Window.framebuilds natively (PR #1883 by sebastianbreguel); C
comments keep Unicode separators (PR #1972 by toprameen); process
workers run in module mode (PR #1842 by toprameen). - IO: TCP connect, accept, send and receive, UDP send and receive, and
native file opens and writes retry after an interruption instead of
failing (PRs #1909, #1910, #1911, #1912 by sebastianbreguel, #1878 by
EpsilonPhoenix, #1900 by toprameen, #1862, #1898 by sebastian-griego);
File.readfills its buffer (PR #1845 by adeerkhan), itsmaxis a
cap on JS (#1983, PR #1985 by lukaszsamson) and it reads through fs on
Node (PR #1881 by sebastianbreguel); an interruptedFile.read_lineno
longer reads a byte before its buffer (PR #1918 by sebastianbreguel);
Process.runrefuses a file with no#!line on macOS, and answers
ENOENTfor an empty program on JS (PRs #1860, #1875 by
sebastianbreguel);File.write_atrefuses anO_APPENDfd on Bun (PR
#1903 by lee-eojin);Window.openrefuses a bad size or a NUL title on
JS (PR #1884 by sebastianbreguel); macOS window titles decode as UTF-8
(PR #1834 by sebastian-griego); JS channels release timed-out and
abandoned waiters (PRs #1879 by toprameen, #1976 by EpsilonPhoenix),
and their buffer drains from a ring (PR #1851 by Revaycolizer); JS
timer waits work without Bun FFI (PR #1996 by EpsilonPhoenix);
io_waitflushes stdout after JS File and Process effects (PR #1899
by nicolas-abril); UDP send addresses are checked before FFI setup (PR
#1974 by sebastian-griego);TCP.recvpastINT32_MAXcaps the read
on JS as on C (PR #1861 by sebastianbreguel); the wake pipe is set up
before it goes nonblocking (PR #1935 by betterclever). - Tools: the formatter keeps raw apostrophe literals whole (PR #1971 by
toprameen); a bundle encodes quoted HTML filenames (PR #1977 by
EpsilonPhoenix).
- Checker and verdict: a law names its module's own def when a Base
- Docs: the
Textconstructor collision (PR #1933 by oxura); each
lane's clock zero, andFile.read_linewith max 0 (PR #1882 by
sebastianbreguel).
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- b2be003b041eb6cfc65326be18f79eb2e0bae2189be79a18c507e661b4b6900b bend-2.0.40-darwin-arm64.tar.gz
- 9229c8bdd0a93f63fa45cc5af5e9e56389ebb620d655920915daf966c6ca561c bend-2.0.40-darwin-x64.tar.gz
- 2f42a6fa34ecdaa71ae105e5fa734f9a07e129d333e45448ab6d2ff03a837570 bend-2.0.40-linux-arm64.tar.gz
- c9ff8d67bd903fb6ad9a26b43d8a62c01021de82a44d55ce4a3dcd4732113d6b bend-2.0.40-linux-x64.tar.gz
Bend 2.0.39
bend --publishsends only files inside the entry's directory: a
../climb, a symlink out of it or aLICENSEthat links out is refused
before mining, with no hub request (#1836, PR #1838 by oxura).File.open(path, "x")creates a new file and fails withEEXISTif
the path exists, in one step (#1821, PR #1824).- Non-UTF-8 arguments:
IO.args_bytesgives each argument's bytes, and
File.open_bytesopens a path given as bytes (#1798, PR #1799 by
viridale). Process.runruns through one worker on Bun and Node, so it no
longer ends the run on Node, and a child that leaves stdin unread no
longer hangs it (#1468, PR #1831 by oxura).- Metal: the lane spill of 2.0.38 is gone (PR #1809): it made
bend -oof a!program build 17% slower. A full lane fails with
ERR_DEEPagain, as in 2.0.37. - Fixes:
- The GPU build sees a closure in a later instance of the same datatype
(#1513, PR #1542). - C: a read-only walk borrows its list when a sum type puts a word where
another constructor has a box (#1805, PR #1806 by viridale); a memory
fault ends the program by its signal (SIGSEGV, SIGBUS), not exit 1,
after flushing output (PR #1828 by oxura). IO.get_envrefuses a name with a=, which read part of another
variable on C and Node (#1794, PR #1795 by orezraey).
- The GPU build sees a closure in a later instance of the same datatype
- CLI:
bend -onever overwrites an input through a hard link or with
the GPU archive<out>.gpu(PRs #1797 by sebastian-griego and #1826 by
toprameen); a$CCthat is not a usable clang 14+ ends the build with
its reason, instead of a silent plain-clang build (#1802, PR #1804 by
Yi-111-a). - Tools: the formatter keeps body columns after
(,;, tuple commas
and in nested lambdas, and keeps a generic's>apart from a following
=(PRs #1803 by toprameen, #1811, #1816, #1833, #1839 by vicmcorrea). - Docs: BendTT proves adequacy, a checked law holds at each closed
instance (PR #1627 by ScottMoore0); the guide and BendRT say a hot type
counts the fields of every node, shared or not (#1559, PRs #1812 by
vicmcorrea and #1813), and BendRT matches the runtime on the corpus, JS
requests and the CUDA cube (#1822, PR #1823).
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- d4aaef68de545727429ce83b9e88ff3273bf068df599e3542e446755b5f3d83a bend-2.0.39-darwin-arm64.tar.gz
- a512cfd1d29ec24c640126a6a640e597b4ea1abe0aefbda7cc57efd85ab56e22 bend-2.0.39-darwin-x64.tar.gz
- 71b43e1bb9313dd14ac2b0553b854e41c39d65ecaa47040796ebff4a46f54a97 bend-2.0.39-linux-arm64.tar.gz
- 6cf462fd8f70b094a4950ebb709a9c4ffd8f1d1189d9cedf1fd63cd5d041c7ab bend-2.0.39-linux-x64.tar.gz
Bend 2.0.38
- A compiled program's runtime options go between
+RTSand-RTS
(#1466, PR #1530 by viridale). Breaking:./main --threads 4now
passes--threads 4to the program (IO.args); write./main +RTS --threads 4 -RTS. A trailing-RTSmay be left off,BENDRTSholds
options too (the command line wins),--stops option reading and
reaches the program, and an unknown option inside the bracket is an
error.--threadstakes digits,--gputakeson,offor a size in
GBorMB. - JS modules keep their names apart. Breaking for JS hosts: a
constructor's JS tag is its name in the file that declares it, so a
value crosses modules and matches the right arm (#1105, PR #1488 by
oxura); imported export keys and foreign JS def ids keep their:
(#1758, #1759, #1766, PR #1760 by oxura). TCP.sendandTCP.try_sendhand back unsent bytes, a
List<&2, U32>to resume withTCP.send_bytes, so a write cut inside a
UTF-8 character loses nothing (#1764, PR #1765 by oxura). Breaking
for code that read the residue as a String.- Native windows emit
Textevents with the typed characters on
Linux and macOS (#1019, PR #1441 by oxura). - A
Charholds any u32 on every lane; a non-scalar becomes U+FFFD
only where text leaves Bend (#1080, PR #1411 by oxura). --verdict:- The verdict says why each def it lists relies on unsafe or foreign
code (PR #1531 by MattCozendey), and hints when those defs come only
through unused imports (#1463, PR #1558). - A def specialized at a finite
~parameter is checked by the kernel
over each value, so an empty type no longer passes unchecked (#1186,
PR #1225 by nicolas-abril); a~constant takes its model from the
template's instances (PR #1580 by nicolas-abril). - The kernel accepts a self-call on a constructor rebuilt around a
smaller part of its input, as the checker does (#1167, PR #1200 by
nicolas-abril). - Fixes: annotations under η and let inlining (#1665, #1669, PR #1666 by
aaaxn); a bare constructor in a type (#1619, PR #1620 by ScottMoore0);
shared group prefixes (PR #1704 by sebastian-griego); kernel failures
show their details (#1535, PR #1536 by viridale).
- The verdict says why each def it lists relies on unsafe or foreign
- Faster:
- A GPU bang chains its rounds on the device, three command buffers in
flight, with no host round trip per stage (PR #1447 by nicolas-abril). - A flat generic def's spin takes words at its instance's layouts
(#1195, PR #1588). String.orderwalks both strings once: 8x on C, andString.eqof
long strings no longer overflows the JS lane (PR #1459 by aldeni);
String.containsis linear on JS (PR #1628 by sebastian-griego).- Emission allocates 40% less on large files (PR #1617 by
nicolas-abril); word matches with many literals compile faster (PR
#1387 by Iann29). U32.powby squaring andF32.showwithout a second conversion on C
(PRs #1567 and #1591 by sebastian-griego);F32.readrejects bad input
in linear time (PR #1625 by toprameen); expired channel waiters leave
in constant time (PR #1671 by sebastian-griego).- CUDA keeps its L1 cache in
bend_dev(PR #1602 by wakamex).
- A GPU bang chains its rounds on the device, three command buffers in
- Fixes:
- Metal: a full lane stack spills to the heap, so non-tail recursion
under!no longer faults at 1023 frames (#1393, #1394, PR #1439 by
totaland). - C: a shared word is written back to its fork frame slot (PR #1615 by
viridale); a recursive spine is freed cell by cell (#1307, PR #1438 by
oxura); native channels free their rows and unread values (#1268, PR
#1532 by oxura); Nat powers and bit widths take checked paths (#1709,
#1710, PR #1713 by oxura); functions only an effect calls stay
reachable (#1711, #1712, PR #1714 by oxura); the crash trap is
async-signal-safe (PR #1655 by adeerkhan). - IO: ready effects yield to other computations every 64 (#1719, PR
#1723 by oxura);IO.exitflushes buffered output (PR #1519 by
vicmcorrea); file and JS stream writes fail on zero progress (#1445,
PRs #1446 by oxura and #1747 by vicmcorrea); nested JS IO schedulers
are isolated and resume their own channel waiters (#1524, #1761,
#1770, PRs #1525 and #1762 by oxura); UDP receive buffers are bounded
(#1695, PR #1698 by oxura);TCP.connectchecks its arguments on JS
(PR #1618 by vicmcorrea); JSAudio.writecounts whole frames and
paces on monotonic time (PRs #1683 by toprameen and #1597 by
vicmcorrea). - Base:
List.any,all,containsandfindstop once the answer is
known (#1726-#1729, PR #1730 by oxura); prefix checks stop at the
prefix (#1640, PR #1645 by EpsilonPhoenix);F32.roundkeeps negative
zero and rounds once (#1611, PRs #1613 by oxura and #1547 by
vicmcorrea);F32.lerpstays finite and keeps its endpoints (#1607,
#1749, PRs #1608 and #1754 by oxura);F32.to_natkeeps wide values
(#1636, PR #1642 by oxura); JSU32.to_f32keeps zero positive and
scalar F32 host inputs are rounded (#1692, #1568, PRs #1693 and #1569
by oxura). - Effects:
CID/FIDare scanned with the source's own comment rules
(#1604, PR #1653 by adeerkhan); a bad Nat from a JS host says its range
(#1634, PR #1656 by oxura).
- Metal: a full lane stack spills to the heap, so non-tail recursion
- CLI:
bend page.html -o <dir>never overwrites its own page (PR #1690 by
toprameen); inline HTML modules stay apart from real assets and from
each other (#1752, #1753, #1767, PRs #1756 and #1768 by oxura); decoded
module paths are classified right (#1570, PR #1571 by oxura).- Output finishes after short writes to a pipe (PR #1691 by toprameen);
a failed update check keeps the command's status (PR #1603 by
vicmcorrea); filtered Base output keeps@unsafe(PR #1538 by
toprameen).
- Tools: the formatter keeps column-pinned blocks, nested match arms,
inline bodies and mixed line endings (PRs #1302 by dearlordylord, #1755,
#1672 by oxura, #1583, #1584, #1590, #1757 by vicmcorrea and
sebastian-griego); the LSP keeps match scopes across forall bodies (PR
#1791 by vicmcorrea). Breaking for bend-lint rule authors: option
constructors areOptionNum,OptionFlagandOptionText(PR #1565
by vicmcorrea); bend-lint also fixes new buffers, cancelled runs and
downloaded checkouts (PRs #1745, #1746 by oxura, #1587, #1605 by
vicmcorrea).
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- 9d5331d01e82dac40dd012953e78221f533f7df7ad7e16b07f1f7bd0dcd088dd bend-2.0.38-darwin-arm64.tar.gz
- 870be3b91290e14259dba432788c71d7190d8984f8606255e5333c3a03896d5a bend-2.0.38-darwin-x64.tar.gz
- 1f7c6e74a6ef7412cf08eee0e4d45fe5960f89d66fdaca2466f6a4856f0d400a bend-2.0.38-linux-arm64.tar.gz
- f19d088b079c9e1a8834ecd153b7d58c11a5f8f9ab1bdb78dbc96a6bf49aaa81 bend-2.0.38-linux-x64.tar.gz
Bend 2.0.37
- A Nat crosses to a JS host as a plain number (PR #1506 by
nicolas-abril). Breaking for JS callers: an effect's.jsand a
caller of an exported def pass and get5, not5n. ANatanswer or
argument that isn't a whole number from 0 to 2^53 stops the run with the
Nat error, as in C. Calls into exported defs are about 3.5x faster. IO.exit(code)ends a program quietly with a status from 0 to 255
(#1465, PR #1492 by oxura). A code above 255, inIO.exitorIO.die,
exits 1 instead of wrapping.F32.showtakes a plain parameter, so~F32.showfitsList.show
andMaybe.show(#1511, PR #1518 by vicmcorrea). A caller passing it as
+now wraps it:(x => F32.show(x)).- bend-lint, a standalone linter with rules written in TS or Bend, in
tools/bend-lint(PR #1389 by MattCozendey). - Faster:
- The CPU hands a slow grow's forks to idle threads, so a wide late fork
runs 2.6x faster at 14 threads (#1475, PR #1479 by viridale). - BendTT's parser reads the text's bytes, so
--verdictparses twice as
fast in a quarter of the memory (PR #1380 by nicolas-abril); safe.ts
walks each term once (PR #1384 by nicolas-abril). - A bang over a pair no longer sends every closure to the device (PR
#1336 by chaserelock); a spin is a device call by its C's length in
characters, and always inline on the host (PR #1413 by nicolas-abril). - A native build frees the compiler's memory before clang runs (PR #1385
by Iann29). - On Linux a window paces at the display's refresh rate, not 60 Hz (PR
#1379 by igorhasse).
- The CPU hands a slow grow's forks to idle threads, so a wide late fork
- CLI:
bend updatefails when the installer download fails (#1481, PR #1485
by vicmcorrea).--checkupreads only the import header, and imports with a trailing
# comment(#1501, #1497, PRs #1502 by oxura and #1517).bend a.bend --verdict b.bendis refused: extra arguments go only to a
plain run (#1503, PR #1516).- Inline HTML module scripts are bundled (#1400, PR #1412 by oxura), keep
their diagnostic positions (PR #1454 by Osraka), and a bundler failure
is a formatted error (#1399, PR #1406 by oxura). - An unreachable hub is a formatted error, not a TypeError (PR #1428 by
HamedShams); a native build that fails before clang removes its
/tmp/bend-*dir (#1402, PR #1405 by Yi-111-a). - A
!build finds CUDA at$CUDA_PATHand/opt/cuda(PR #1373 by
igorhasse).
- Fixes:
- Linux audio keeps a partially written chunk until ALSA takes it, and
stops on a dead device instead of spinning (PR #1508 by
sebastian-griego). F32.hypotkeeps lengths past 1.8e19 and below 1e-19 (PR #1515 by
sebastian-griego).- A closed stdout or stderr reader ends a program by SIGPIPE (#1467, PR
#1470 by viridale);Process.runreads until stdout and stderr close
(#1343, PR #1392 by nicolas-abril);get_envrejects a name with a NUL
(#1449, PR #1450 by Yi-111-a). - An erased last argument no longer cuts its call (#1374, PR #1377 by
nuxyel); the effect table is sized to the program's constructor ids
(#1163, PR #1378 by vicmcorrea); arrays of concrete functions compile
(#1404, PR #1410 by oxura);lay_eltakes only datatypes and type
formers (PR #1426 by nicolas-abril); a__proto__export survives in
JS (PR #1458 by vicmcorrea). - Match-refined Data views stay in copyable lets (#1349, PR #1369 by
oxura); Array-wrapped JS marshalling is stack-safe (#1346, PR #1370 by
oxura). --verdictbuilds inlined recursive let arguments at each use (#1326,
PR #1368 by oxura), keeps Base-free large Nat literals (#1330, PR #1337
by oxura), and parses both rewrite motive binders in its diagnostics
(#1315, PR #1407 by oxura).- The formatter keeps module import paths (PR #1325) and separated brace
arguments (PR #1505), by vicmcorrea; the linter keeps quoted foreign
import paths (PR #1422) and module headers (PR #1460), by vicmcorrea.
- Linux audio keeps a partially written chunk until ALSA takes it, and
- Docs: README Limitations names backend divergence and the unproven
translation (#1423, PR #1424); the formatter README installs
bend2-fmt-lspon PATH (PR #1486 by Osraka); IO forks vs CPU parallel
calls (#1375, PR #1415 by oxura); BendRT's opening program checks again
(#1308, PR #1382 by oxura).
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- 846d25ccf0c12d5d1e5e648c0b3ba4c8397fdb852812ac00ef8135998f8e194b bend-2.0.37-darwin-arm64.tar.gz
- 93eea3f54b7b91f28ea15a1b9f2d825afa58c1fcd417c11024a62f8c3506b813 bend-2.0.37-darwin-x64.tar.gz
- b65d452e5c68a4c486e353220d4298ba5d76f535db47109a7d76ffdf72efafb1 bend-2.0.37-linux-arm64.tar.gz
- 84c32465a39bc9ac315eade23f470cb8db03153dc860f89564fcfec153c3e445 bend-2.0.37-linux-x64.tar.gz
Bend 2.0.36
- HOC's proving agent is now named BendAI:
bend loginlogs in to
BendAI at bend-lang.com/bendai and writes its key to
~/.bend/bendai.json; a key an older bend wrote moves there at the next
--publish <name>@…, so it keeps working. The publish notice links
https://bend-lang.com/bendai/terms#s18, and the installer's card ends
"You're now a Bend developer." The old addresses redirect. - Every channel and socket wait has a
try_twin with a limit in ms
that answersPoll(PR #1259 by nicolas-abril), and UDP gets the byte
twins TCP and File already have:send_bytes_to,recv_bytes_fromand
theirtry_twins (PR #1359 by kbrianps). - BendTT's kinds are quantity terms, with meets, Σ at any kind and
subsumption under ∀, and--verdictemits a generic def once (PR #1203
by nicolas-abril); a λ+ converts as a λ (#1189, PR #1224 by
nicolas-abril). - Faster checks: a name lookup is one map read, not a scan of the book
(PR #1372); types never read, or already reduced, are not reduced again
(PR #1362); roots share their~constants, so a template goes to the
kernel once (PR #1358 by chelokot); n instances of a def take O(n log n)
characters of names, not O(n²) (PR #1350 by chelokot); a graph closure
is linear in the graph (PR #1298 by moorbrook). - Fixes:
- A value past 2^24-1 live copies fail-stops with its own message, and
WONTFIX names the cap (PR #1366 by nicolas-abril). - A type under a rewrite stuck on an open proof is read as its body, and
a type the C facts can't read is a compile error (#1273, PR #1276 by
nicolas-abril). - A constructor's fields compile with their declared types, so a Word
folded out of a U32 literal emits (#1100, PR #1361 by nicolas-abril);
datatypes of boxed constructors are registered (PR #1351 by
vicmcorrea); spare nodes stay apart across sum arms (PR #1279 by
jasisz); C emits right when a native effect calls back into Bend (PR
#1286 by mizchi). - The work pass after a grow runs each lane's own ring (#925, PR #1132),
and on MSL 3.2+heap_freereads the error flag with a coherent
volatile load (#1143, PR #1299 by nicolas-abril). --verdictchecks what bend checks for a match carrying a later
variable (#1292, PR #1293 by aaaxn), respects Unit provenance and word
constructor families (PR #1338 by oxura), verifies the Lean version and
drops unversioned kernel caches (PR #1339 by oxura), and cleans up its
temporary input when the kernel build fails (PR #1327 by Osraka).- Unsafe dependencies are tracked in datatype kinds (#1205, PR #1220 by
oxura). - A nested match on a split value is refused with its name and where to
match it (#1125, PR #1290 by nicolas-abril); only a statement
a[i] <- vis the write let, soArray.set(..);in an inline match
keeps the next row (#1126, PR #1289 by nicolas-abril). F32.readskips leading whitespace (PR #1335 by vicmcorrea); the
formatter keeps unsafe declaration suffixes (PR #1296 by vicmcorrea).- A CUDA probe failure names its stage and the Driver API error (PR
#1341 by oxura).
- A value past 2^24-1 live copies fail-stops with its own message, and
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- 2876687ceb0aba836abc98b3f62c8fc9fb612d124ae2af6814d5ec937760878d bend-2.0.36-darwin-arm64.tar.gz
- 925bb306c60260e1cdde56c2b8e4ba0e1eb4cbc88a76372cc0bb389a172dccdf bend-2.0.36-darwin-x64.tar.gz
- a14a311e39bad45f9669d4eab39d156b578c945f13a2b7bae20d9c23567a4664 bend-2.0.36-linux-arm64.tar.gz
- 02089dc0eed0fd5fd6d73c74cc9cffcb2c6638dd3b02ae83f7b8cc57fbe381ba bend-2.0.36-linux-x64.tar.gz
Bend 2.0.35
- M1 and M2 run the GPU again (#1154, PR #1274 by nicolas-abril): since
2.0.29 Apple's compiler died building the GPU program of any program with
a!on M1 and M2 chips; M3 and M4 were never affected. - A library's names stay its own (#1045, #1124, #1184, PR #1156 by
nicolas-abril): a name the entry file declares aslib.Noneno longer
takes the key oflib.bend's ownNone, so its foreignCID(None)
means the constructor its Bend code means, and C no longer takes the
wrong arm or frees into the wrong size class. - Less memory on the CPU (PRs #1171, #1269 by nicolas-abril): the host
grows fewer tasks up front and splits a drain into finer units, so
parallel tree-matmul peaks at 14.5 MB instead of 68.5 MB and kmeans at
10.8 MB instead of 22.9 MB, with every bench as fast or faster. A spin
called in a jump's argument frees the variable it was lent, so a loop
over a list no longer keeps the old list's cells (81.6 MB to 1.6 MB, PR
#1243 by mizchi). U32/and%divide directly on the host and CUDA;
only Metal keeps its workaround (PR #1277 by nicolas-abril). - Arrays of equality proofs build in JS and C (#1130, PR #1219 by oxura).
- A deadline or a timer fires while computations keep the loop busy
(#1122, PR #1245 by nicolas-abril):IO.withinandIO.sleepno longer
wait for a channel pipeline to end. - Fixes:
- A chain of more than about 86 U32 or 130 F32 operators builds in C
(#1123, PR #1239 by nicolas-abril). bend f.bend -o f.cbuilds at-O0with clang 19 and later, for a
debug build (PR #1074 by aldeni).- A type with deeply nested sums compiles without hundreds of MB (#1270,
PRs #1196 and #1244 by vicmcorrea). - A template with many instances names them in linear time, not
quadratic (#1271, PR #1275 by nicolas-abril). IO.random_u32answersFailon the JS lane, as on C, instead of
ending the run (#1146, PR #1198 by Yi-111-a).- A match on a binder a constructor column closed says so and lists the
causes (#1134, PR #1226 by nicolas-abril). bend ... | headkeeps the command's exit status when the reader
closes early (#1211, PR #1214 by oxura).--verdict --publishis refused instead of publishing unchecked
(#1191, PR #1199 by vicmcorrea).--publishdrops a leading byte order mark, so a package whose LICENSE
was saved with one imports (PR #1188).--verdict: model search is bounded (#1181, PR #1218 by oxura);
recursive groups follow live references only (#1212, PR #1215 by
oxura); a dead fallback past the last constructor checks (#1204); an
empty datatype goes out withD.efq : D -> <>(#1183); a specialized
argument is elaborated at each use (#1168, #1178); a match inside a type
goes at the goals bend2 checked it at (#1157).
- A chain of more than about 86 U32 or 130 F32 operators builds in C
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- 2582f25057a519c330e6875798b784b727d4201f1c1f6944a105348f0eb8972e bend-2.0.35-darwin-arm64.tar.gz
- 7e59da4513e32ea7526464b342344a992a56372cdf62e0c55a30e9ce26baaeef bend-2.0.35-darwin-x64.tar.gz
- 09b813073241628f590f2c2fe420299ec25e4dddd6cf3fdc49c9486339989564 bend-2.0.35-linux-arm64.tar.gz
- 63039d1a119f716767ac5a7d8fe0717cfacf219c6c253c35192148e0dade722f bend-2.0.35-linux-x64.tar.gz
Bend 2.0.34
- A shared graph is compared once (#1071, PR #1151 by Giulio2002):
when conversion proves two share cells equal, the second points at the
first, so a value used twice on each side is compared once, not walked
as a tree. Two Merkle roots of depth 32 over a symbolic leaf, proven
equal by{==}, check in 0.07 s (they took 2^32 steps).--verdict's
kernel does not share yet and runs out of fuel on such a proof.
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- a60c820c0ced758d8ace839507ff6c508a204ce4ef0f45e1089ed7bc73e8c267 bend-2.0.34-darwin-arm64.tar.gz
- 066d4a07a1871a2946be8f42f926582bfda5f13ff728c234ffe79635bd240650 bend-2.0.34-darwin-x64.tar.gz
- 416a17d282a9fd05ab9637a238b51d5ca508114d9773c37d1c11cad595440ed1 bend-2.0.34-linux-arm64.tar.gz
- 78106a97af242429dcc057258eb8d10f69cddebcd5e263022185a52d003e09bf bend-2.0.34-linux-x64.tar.gz
Bend 2.0.33
- Two copies of one term are equal before either unfolds (#1071, PR
#1151 by Giulio2002): a conversion first compares both sides with no def
unfolded, then as before. A law proven by induction and used at a fixed
size, likeagree(32n, x)against its written type, checks at once
instead of walking a shared chain as a tree of 2^32 steps. - Base opens a value before it copies it:
U32.min/max, theF32
helpers,Char.to_upper/to_lower,U32.div/modandList.sortmatch
their argument first, so a stuck argument stays one call (#1075). - Base is smaller (PR #1153 by nicolas-abril, from #1059 by
jnadeau207-collab), andU32.log2takes five native shifts instead of
thirty-two. - Fixes:
U32.to_natwidens to u64 in C, so Nat arithmetic on a u32 local no
longer wraps at 2^32 (PR #1142 by Giulio2002).- A shared Array's redirect is read without a race and without a device
atomic (PR #1155 by nicolas-abril). TCP.recv,TCP.recv_bytesandTCP.pollwith a max of 0 fail with
EINVAL, not a closed peer's""(#1121, by aldeni).- Emission does less work per word type and nullary constructor (#1056,
by jnadeau207-collab). --verdict: the kernel puts a λ argument into a type annotated with
its domain, so a+let ofEqual.congover a function checks (#1158).- A pure main shows an Array element and a flat value of one type each
by its own layout (#1166). - A
CID(k)in an effect source's comment or string is left alone
(#1161, by aldeni).
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- 0fa9db4c1fecba936ad0a94a27f686ad14a351798265593c39d76d3e8dbb0024 bend-2.0.33-darwin-arm64.tar.gz
- 7e84d5de7d5cc719ae53db94d1c9fbf23d69c5197e8bc248407d704eb1b29313 bend-2.0.33-darwin-x64.tar.gz
- 962d0c365fad5e2c6546bdbb2ebcf9c09f64e34b3bb3c5926f91a03c14dc3c2f bend-2.0.33-linux-arm64.tar.gz
- a6c13c421543701a7f33e594a9c077c74361cdabd87c0052fc487a0deab8bc30 bend-2.0.33-linux-x64.tar.gz
Bend 2.0.32
- One verdict:
ALL PROOFS CHECKorSOME PROOFS FAIL:bend f.bend
on a file with no main (or--check-only) prints one of the two. A proof
holds when bend checks it and it uses no@unsafedef and no user foreign
code, imports included.--verdict(was--safe) also rechecks every
def with the proven BendTT kernel; it no longer writesf.bendtt, and
-o f.bendttdoes. Function-typed terms go to the kernel η-long. - Breaking:
TCP.listenandUDP.bindtake the address to bind (#1088,
PR #1098 by oxura): a server no longer listens on every interface. - Breaking:
IO.args()starts with the program as invoked (#935), as C's
argv does; the arguments start at index 1. IO.withinraces an action against a deadline (#1034).TCP.send_bytesandTCP.recv_bytescarry bytes as they are (#846).-o f.mjswrites an ES module of a Bend file (#1029).- Windows:
Window.grabholds the cursor for a first-person camera, and
the mouse's motion comes asLook{dx, dy}(#921, PR #1073 by
nicolas-abril);Scroll{x, y, dx, dy}events come from the wheel and the
trackpad (#1020, PR #1114 by oxura); macOS input no longer lags (#842);
Shift+Tab on X11 gives the Mac's back tab; the Linux window fills a frame
by squares, about 6x faster (PR #1115 by costamatheus97). - Fixes:
- A native intrinsic on a nullary def keeps its result layout (#1093,
PR #1094 by chiliec). - One file is one module however an import spells its path (#1087,
PR #1103 by MattCozendey), and an alias that matches the file name
works (#1082). - F32 text rounds once to the nearest f32 on every lane and in literals
(#1055);F32.pow(±1, y)is 1 on JS as on C (#1060). - A pure main that prints a datatype through a family field builds (#1067).
- Two defs with the same body are equal (#1028).
- A fallback arm past a datatype's last constructor is dead code (#1091).
- An error names a hub def the way you write it (#965), and a
+binder's
error names the right binder (#980). - A compound type argument without parens is a clean parse error (#1110).
- A shared Array's redirect reads cannot race its count (#975).
- Timers wake in deadline order; clang's version probe no longer fails
under load. --gpu onnames the reason a CUDA GPU is unusable (#1064).- A JS host tag the type lacks is a clean error (#1105).
- A native intrinsic on a nullary def keeps its result layout (#1093,
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- d7debc002f59264f648dc94e45c2a9fab23e4b1ee0a390bf2acd8b1673e0cf55 bend-2.0.32-darwin-arm64.tar.gz
- 6c3fea18ade9912e3015472fe76a2b1372acbf72b82404b3dea1a1243c5ed09e bend-2.0.32-darwin-x64.tar.gz
- f57776d20c0b6aabf47bc9d4523522c10ecd2acde98a2615049b094bb9241523 bend-2.0.32-linux-arm64.tar.gz
- 5c365ddb12954d0933cef751802e0f7d9875f842edcb80f9661f89cd1a9ff7b6 bend-2.0.32-linux-x64.tar.gz
Bend 2.0.31
bendhelp: one aligned line per command: a table builds the list,
so every description starts in one column;--publish [<name>@<version>]
is one line, andbend guideis the last command.
Install: curl -fsSL https://bend-lang.com/install.sh | sh (or Homebrew: brew install bendlang/bend/bend, or Nix: nix profile install github:bendlang/bend).
sha256:
- f7334bc36cba76a9d3484b092cf2f3d2ffc36f83cb939f2b142411a3a19e1bc4 bend-2.0.31-darwin-arm64.tar.gz
- ee2d6aca00ea4cca79213fdf653039b9a86262232586217432aa8c5ac71a869b bend-2.0.31-darwin-x64.tar.gz
- c20ffee201e94b0a6ee6d52008e69379286cf546089b38d5bac09189f2667ed1 bend-2.0.31-linux-arm64.tar.gz
- f7dbecc8ef5991fe15d9953b8b33911bc62a120c735e2e5902aa031e22055bad bend-2.0.31-linux-x64.tar.gz