Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
andrewrk opened this issue Jan 29, 2020 · 1 comment
Closed

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

andrewrk opened this issue Jan 29, 2020 · 1 comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness. stage1 The process of building from source via WebAssembly and the C backend. standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@andrewrk
Copy link
Member

andrewrk commented Jan 29, 2020

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:

@andrewrk andrewrk added enhancement Solving this issue will likely involve adding new logic or components to the codebase. contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library. frontend Tokenization, parsing, AstGen, Sema, and Liveness. stage1 The process of building from source via WebAssembly and the C backend. labels Jan 29, 2020
@andrewrk andrewrk added this to the 0.7.0 milestone Jan 29, 2020
@andrewrk andrewrk modified the milestones: 0.7.0, 0.6.0 Feb 17, 2020
@andrewrk andrewrk modified the milestones: 0.6.0, 0.7.0 Mar 29, 2020
@andrewrk
Copy link
Member Author

Landed in 49f3def

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor friendly This issue is limited in scope and/or knowledge of Zig internals. enhancement Solving this issue will likely involve adding new logic or components to the codebase. frontend Tokenization, parsing, AstGen, Sema, and Liveness. stage1 The process of building from source via WebAssembly and the C backend. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant