Skip to content

v0.0.6

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 21:19
· 80 commits to main since this release
afb0f45

Vx 0.0.6 gives a program its rights through main. A program that writes fn main(root : Root, args : Vec<String>) gets the right to open files, use the network, read environment variables, start other programs and use standard input and output. Safe code can use a right only when it has a value of that right, and only std can make one. A function with no pub is now private to its file, and pkg makes it visible to its package. vxc --audit lists each piece of trusted code, and --no-trusted-code NAME refuses all trusted code in a package. The release also adds select over channels, sockets and timers, and more kernels for Intel and NVIDIA GPUs.

Highlights

Rights from main

A program gets its rights from main:

import std::fs;
import std::root;

fn main(root : Root, args : Vec<String>) -> i32 {
  let file = File::open(&root.files, args.get_ref(1), OpenMode::Read()).expect("cannot open the file");
  let map = file.map().expect("cannot map the file");
  println_s!(root.stdout, "{} bytes", map.len());
  return 0;
}
  • Root holds one value for each right: files, network, env, processes, stdin, stdout and stderr. Only std can make a value of these types. So a library has only the rights that its caller passes (#3838, #3845, #4102, #4111, #4130, #4099).
  • main can take the words of the command line as a Vec<String>, with no unsafe (#3975). A main with no parameters works as before.
  • Files. File::open(&Files, &String, OpenMode) is safe and gives a Result<File, FileError>. read and write take a Vec<u8> (#3845). File::map gives the whole file in memory, read-only (#4007). remove_file and file_kind take a &Files too (#4156).
  • Narrower rights. A Folder is the right to read the files of one folder. A name that leads out of the folder gives FileError::NotInFolder (#3873). A PendingFile is the right to open one path in one mode, later (#4156).
  • Network. TcpStream::connect, TcpListener::bind and UdpSocket::bind take a &Network (#3838). Reads and writes take a Vec<u8> and need no unsafe (#3430). lookup(&Network, &String) gives the IP addresses of a host name (#4154). UnixStream and UnixListener are Unix-domain stream sockets that take the network right too (#4155). TcpStream::fd() and UnixStream::fd() give the file descriptor of the socket (#4183).
  • Environment variables. root.env.var(&name) gives the value of a variable (#4102).
  • Other programs. root.processes.run(&program, &args) starts a program and waits for its exit code (#4111). The compiler does not check the program that run starts. So in practice, Processes gives every other right.
  • Standard input and output. Stdin::read, Stdin::read_exact, Stdout::write_all and Stderr::write_all are safe (#4130). print_s! and println_s! print with a Stdout or a Stderr (#4160). print! and println! still need no right, so no program changes.
  • join_job takes a &Files and a &Network (#3881). The llama loaders of std take a &Files and are unsafe fn (#3878).
  • The design is in docs/discussions/capability_types.md (#3752). It also says how to lend a right for one request, and what trusted code can do (#3971).

Private functions and pkg

  • A function, an associated function or a method with no pub is private to its file, as in Rust. A call from another file is error E5005 (#3901).
  • A pkg fn is visible to each file of its package, as pub(crate) is in Rust (#3954). The spec is docs/lang/visibility.md (#3934). The raw pointer helpers of std::sync and std::vec are now private or pkg (#3962).
  • A program that links a library through a .vxlib can call only the pub functions of the library (#4163). vx-api diff counts only pub functions.
  • extern fn exports a function to C with its own name. A pub fn is no longer exported (#3895, #3896).

Trusted code

Code with no unsafe, no mlir!, no extern and no extern impl cannot make a right. These changes let a review find all the other code:

  • vxc --audit lists each unsafe block, unsafe fn, mlir! block, extern function, extern impl and unsafe impl of the program and its packages (#3794, #4028, #4094). --audit-library lists the ones of core and std too.
  • vxc --package NAME=DIR --no-trusted-code NAME makes each use of trusted code in the package NAME an error, E5003 (#3796, #4151).
  • Only the file that declares a type writes a plain impl of it. Another file writes extern impl, so that a review finds it (#3774).
  • A file can call only its own macros and the macros of the files that it imports (#3768).
  • An mlir! block outside unsafe must be a block that the compiler can check as safe (#3803, #3880).
  • A safe extern function or an mlir! block cannot make or change a value of a type with an invariant from another file (#3778, #3804). Only its own file can build a std type that holds a raw pointer (#3862).
  • A method call through a raw pointer needs an unsafe block (#3808).

Less unsafe in std

  • String::from_utf8, String::from_bytes, s.to_bytes(), s.byte(i) and s.push_str(&t) need no unsafe (#4103, #4122, #4137, #4141).
  • std::unicode decodes UTF-8 and tells letters, numbers and white space apart (#4135). std parses i64, u64, f64 and f32 from bytes, and floats have to_string (#4134).
  • Safe code cannot free a block twice or fill past a buffer through std (#3894). core::fmt::write_buffer replaces Write::write_c_str, which could read past a Vec (#4148).
  • core::ptr::NonNull<T> is a raw pointer that is never null (#4068).
  • Hash for String, and Hash, PartialEq and Eq for Vec<T> (#4139). The integer types have to_be, to_le, from_be and from_le (#4077).
  • v[i].n = x writes a field of a Vec element in place, through IndexMut (#4170).

Tasks, channels and sockets

  • std::sync::select waits on sources of different types: select2 to select6, and select_list for a Vec of one type (#3807).
  • A select can wait on every channel kind of std::sync, a Semaphore, an Interval, a Deadline, a socket and Stdin (#3814, #3815, #4130). A select waits for the end of the copy of a transfer_async (#3828).
  • The deadlock report names the channels and semaphores of a select (#3816).
  • run_jobs and try_run_jobs take a closure (#3854).

GPUs

  • Intel. Block and lane loops, subgroups, lane routines, atomics and shared tiles run on an Intel GPU. A kernel can call a function that takes a tensor (#3738, #3773, #3763, #3756, #3757). The tests run the SPIR-V images on the CPU with pocl (#3731).
  • NVIDIA. A kernel on sm_90 or later can start while the kernel before it still runs. Set VX_GPU_PDL=1 at compile time and VX_CUDA_PDL=1 at run time (#3675, #3764). lanes::prefetch asks for a part of a tensor to come into the L2 cache (#3692).
  • fp8 and block-scale mma.sync come from LLVM intrinsics, not inline PTX (#3703, #3712). A lane reads 16 bytes of a tile row at once for a tensor-core matmul (#3696). A tile of matmul sums in Memory::REG stays in registers (#3714, #3716).
  • The errors of the CUDA, Metal and Intel GPU runtimes name the Vx function and the line of the kernel (#3783, #3806).
  • vx_peer_buffer_create gives GPU memory that every rank of a job can read and write (#3619).
  • std::nn gives the top k positions of long rows (#3876).

Language

  • Number literals can be hex, binary or octal, and can have _ between digits: 0x2A, 0b1010_1010u8, 1_000_000 (#2823).
  • ?n in the tensor type of a parameter names a run-time extent. The body and the contracts can read n (#3964).
  • The invariants of a struct go inside its braces, after the fields (#3762).
  • A macro_rules body can hold statements (#4113). An expr argument stays one value, as in Rust (#4048).
  • After a variable, < is a comparison, not the start of type arguments. So two(a < b, c > (d)) passes two comparisons (#4203).
  • A call through a reference runs a closure or a function (#3968). An across loop can count over a usize or i64 range (#3967).

Compiler and tools

  • Some Rust forms are not in Vx: use, if let, while let, #[..], impl Trait as a type, Vec::<i32> and a bare Some(..). The error for each one says what to write in Vx (#4058, #4061, #4066, #4069, #4070, #4072).
  • Parse errors print the codes E1001 and E1002 (#4053).
  • A program that vxc runs reads the standard input of vxc (#4037).
  • The name of an instance of a generic function lists its type arguments in the order of the declaration, and it is the same in each run (#4201).
  • A chain of else if compiles in linear time (#4024). vxc registers the MLIR passes once, so that threads cannot corrupt the heap (#3997).

Bugs fixed in safe code

These programs had no unsafe, and read or wrote memory that they did not own:

  • A function that ended with a match with an empty arm returned no value. For a -> &i64 result, that was a null reference. Now it is error E3028 (#4184).
  • A struct field of a closure type had room for 8 bytes, but a closure is 16. A store into the field wrote over the next field (#4196).
  • A value with Drop that held a reference could read the referent after the program freed it (#4018).
  • A let that hid a value with Drop ran that drop on the new value (#4182).

Vx 0.0.5 also never dropped some values. 0.0.6 drops them:

  • a temporary in the last value of a closure or a block (#4191)
  • a value moved into a call, when a ? in a later argument returned (#4193)

Prover

  • A call in a contract reads its own arguments, not the caller's (#3713). Before, the prover could accept a call that breaks a requires.
  • A usize +, - or * that overflows has no value in a contract (#4035).
  • An assignment from a call keeps the ensures bounds of the callee (#4041, #4115).

Changes that can break a program

Most of these are new errors. The error message says what to change.

  • A function with no pub is private to its file. Add pub to each function that another file calls (#3901). A C function in an extern block needs pub too.
  • A pub fn is no longer exported to C. Write extern fn (#3896).
  • An impl of a type outside the file of the type is E3066. Write extern impl (#3774).
  • File::open takes a &Files, a String path and an OpenMode (#3845). TcpStream::connect, TcpListener::bind, UdpSocket::bind and join_job take their rights first (#3838, #3881). Get them from main(root : Root).
  • The reads and writes of std::net take a Vec<u8>, not a raw pointer (#3430).
  • The llama loaders of std are unsafe fn and take a &Files (#3878). alloc::dealloc and alloc::grow are unsafe fn (#3894).
  • core::fmt::Write::write_c_str is gone. Use write_buffer (#4148).
  • The runtime functions vx_env_args_count and vx_env_arg are gone. Read the words from the args parameter of main (#4123).
  • An invariant before the braces of a struct is a parse error. Move it after the last field (#3762).
  • A call of a macro that the file does not declare or import is an error (#3768).
  • An mlir! block outside unsafe that the compiler cannot check is E8015 (#3803).
  • fn main(root : Root) in an imported file is an error. Only a file on the command line can declare it (#3882).
  • These are new errors too:
    • a method call through a raw pointer outside unsafe (#3808)
    • a type with a Drop impl that is Copy (#3889)
    • a call of main, or main used as a value (#3879)
    • an index of a number (#4040)
    • && and || on a value that is not a bool (#4177)
    • an impl for a reference or a raw pointer type (#3777)
    • a call of a generic function that does not meet its requires (#4179)
    • a match whose value the code uses, with an arm that can end with no value, E3028 (#4184)
    • two extern declarations of one C function with different types, E3072 (#4187)
  • The runtime functions that print calls are now vx_print_u64, vx_print_f64 and so on, and println is vx_println. A program can now define its own print_u64. A program that called the old names through extern must use the new names (#4185).
  • The checker reports the type errors of a function that nothing calls, also in a package (#4136).
  • The interface format of a .vxlib moved to v21, and vxc refuses an old .vxlib. Build the library again (#4163).

Known issues

  • A source build of 0.0.6 puts the runtime libraries, such as libvx_mlir_shims.so, in a new target/<profile>/build/vxc-<hash>/out folder, because the hash comes from the version. A target folder from an older build keeps the old folder too. So a script that takes the first libvx_mlir_shims.so that it finds can link a stale library. Use a new target folder, or delete the old build/vxc-* folders. The release toolchains are not affected.
  • On macOS, a crash prints no report, only the signal that ended the program (#3663).
  • With --legacy-codegen, a Vec of a struct that holds a &Tensor frees the tensor twice (#4199).
  • With --legacy-codegen on the Apple GPU, a tensor that gets a new tensor in a loop can be read before its kernel ends (#3661).
  • On a machine with only CUDA 13, the installer installs the build without CUDA. To use the GPU, install the CUDA 12 runtime and cuBLAS 12, for example with the pip packages nvidia-cuda-runtime-cu12 and nvidia-cublas-cu12. Put their lib folders on LD_LIBRARY_PATH, and run the installer again. A CUDA archive that you unpack by hand fails with libcudart.so.12: cannot open shared object file (#4211).

Install

curl -fsSL https://vxlang.org/install.sh | sh

The Linux toolchains include the LLVM they need. On macOS, Vx requires LLVM 22. For
--verify-seams, every platform needs the z3 binary. The installer checks for what
is missing and prints the command to install it. See
the install guide.

Platforms

Platform Artifact
macOS, Apple Silicon vx-<version>-aarch64-apple-darwin.tar.gz
Linux x86_64, glibc 2.35+ vx-<version>-x86_64-unknown-linux-gnu.tar.gz
Linux x86_64 with an NVIDIA GPU, glibc 2.35+ vx-<version>-x86_64-unknown-linux-gnu-cuda.tar.gz

Verify a download against its .sha256 before unpacking.

What's Changed

  • ci: run the tests on pull requests, not again on each push to main by @hiraditya in #3684
  • check: two loops one after the other with the same range count as one loop by @hiraditya in #3683
  • docs: a policy for the speed numbers that Vx publishes by @hiraditya in #3687
  • check: a tile matmul in a kernel puts its product in its target's memory by @hiraditya in #3694
  • gpu: a lane reads 16 bytes of a row of a tile at once for a tensor-core matmul by @hiraditya in #3696
  • check: an across loop may call mul_add, copysign, trunc and fract by @hiraditya in #3695
  • blog: a post on moving glm-vx's hand-written PTX to MLIR ops by @hiraditya in #3700
  • gpu: generate the fp8 and block-scale mma.sync with LLVM intrinsics by @hiraditya in #3703
  • blog: rewrite the post about Distinct by @hiraditya in #3705
  • prover: a for loop knows i < b when its end b is a call by @hiraditya in #3709
  • gpu: convert fp8 to f16 for a lane matmul with an LLVM intrinsic by @hiraditya in #3712
  • docs: measure Vx programs at -O2 in benchmarks by @hiraditya in #3704
  • docs: decide where a tile matmul puts its result by @hiraditya in #3691
  • prover: a call in a contract reads its own arguments, not the caller's by @hiraditya in #3713
  • gpu: a tile of matmul sums in Memory::REG stays in registers by @hiraditya in #3714
  • lowering: a GPU region that ends in a number runs on the GPU by @hiraditya in #3715
  • gpu: warn when the sums of a lane matmul stay in shared memory by @hiraditya in #3716
  • blog: let Vx handle Lean proofs for you by @hiraditya in #3707
  • codegen: a match arm that redefines its payload name gives the new type by @minzyfox in #3681
  • legacy codegen: a return in the last value of a task leaves the task by @hiraditya in #3722
  • benchmarks: keep the sums of the GEMM versions v4 to v8 in registers by @hiraditya in #3723
  • legacy codegen: read a borrowed tensor out of its slot in arithmetic and transfer by @hiraditya in #3724
  • legacy codegen: arithmetic on a tensor and a scalar, on two float types, and on rows in a let by @hiraditya in #3725
  • tests: free a tensor result that nothing takes, on both code generators by @hiraditya in #3726
  • tasks: warn when nothing uses the value of a tasks block that can fail, and drop its error by @hiraditya in #3728
  • gpu: kernels that wait for the kernel before them, so Hopper can start them early by @hiraditya in #3675
  • gpu: lanes::prefetch asks for a part of a tensor to come into the L2 cache by @hiraditya in #3692
  • blog: an if that calls a function keeps the invariant of its loop now by @hiraditya in #3718
  • stdlib: fill, assign, copy and compare of a 2-D tensor work for every float type by @hiraditya in #3720
  • codegen: a let does not keep the type of the local that it hides by @hiraditya in #3733
  • legacy codegen: a transfer of an owned tensor gives a tensor in the new memory by @hiraditya in #3734
  • tests: write temporary files in the target directory, not in /tmp by @hiraditya in #3735
  • tests: run 31 CPU programs on the AST code generator too by @hiraditya in #3736
  • legacy codegen: a return match with no arm for the value returns 0 or stops by @hiraditya in #3740
  • docs: a design for capability types, so that a bug cannot reach the OS by @hiraditya in #3752
  • checker: the sum of two borrowed tensors is a new tensor, not a borrow by @hiraditya in #3753
  • parser: write the invariants of a struct inside its braces, after the fields by @hiraditya in #3762
  • tests: run the SPIR-V images of the Intel GPU tests on the CPU with pocl by @hiraditya in #3731
  • gpu: run block and lane loops on an Intel GPU by @hiraditya in #3738
  • gpu: keep shared tiles in Workgroup storage on an Intel GPU by @hiraditya in #3756
  • gpu: let a kernel for an Intel GPU call a function that takes a tensor by @hiraditya in #3757
  • gpu: run atomics in kernels for an Intel GPU by @hiraditya in #3763
  • gpu: start a kernel normally when the driver refuses an early start, and fail on lost waits by @hiraditya in #3764
  • macros: a file calls only its own macros and the macros of the files it imports by @hiraditya in #3768
  • macros: an error in code that a macro of another file wrote points at the call by @hiraditya in #3771
  • gpu: run subgroups and lane routines on an Intel GPU by @hiraditya in #3773
  • impl: only the defining module can write a plain impl of it, another file writes extern impl by @hiraditya in #3774
  • parser: an impl for a reference or a raw pointer type is an error by @hiraditya in #3777
  • audit: list each use of unsafe, mlir!, extern, extern impl and unsafe impl by @hiraditya in #3794
  • docs: a design for kernels that start early and read some tensors before their wait by @hiraditya in #3690
  • driver: --no-trusted-code NAME refuses trusted code in a package by @hiraditya in #3796
  • check: an mlir! block cannot make a value of a type with an invariant from another file by @hiraditya in #3778
  • cuda: name the Vx function and the line of a kernel in runtime errors by @hiraditya in #3783
  • parser: in if ok {} else { .. }, ok {} is a name and a block by @hiraditya in #3799
  • check: a method that takes self by value, called through a reference by @hiraditya in #3800
  • net: safe and buffered reads and writes, with no raw pointers by @hiraditya in #3430
  • check: a safe extern function cannot return or change a value of a type with an invariant by @hiraditya in #3804
  • intel gpu, metal: name the Vx function and the line of a kernel in errors by @hiraditya in #3806
  • sync: select2 to select6 wait on sources of different types by @hiraditya in #3807
  • check: a method call through a raw pointer needs an unsafe block by @hiraditya in #3808
  • tests: the ANE tests accept the function and the line of a kernel by @hiraditya in #3809
  • blog: say which shorter PTX gave different machine code by @hiraditya in #3788
  • tests: topology_dispatch.vx accepts the file and the line of a region by @hiraditya in #3811
  • flatten: pass a closure to a generic function with its captures by @minzyfox in #3812
  • net: a select waits on a TcpListener, a TcpStream or a UdpSocket by @hiraditya in #3814
  • sync: a select waits on the new channels, a Semaphore and an Interval by @hiraditya in #3815
  • tasks: the deadlock report names the channels and semaphores of a select by @hiraditya in #3816
  • check: a closure that moves a value that it captures runs only once by @hiraditya in #3789
  • mlir!: a block outside unsafe must be one that the compiler verifies by @hiraditya in #3803
  • prover: a write to a field keeps the facts about the other fields by @hiraditya in #3819
  • docs: the error index counts 196 diagnostics by @hiraditya in #3821
  • prover: a struct literal gives a fact for each integer field by @hiraditya in #3822
  • tests: the threadgroup mlir! test expects the block at column 32 by @hiraditya in #3827
  • std: main gets the capabilities of the program, and a socket needs the network right by @hiraditya in #3838
  • std: a safe File::open takes the file right, and read and write take a Vec by @hiraditya in #3845
  • check: a generic function does not see the variables of its caller by @hiraditya in #3847
  • sync: run_jobs and try_run_jobs take a closure by @hiraditya in #3854
  • check: a generic call keeps the transfer tokens of its caller by @hiraditya in #3860
  • parser and flatten: a trait default method returns its trailing expression, Result<void, E> can be unwrapped, and a payload after a void payload is stored in the right field by @minzyfox in #3711
  • across: a lane loop in a loop of the block code can change its own variable by @hiraditya in #3875
  • std::nn: the top k positions of long rows, as in SGLang's radix select by @hiraditya in #3876
  • std: a Folder is the right to read the files of one folder by @hiraditya in #3873
  • std: the llama loaders take the file right and are unsafe by @hiraditya in #3878
  • check: a program cannot call main or use it as a value by @hiraditya in #3879
  • std: join_job takes the file right and the network right by @hiraditya in #3881
  • modules: only a file that vxc compiles can declare main(root : Root) by @hiraditya in #3882
  • check: a generic Copy impl needs a Copy bound for each value it holds by @hiraditya in #3883
  • check: a safe mlir! block that does not parse is an error by @hiraditya in #3880
  • std: only its own file can build a std type that holds a raw pointer by @hiraditya in #3862
  • sync: a select waits for the end of the copy of a transfer_async by @hiraditya in #3828
  • parse: pub on methods and generic functions, and extern fn exports a function to C by @hiraditya in #3895
  • check: a method that takes self by value moves its receiver under a borrow by @hiraditya in #3885
  • check: a type with a Drop impl cannot be Copy by @hiraditya in #3889
  • check: a spawn loop with an assert, a match or a tuple runs in parallel by @hiraditya in #3837
  • check: a spawn loop that writes a tensor through another name runs on one thread by @hiraditya in #3850
  • check: a parallel loop can read the extent of a tensor that it writes by @hiraditya in #3958
  • codegen: the object file exports only an extern fn to C, not a pub fn by @hiraditya in #3896
  • check: a function with no pub is private to its file by @hiraditya in #3901
  • check: pkg makes a function visible to the files of its package by @hiraditya in #3954
  • std: the raw pointer helpers of std::sync and std::vec are private or pkg by @hiraditya in #3962
  • std: safe code cannot free a block twice or fill past a buffer through std by @hiraditya in #3894
  • docs: lend a capability for one request, and say what trusted code can do by @hiraditya in #3971
  • flat codegen: add whole 1-D tensors in a loop, not as one vector by @hiraditya in #3810
  • docs: a design for private functions: a function with no pub is private to its file by @hiraditya in #3892
  • docs: add the slides of the Vx talk at the SF Lean meetup by @hiraditya in #3974
  • clippy: remove wildcard fields that a .. in the same pattern matches by @hiraditya in #3977
  • lang: a tensor parameter can name a run-time extent, as ?n by @hiraditya in #3964
  • codegen: an across loop can count over a usize or an i64 range by @hiraditya in #3967
  • check, codegen: a call through a reference runs a closure or a function by @hiraditya in #3968
  • std: main can take the words of the command line as a Vec by @hiraditya in #3975
  • blog: how main got its parameters by @hiraditya in #4032
  • check: a call of a C function is fine when the caller can see any of its extern declarations by @hiraditya in #3996
  • codegen: register the MLIR passes once, so that threads cannot corrupt the heap by @hiraditya in #3997
  • std: File::map gives the whole file in memory, read-only by @hiraditya in #4007
  • check, flatten: a chain of else if compiles in linear time by @hiraditya in #4024
  • std::io: stdout_write flushes, so the bytes after the last newline come out by @hiraditya in #4025
  • check: storing a value with no reference in a field keeps no borrow across loop passes by @hiraditya in #4026
  • check: a borrow of a field is valid as long as its variable by @hiraditya in #4027
  • audit: an unsafe block in a trait's default method is trusted code of the trait by @hiraditya in #4028
  • flat codegen: a match can give a struct that has an Option field by @hiraditya in #4029
  • check: a false assert in a branch that may not run is a run-time check by @hiraditya in #4030
  • runtime: GPU memory that every rank of a job can read and write by @hiraditya in #3619
  • docs: a spec for visibility with the levels private, pkg, ws and pub by @hiraditya in #3934
  • blog: rewrite the post on how main got its parameters so that it reads better by @hiraditya in #4091
  • check: a match through a reference binds references to the payload by @hiraditya in #4093
  • audit: a closure body is not trusted code, but an unsafe block in it is by @hiraditya in #4094
  • codegen: several SPIR-V kernels no longer get an image that defines an id twice by @hiraditya in #4095
  • check: the shape in Tensor<T, [?, 4]>::new([..]) must match the type by @hiraditya in #4097
  • parallel: a spawn loop runs on one thread when all its blocks write the same rows by @hiraditya in #4100
  • benchmarks: a probe that times a Metal kernel launch and a host read of its output by @SycamoreQ in #3671
  • codegen: a call of the program's own function named transpose or clone calls it by @hiraditya in #4101
  • std: reading an environment variable needs the right Environment by @hiraditya in #4102
  • lower: store an enum payload with no declaration as a struct field by @bajpainaman in #4034
  • prover: a usize +, - or * that overflows has no value in a contract by @bajpainaman in #4035
  • vxc: a program that vxc runs reads the standard input of vxc by @bajpainaman in #4037
  • check: W1029 does not warn about a parameter with a run-time size by @bajpainaman in #4039
  • std: only std can make the file right and the network right of a program by @hiraditya in #4099
  • std: String::from_utf8 and String::from_bytes make a String from bytes with no unsafe by @hiraditya in #4103
  • tests: check the value of the comptime block in four tests by @bajpainaman in #4081
  • tests: check the error for a comparison of two different types by @bajpainaman in #4080
  • tests: check the error for an enum payload of the wrong type by @bajpainaman in #4079
  • tests: check the four E3025 errors for a wrong extent(i) or len() call by @bajpainaman in #4078
  • num: add to_be, to_le, from_be and from_le to the integer types by @bajpainaman in #4077
  • mlir!: say that a block with no macro.yield needs one by @bajpainaman in #4067
  • parse: say that Vx writes type arguments without :: in Vec<i32>::new() by @bajpainaman in #4066
  • check: name the import when a standard type is used without it by @bajpainaman in #4065
  • prover: keep the parentheses of -(...) and (...) as T in a quoted contract by @bajpainaman in #4052
  • blog: environment variables are no longer an open item of the main post by @hiraditya in #4107
  • check: a match on a value with an unknown type binds unknown payloads by @bajpainaman in #4051
  • check: say that a closure parameter needs a type by @bajpainaman in #4054
  • check: an index of a number is a type error by @bajpainaman in #4040
  • prover: an assignment from a call keeps the callee's ensures bounds by @bajpainaman in #4041
  • parser: a tasks or spawn block that starts a statement ends at its closing brace by @bajpainaman in #4044
  • verifier: a let keeps no fact about a variable that a later argument changed by @bajpainaman in #4047
  • macro_rules: keep an expr argument together as one value, as Rust does by @bajpainaman in #4048
  • check: print! and println! only read a variable, field, *r or v[i] they print by @bajpainaman in #4049
  • check: ? accepts an enum error that a closure gives without a written type by @bajpainaman in #4055
  • std: s.to_bytes() copies the bytes of a String into a Vec with no unsafe by @hiraditya in #4122
  • runtime: delete vx_env_args_count and vx_env_arg, which abort on a word that is not UTF-8 by @hiraditya in #4123
  • std: Stdin, Stdout and Stderr are rights in Root, with safe read, read_exact and write_all by @hiraditya in #4130
  • std: parse i64, u64, f64 and f32 from bytes, and give floats a to_string by @hiraditya in #4134
  • std: std::unicode decodes UTF-8 code points and tells letters, numbers and white space apart by @hiraditya in #4135
  • check: report the type errors of every function of a package, also of one that nothing calls by @hiraditya in #4136
  • check: a string literal is its bytes and a NUL, so String::from_bytes takes one with no unsafe by @hiraditya in #4137
  • vx-format: measure a joined unsafe block with the indentation it writes by @bajpainaman in #4042
  • check: a number branch of an if takes the type of the other branch by @bajpainaman in #4043
  • parser: print error codes E1001 and E1002 on parse errors by @bajpainaman in #4053
  • parser: say that the body of a match arm is a block in braces by @bajpainaman in #4056
  • check: an across loop may call the math methods of f16 and bf16 by @bajpainaman in #4057
  • diagnostics: say to write Option<T>::Some(value) for a bare Some(..) by @bajpainaman in #4058
  • closures: a call of a closure or a function pointer gives an integer literal the parameter type by @bajpainaman in #4060
  • parser: say to use match when a program writes if let or while let by @bajpainaman in #4061
  • tools: print the right name in --version of vx-format, vx-api and vx-opt by @bajpainaman in #4062
  • editors: highlight every lexer keyword in the VS Code and Emacs modes by @bajpainaman in #4064
  • core::ptr: add NonNull, a raw pointer that is never null by @bajpainaman in #4068
  • parser: say that Vx writes import when a file starts with use by @bajpainaman in #4069
  • parser: say to write a generic parameter when a type starts with impl by @bajpainaman in #4070
  • print-ast: show a type as written and a number with its type by @bajpainaman in #4059
  • analyzer: answer a request it does not handle with MethodNotFound by @bajpainaman in #4063
  • parser: say that Vx has no attributes when a file starts an item with #[ by @bajpainaman in #4072
  • check: say "expects 1 value" for an enum variant with the wrong value count by @bajpainaman in #4073
  • tests: check error E3006 for && and || on a bool and an i32 by @bajpainaman in #4074
  • scripts: the error index check says when mdformat is missing by @bajpainaman in #4075
  • check: an assert in a loop no longer uses the value from before the loop by @bajpainaman in #3956
  • check: E6038 gives a reason that is true for every HostOnly type by @minzyfox in #3857
  • codegen: a never-returning function stays a call, so LLVM inlines Vec::get by @minzyfox in #3841
  • flat codegen: an emitter gap names its function, and two more borrowed tensors in a slot by @epsilon-phase in #3202
  • parse: accept hex, binary, octal and _-separated number literals by @bajpainaman in #2823
  • check: report the errors of a function body that a ? checks first by @hiraditya in #4121
  • std: Hash for String, and Hash, PartialEq and Eq for Vec, as Rust has them by @hiraditya in #4139
  • check: make the length of a string literal with NumberExpr::new, so main builds again by @hiraditya in #4143
  • codegen: Tensor<T, [?, 2]>::fill([n, 2], v) fills a tensor of a run-time shape by @hiraditya in #4108
  • prover: keep the parentheses of an operand in a quoted contract by @hiraditya in #4112
  • macro_rules: a macro body can hold statements by @hiraditya in #4113
  • drops: drop a String that a call gives to print! or println! by @hiraditya in #4114
  • prover: let mut x = f(..) keeps the ensures bounds of f by @hiraditya in #4115
  • blog: processes are no longer an open item of the main post by @hiraditya in #4117
  • std: read one byte of a String, append a String, and copy a byte range, with no unsafe by @hiraditya in #4141
  • fmt: replace Write::write_c_str, which could read past a Vec, with a safe write_buffer by @hiraditya in #4148
  • drops: a value moved before a ? or a return inside a block is not dropped again by @hiraditya in #4149
  • check: an if branch of arithmetic or a nested if of numbers takes the other branch type by @hiraditya in #4150
  • check: --no-trusted-code refuses a requires of a function that C can call by @hiraditya in #4151
  • check: safe code reads the n bytes of a string literal, not its NUL by @hiraditya in #4152
  • std::net: lookup(&Network, &String) gives the IP addresses of a host name by @hiraditya in #4154
  • std::fs: PendingFile, the right to open one file later, and remove_file and file_kind by @hiraditya in #4156
  • std: print_s! and println_s! print with the right to print, a Stdout or a Stderr by @hiraditya in #4160
  • check: a program can call only the pub functions of a library it links through a .vxlib by @hiraditya in #4163
  • parse: wrap the expansion of print_s! in MacroBody::Expr, so main builds again by @hiraditya in #4166
  • tests: the write_buffer test reads the 2 bytes of "hi", not its NUL, so main passes again by @hiraditya in #4169
  • std: starting another program needs the right Processes by @hiraditya in #4111
  • blog: #4123 removed the old argument functions, not #4110 by @hiraditya in #4167
  • codegen: a requires fact about a named extent reaches LLVM as an assume by @hiraditya in #4171
  • std::net: UnixStream and UnixListener, Unix-domain stream sockets that take the network right by @hiraditya in #4155
  • vec: write a field of an element in place, v[i].n = x, with IndexMut by @hiraditya in #4170
  • codegen: a match on a value that ends with ? binds the names of its patterns by @hiraditya in #4173
  • tests: the network tests bind ports below 32768, outside the range for outgoing connections by @hiraditya in #4175
  • check: a number read from a Vec element does not keep the Vec borrowed by @hiraditya in #4176
  • check: each side of && and || must be a bool by @hiraditya in #4177
  • check: Some(..) without its Option type or import is an error by @hiraditya in #4178
  • check: a call of a generic function must meet its requires by @hiraditya in #4179
  • drops: a let that hides a value with Drop leaves that drop on the old value by @hiraditya in #4182
  • std::net: TcpStream gives its file descriptor, like UnixStream by @hiraditya in #4183
  • check: an arm of a used match that can end with no value is an error by @hiraditya in #4184
  • runtime: the print helpers get a vx_ prefix by @hiraditya in #4185
  • check: two extern declarations of one C function must have one type by @hiraditya in #4187
  • codegen: match &v works when the let of v takes a match or an if value by @hiraditya in #4189
  • check: the branches of an if can give one enum in two spellings by @hiraditya in #4190
  • drops: drop a temporary in the last value of a closure or a block by @hiraditya in #4191
  • codegen: the legacy generator prints a String that it gets by reference by @hiraditya in #4194
  • codegen: a struct field or enum payload of a closure type holds both pointers of the closure by @hiraditya in #4196
  • codegen: the legacy generator lowers a type that holds a Vec of itself by @hiraditya in #4197
  • drops: a call takes its argument values when it runs by @hiraditya in #4193
  • monomorphism: an instance name lists its type arguments in the declared order by @hiraditya in #4201
  • parse: after a variable, < is a comparison, not type arguments by @hiraditya in #4203
  • drops: a value is not freed before the drop that reads it through a reference by @bajpainaman in #4018
  • release: version 0.0.6 by @hiraditya in #4198

Full Changelog: v0.0.5...v0.0.6