| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-08-09 | spirv: remove prune_unused ISel | Ali Cheraghi | |
| 2025-08-07 | Merge pull request #24661 from alichraghi/spv4 | Andrew Kelley | |
| spirv: refactor and remove deduplication ISel | |||
| 2025-08-04 | spirv: define and use extended instruction set opcodes | Ali Cheraghi | |
| 2025-08-03 | Watch: do not fail when file is removed | Ali Cheraghi | |
| before this we would get a crash | |||
| 2025-08-03 | Merge pull request #22997 from Rexicon226/align-0-reify | Matthew Lugg | |
| sema: compile error on reifying align(0) fields and pointers | |||
| 2025-08-03 | llvm: correctly lower `double_integer` for rv32 | David Rubin | |
| 2025-08-02 | spirv: refactor | Ali Cheraghi | |
| 2025-08-01 | build system: replace fuzzing UI with build UI, add time report | mlugg | |
| This commit replaces the "fuzzer" UI, previously accessed with the `--fuzz` and `--port` flags, with a more interesting web UI which allows more interactions with the Zig build system. Most notably, it allows accessing the data emitted by a new "time report" system, which allows users to see which parts of Zig programs take the longest to compile. The option to expose the web UI is `--webui`. By default, it will listen on `[::1]` on a random port, but any IPv6 or IPv4 address can be specified with e.g. `--webui=[::1]:8000` or `--webui=127.0.0.1:8000`. The options `--fuzz` and `--time-report` both imply `--webui` if not given. Currently, `--webui` is incompatible with `--watch`; specifying both will cause `zig build` to exit with a fatal error. When the web UI is enabled, the build runner spawns the web server as soon as the configure phase completes. The frontend code consists of one HTML file, one JavaScript file, two CSS files, and a few Zig source files which are built into a WASM blob on-demand -- this is all very similar to the old fuzzer UI. Also inherited from the fuzzer UI is that the build system communicates with web clients over a WebSocket connection. When the build finishes, if `--webui` was passed (i.e. if the web server is running), the build runner does not terminate; it continues running to serve web requests, allowing interactive control of the build system. In the web interface is an overall "status" indicating whether a build is currently running, and also a list of all steps in this build. There are visual indicators (colors and spinners) for in-progress, succeeded, and failed steps. There is a "Rebuild" button which will cause the build system to reset the state of every step (note that this does not affect caching) and evaluate the step graph again. If `--time-report` is passed to `zig build`, a new section of the interface becomes visible, which associates every build step with a "time report". For most steps, this is just a simple "time taken" value. However, for `Compile` steps, the compiler communicates with the build system to provide it with much more interesting information: time taken for various pipeline phases, with a per-declaration and per-file breakdown, sorted by slowest declarations/files first. This feature is still in its early stages: the data can be a little tricky to understand, and there is no way to, for instance, sort by different properties, or filter to certain files. However, it has already given us some interesting statistics, and can be useful for spotting, for instance, particularly complex and slow compile-time logic. Additionally, if a compilation uses LLVM, its time report includes the "LLVM pass timing" information, which was previously accessible with the (now removed) `-ftime-report` compiler flag. To make time reports more useful, ZIR and compilation caches are ignored by the Zig compiler when they are enabled -- in other words, `Compile` steps *always* run, even if their result should be cached. This means that the flag can be used to analyze a project's compile time without having to repeatedly clear cache directory, for instance. However, when using `-fincremental`, updates other than the first will only show you the statistics for what changed on that particular update. Notably, this gives us a fairly nice way to see exactly which declarations were re-analyzed by an incremental update. If `--fuzz` is passed to `zig build`, another section of the web interface becomes visible, this time exposing the fuzzer. This is quite similar to the fuzzer UI this commit replaces, with only a few cosmetic tweaks. The interface is closer than before to supporting multiple fuzz steps at a time (in line with the overall strategy for this build UI, the goal will be for all of the fuzz steps to be accessible in the same interface), but still doesn't actually support it. The fuzzer UI looks quite different under the hood: as a result, various bugs are fixed, although other bugs remain. For instance, viewing the source code of any file other than the root of the main module is completely broken (as on master) due to some bogus file-to-module assignment logic in the fuzzer UI. Implementation notes: * The `lib/build-web/` directory holds the client side of the web UI. * The general server logic is in `std.Build.WebServer`. * Fuzzing-specific logic is in `std.Build.Fuzz`. * `std.Build.abi` is the new home of `std.Build.Fuzz.abi`, since it now relates to the build system web UI in general. * The build runner now has an **actual** general-purpose allocator, because thanks to `--watch` and `--webui`, the process can be arbitrarily long-lived. The gpa is `std.heap.DebugAllocator`, but the arena remains backed by `std.heap.page_allocator` for efficiency. I fixed several crashes caused by conflation of `gpa` and `arena` in the build runner and `std.Build`, but there may still be some I have missed. * The I/O logic in `std.Build.WebServer` is pretty gnarly; there are a *lot* of threads involved. I anticipate this situation improving significantly once the `std.Io` interface (with concurrency support) is introduced. | |||
| 2025-08-01 | remove usages of `.alignment = 0` | David Rubin | |
| 2025-07-30 | llvm: fix atomic widening of packed structs | Kendall Condon | |
| Additionally, disable failing big-endian atomic test also improve test paramaters to catch this when condition is removed also some other cleanups | |||
| 2025-07-28 | aarch64: implement scalar `@mod` | Jacob Young | |
| 2025-07-28 | aarch64: workaround some optional/union issues | Jacob Young | |
| 2025-07-27 | aarch64: fix error union constants | Jacob Young | |
| 2025-07-27 | aarch64: implement var args | Jacob Young | |
| 2025-07-26 | aarch64: implement more optional/error union/union support | Jacob Young | |
| 2025-07-26 | aarch64: implement some safety checks | Jacob Young | |
| Closes #24553 | |||
| 2025-07-26 | aarch64: implement stack probing | Jacob Young | |
| 2025-07-26 | aarch64: implement complex switch prongs | Jacob Young | |
| 2025-07-25 | aarch64: more progress | Jacob Young | |
| - factor out `loadReg` - support all general system control registers in inline asm - fix asserts after iterating field offsets - fix typo in `slice_elem_val` - fix translation of argument locations | |||
| 2025-07-22 | aarch64: add new from scratch self-hosted backend | Jacob Young | |
| 2025-07-22 | llvm: fix switch loop on larger than pointer integer | Matthew Lugg | |
| 2025-07-20 | llvm: workaround crashes in llvm loop optimizations | Jacob Young | |
| Workaround for #24383 | |||
| 2025-07-20 | cbe: fix comptime-known packed unions | Jacob Young | |
| 2025-07-16 | fix mips clobbers | Andrew Kelley | |
| 2025-07-16 | inline assembly: use types | Andrew Kelley | |
| until now these were stringly typed. it's kinda obvious when you think about it. | |||
| 2025-07-14 | spirv: snake-case the spec | Ali Cheraghi | |
| 2025-07-13 | LLVM backend: fixes | Andrew Kelley | |
| * delete dead code * don't access stack trace too early * revert unintended edit | |||
| 2025-07-13 | Do not store StackTrace type | Ali Cheraghi | |
| 2025-07-13 | LLVM: Move pt field from Object to NavGen | antlilja | |
| * LLVM: Pass correct tid to emit * Store stack trace type in Zcu * Don't use pt.errorIntType in LLVM backend | |||
| 2025-07-09 | CBE: avoid depending on std.io.Writer.count | Andrew Kelley | |
| 2025-07-08 | C backend: fix bitcasting regression | Andrew Kelley | |
| 2025-07-07 | fix 32-bit compilation | Andrew Kelley | |
| 2025-07-07 | std.fmt: fully remove format string from format methods | Andrew Kelley | |
| Introduces `std.fmt.alt` which is a helper for calling alternate format methods besides one named "format". | |||
| 2025-07-07 | std.fmt.format: use {t} for tag name rather than {s} | Andrew Kelley | |
| prevents footgun when formatted type changes from string to enum | |||
| 2025-07-07 | compiler: update a bunch of format strings | Andrew Kelley | |
| 2025-07-07 | C backend: fix compilation errors | Andrew Kelley | |
| 2025-07-07 | cbe: reapply writer changes | Andrew Kelley | |
| 2025-07-07 | C backend: prepare for merge | Andrew Kelley | |
| 2025-07-07 | compiler: fix a bunch of format strings | Andrew Kelley | |
| 2025-07-07 | compiler: fix a bunch of format strings | Andrew Kelley | |
| 2025-07-07 | compiler: upgrade various std.io API usage | Andrew Kelley | |
| 2025-07-07 | compiler: update all instances of std.fmt.Formatter | Andrew Kelley | |
| 2025-07-07 | std.fmt: breaking API changes | Andrew Kelley | |
| added adapter to AnyWriter and GenericWriter to help bridge the gap between old and new API make std.testing.expectFmt work at compile-time std.fmt no longer has a dependency on std.unicode. Formatted printing was never properly unicode-aware. Now it no longer pretends to be. Breakage/deprecations: * std.fs.File.reader -> std.fs.File.deprecatedReader * std.fs.File.writer -> std.fs.File.deprecatedWriter * std.io.GenericReader -> std.io.Reader * std.io.GenericWriter -> std.io.Writer * std.io.AnyReader -> std.io.Reader * std.io.AnyWriter -> std.io.Writer * std.fmt.format -> std.fmt.deprecatedFormat * std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape * std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape * std.fmt.fmtSliceHexLower -> {x} * std.fmt.fmtSliceHexUpper -> {X} * std.fmt.fmtIntSizeDec -> {B} * std.fmt.fmtIntSizeBin -> {Bi} * std.fmt.fmtDuration -> {D} * std.fmt.fmtDurationSigned -> {D} * {} -> {f} when there is a format method * format method signature - anytype -> *std.io.Writer - inferred error set -> error{WriteFailed} - options -> (deleted) * std.fmt.Formatted - now takes context type explicitly - no fmt string | |||
| 2025-07-08 | Merge pull request #24362 (remove async, await, usingnamespace) | Andrew Kelley | |
| remove `async` and `await` keywords; remove `usingnamespace` | |||
| 2025-07-08 | llvm: Revert #17963 (workaround for #16392) | Alex Rønne Petersen | |
| 2025-07-07 | zig fmt | Andrew Kelley | |
| 2025-07-07 | remove `async` and `await` keywords | Andrew Kelley | |
| Also remove `@frameSize`, closing #3654. While the other machinery might remain depending on #23446, it is settled that there will not be `async`/ `await` keywords in the language. | |||
| 2025-07-07 | llvm: Use emulated TLS when appropriate for the target | Alex Rønne Petersen | |
| Closes #24236. | |||
| 2025-07-02 | compiler: change canonical path for backend ABI source files | Andrew Kelley | |
| 2025-07-02 | compiler: delete arm backend | Andrew Kelley | |
| this backend was abandoned before it was completed, and it is not worth salvaging. | |||
