Repository navigation
zevic v0.4.2
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 aThread.Thread;Join()waits for it (joining twice is a Panic);Thread.Yield()gives up the time sliceZevic.BigInt: integers of any size, as theBigInt.BigInttype.FromI64,Parse,Add,Sub,Mul,DivRem(truncated toward 0),Pow,Neg,Abs,IsZero,ToString,ToI64(anErrwhen out of range),EqualsandCompare. It implementsEquatableandComparable- Specification (
docs/spec/zevic-spec.md): concurrency uses OS threads;Integeris replaced byZevic.BigInt; the open items that the implementation has settled are removed; theNet,ThreadandBigIntsections describe the implemented APIs - Known gap:
<on a struct that implementsComparableis not generated by the compiler yet (the specification says it should work). UseCompareuntil 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/zevfmt0.4.2packages/Zevic/: the standard library, a zevpm package namedZevic(version 0.4.2)runtime/,examples/,LICENSE,README.md,VERSION