Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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).