-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
"cache hash" API in the std lib (or at least in src-self-hosted) #4311
Copy link
Copy link
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Currently, the stage1 compiler makes use of:
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:
Porting this API, or implementing an alternative, yet similar API, will accomplish the following:
zig fmt,zig targets, etc. Less C++ code; more Zig code.