Skip to content

"cache hash" API in the std lib (or at least in src-self-hosted) #4311

Closed

Description

@andrewrk

Currently, the stage1 compiler makes use of:

  • cache_hash.cpp
  • cache_hash.hpp
  • blake2b.c
  • blake2.h

As the backend for its caching. The self-hosted compiler will also need to do caching, with a similar API.

The Zig std lib has a variety of hash functions to choose from:

$ ls ../lib/std/crypto
aes.zig        blake2.zig    gimli.zig  md5.zig       sha1.zig  sha3.zig  x25519.zig
benchmark.zig  chacha20.zig  hmac.zig   poly1305.zig  sha2.zig  test.zig

Porting this API, or implementing an alternative, yet similar API, will accomplish the following:

Activity

  1. added
    enhancement
    contributor friendly
    standard library
    frontend
    stage1
    on Jan 29, 2020
  2. added this to the 0.7.0 milestone on Jan 29, 2020
  3. modified the milestones: 0.7.0, 0.6.0 on Feb 17, 2020
  4. modified the milestones: 0.6.0, 0.7.0 on Mar 29, 2020
  5. andrewrk commented on May 26, 2020

    @andrewrk
    MemberAuthor

    Landed in 49f3def

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor friendlyenhancementfrontendstage1standard library

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions