Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiehuis/zig-ryu
Zig port of https://github.com/ulfjack/ryu
https://github.com/tiehuis/zig-ryu
zig
Last synced: 4 months ago
JSON representation
Zig port of https://github.com/ulfjack/ryu
- Host: GitHub
- URL: https://github.com/tiehuis/zig-ryu
- Owner: tiehuis
- Created: 2018-08-01T10:13:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T03:25:17.000Z (11 months ago)
- Last Synced: 2024-08-03T23:18:22.512Z (6 months ago)
- Topics: zig
- Language: Zig
- Size: 311 KB
- Stars: 15
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zig - tiehuis/zig-ryu
- awesome-zig - zig-ryu🗒️Zig port of https://github.com/ulfjack/ryu
README
Conversion of https://github.com/ulfjack/ryu to [zig](https://ziglang.org/).
## Install
```
git clone --recurse-submodules https://github.com/tiehuis/zig-ryu
```## Benchmarks
Requires `sh`, `make`, `cmake`, `c++`, `zig`
```
./build.sh
./bench-reference # reference timing
./bench-zig # zig timing
```## Todo
- [x] Make more idiomatic
- [x] Add f16 variant
- [x] Add f128 variant (Use partial table set)
- [x] Add specified precision argument (current errol does this after but this is
slows things down a fair bit).
- [x] Benchmark against current float printing code (memory
consumption/performance).