Skip to content

zevic v0.4.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 06:13
acdac41

zevic v0.4.2

What's new

Threads and arbitrary-precision integers, and the specification brought up to date with the implementation.

  • Zevic.Thread: OS threads that can be waited for. Thread.Spawn(f) starts a function on a new thread and returns a Thread.Thread; Join() waits for it (joining twice is a Panic); Thread.Yield() gives up the time slice
  • Zevic.BigInt: integers of any size, as the BigInt.BigInt type. FromI64, Parse, Add, Sub, Mul, DivRem (truncated toward 0), Pow, Neg, Abs, IsZero, ToString, ToI64 (an Err when out of range), Equals and Compare. It implements Equatable and Comparable
  • Specification (docs/spec/zevic-spec.md): concurrency uses OS threads; Integer is replaced by Zevic.BigInt; the open items that the implementation has settled are removed; the Net, Thread and BigInt sections describe the implemented APIs
  • Known gap: < on a struct that implements Comparable is not generated by the compiler yet (the specification says it should work). Use Compare until it is.

Downloads

File
install.ps1 installer for Windows (PowerShell)
install.sh installer for Linux and macOS
zevic-0.4.2-linux-x64.tar.gz Linux x64: unpack and put bin on PATH (or run install.sh)
zevic-0.4.2-macos-arm64.pkg macOS installer package
zevic-0.4.2-macos-arm64.tar.gz macOS (Apple silicon): unpack and put bin on PATH (or run install.sh)
zevic-0.4.2-windows-x64-setup.exe
zevic-0.4.2-windows-x64.zip Windows: unzip and put bin on PATH (or run install.ps1)
zevic_0.4.2_amd64.deb Debian / Ubuntu package (sudo apt install ./<file>)

Install

Linux and macOS: sh install.sh (or unpack the archive and add its bin directory to PATH).

Windows (PowerShell): .\install.ps1, or unzip and add the bin folder to PATH.

Then zevic --version, zevpm new hello, cd hello, zevpm run. The standard library is the Zevic package in packages/Zevic.
clang 15 or newer must be installed: zevic hands the generated LLVM IR to it.

Commits since v0.4.1-build.32

  • Release 0.4.2: Zevic.Thread, Zevic.BigInt, updated specification (eb8ab8c)

Contents

  • bin/zevic, bin/zevpm, bin/zevfmt 0.4.2
  • packages/Zevic/: the standard library, a zevpm package named Zevic (version 0.4.2)
  • runtime/, examples/, LICENSE, README.md, VERSION