Bend 2.0.26
- A package has a name on the hub (#996):
import <name>@<version>/file.bend as Pasks hub.bend-lang.com once what the name and version name, keeps the
answer under~/.bend/lib/names, and loads the package by that hash as
before, so a version never moves and a cached name works offline.bend <file> --publish <name>@<version>publishes and names in one run, after
the hub confirms the name is yours or free and the version goes up;bend link <name>@<version> 0x<hash>names a package already published;bend loginlogs in to Bender for both. A name is a-z, 0-9 and -, 12 to 64
characters; a version is four numbers like 1.0.0.0. The first:
import bend-tensors@0.0.0.1/bend_tensors.bend as T. - The effects guide calls
io_nodeandio_wait_onas the runtime
declares them (#947):io_nodetakes four arguments andio_wait_on
five, the fourth an absoluteio_tick()deadline, 0 for none, so an
effect written from the guide compiles. - A second book compiled in one process starts from a fresh probe list
(#976): the bun loader andio_runno longer retain the binder variables
of every previous compilation. - Simpler compiler, same output: the channel runtime lives in
effs/chan.candeffs/chan.jsbesideChan.new,send,recvand
close, so a program carries it only when it uses a channel, and both
match emitters share their table and arms; emitted C and JS are
byte-identical except the channel programs' requests. - The README links the standalone
bend2-lsp(#953, by don2e4).
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:
- a340f4f004860921fb9697e185a05bb1cd4398c74c6192d0b43fc91a36f329ab bend-2.0.26-darwin-arm64.tar.gz
- d904aafdb9999a2c57dd4328d4f86b56b7ba368c302151dab946f7d095f7e3ca bend-2.0.26-darwin-x64.tar.gz
- 0818627723b4ebde029be7aadb5a66ebb842917aa9b058301bb574b67642d373 bend-2.0.26-linux-arm64.tar.gz
- 5edcc8e5c12d525655431ab02659ddf88e362aafbe7c7bb7f783a1ffaeb6165c bend-2.0.26-linux-x64.tar.gz