Jan Ph. H.

Results 467 comments of Jan Ph. H.
trafficstars

Note, that as of now also static memory is not usable in all cases due to offset problems from comptime computed offsets. See #10920.

> Not sure that I understand the build failure (non-determinism introduced?) Error is unrelated to your PR as it appears during compilation of Zig itself (which does not use bind)....

LGTM. Eventually we'd like to use the Ntdll calls for file stuff, because this is highly unlikely to change. For file information this would be NtQueryInformationFile. see #1840.

TODOs - [x] rebase - [x] sort the symbols in os.zig - [x] draft specficiation for os organization - [x] ~~openW is Windows only, where should this go?~~ - [x]...

Derived TODOs: - 1.~~change uname + add getVersion https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversion + what other OSes use (BYOS), possible name `os.kernelVersion` + used via `system.kernelVersion`~~ already finished - 2. ~~maybeIgnoreSigpipe belongs into start.zig...

Future TODOs Where should linux only error abstractions go? linux.zig and move the non-error abstractions into linux/api.zig? - epoll_create1, epoll_ctl, epoll_wait - inotify_init1, inotify_add_watch, inotify_add_watchZ, inotify_rm_watch: linux - dl_iterate_phdr -...

LLVM is still waiting for gcc to decide what to do: https://github.com/llvm/llvm-project/issues/60531#issuecomment-1438986709 and opted for now for a per-target lowering. Since we dont have an immediate (unstable) api use cases...

For [LLVM this should work fine](https://llvm.org/docs/SourceLevelDebugging.html#debug-information-and-optimizations). Probably this should be done after the planned zig.fmt overhaul in #1358 and sufficient testing. Would this break DWARF info in self-hosting (without LLVM)...

@dj-on-github I think your post belongs into #10755 or #10758 as this issue does not deal with random numbers.

> It could provide an API for exact matches, substring matches, or checking for the absence of a log message. This is underspecified and the memory costs can become nontrivial....