0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/fmt.zig

2856 lines
108 KiB

std lib networking improvements, especially non-blocking I/O * delete the std/event/net directory * `std.event.Loop.waitUntilFdReadable` and related functions no longer have possibility of failure. On Linux, they fall back to poll() and then fall back to sleep(). * add some missing `noasync` decorations in `std.event.Loop` * redo the `std.net.Server` API. it's quite nice now, but shutdown does not work cleanly. There is a race condition with close() that I am actively working on. * move `std.io.OutStream` to its own file to match `std.io.InStream`. I started working on making `write` integrated with evented I/O, but it got tricky so I backed off and filed #3557. However I did integrate `std.os.writev` and `std.os.pwritev` with evented I/O. * add `std.Target.stack_align` * move networking tests to `lib/std/net/test.zig` * add `std.net.tcpConnectToHost` and `std.net.tcpConnectToAddress`. * rename `error.UnknownName` to `error.UnknownHostName` within the context of DNS resolution. * add `std.os.readv`, which is integrated with evented I/O. * `std.os.preadv`, is now integrated with evented I/O. * `std.os.accept4` now asserts that ENOTSOCK and EOPNOTSUPP never occur (misuse of API), instead of returning errors. * `std.os.connect` is now integrated with evented I/O. `std.os.connect_async` is gone. Just use `std.os.connect`. * fix false positive dependency loop regarding async function frames * add more compile notes to help when dependency loops occur in determining whether a function is async. * ir: change an assert to ir_assert to make it easier to find workarounds for when such an assert is triggered. In this case it was trying to parse an IPv4 address at comptime.
2019-10-29 22:59:30 -04:00
Improvements to docs and text * docs(std.math): elaborate on difference between absCast and absInt * docs(std.rand.Random.weightedIndex): elaborate on likelihood I think this makes it easier to understand. * langref: add small reminder * docs(std.fs.path.extension): brevity * docs(std.bit_set.StaticBitSet): mention the specific types * std.debug.TTY: explain what purpose this struct serves This should also make it clearer that this struct is not supposed to provide unrelated terminal manipulation functionality such as setting the cursor position or something because terminals are complicated and we should keep this struct simple and focused on debugging. * langref(package listing): brevity * langref: explain what exactly `threadlocal` causes to happen * std.array_list: link between swapRemove and orderedRemove Maybe this can serve as a TLDR and make it easier to decide. * PrefetchOptions.locality: clarify docs that this is a range This confused me previously and I thought I can only use either 0 or 3. * fix typos and more * std.builtin.CallingConvention: document some CCs * langref: explain possibly cryptic names I think it helps knowing what exactly these acronyms (@clz and @ctz) and abbreviations (@popCount) mean. * variadic function error: add missing preposition * std.fmt.format docs: nicely hyphenate * help menu: say what to optimize for I think this is slightly more specific than just calling it "optimizations". These are speed optimizations. I used the word "performance" here.
2023-04-23 20:06:21 +02:00
2020-09-21 16:15:37 +02:00
std lib networking improvements, especially non-blocking I/O * delete the std/event/net directory * `std.event.Loop.waitUntilFdReadable` and related functions no longer have possibility of failure. On Linux, they fall back to poll() and then fall back to sleep(). * add some missing `noasync` decorations in `std.event.Loop` * redo the `std.net.Server` API. it's quite nice now, but shutdown does not work cleanly. There is a race condition with close() that I am actively working on. * move `std.io.OutStream` to its own file to match `std.io.InStream`. I started working on making `write` integrated with evented I/O, but it got tricky so I backed off and filed #3557. However I did integrate `std.os.writev` and `std.os.pwritev` with evented I/O. * add `std.Target.stack_align` * move networking tests to `lib/std/net/test.zig` * add `std.net.tcpConnectToHost` and `std.net.tcpConnectToAddress`. * rename `error.UnknownName` to `error.UnknownHostName` within the context of DNS resolution. * add `std.os.readv`, which is integrated with evented I/O. * `std.os.preadv`, is now integrated with evented I/O. * `std.os.accept4` now asserts that ENOTSOCK and EOPNOTSUPP never occur (misuse of API), instead of returning errors. * `std.os.connect` is now integrated with evented I/O. `std.os.connect_async` is gone. Just use `std.os.connect`. * fix false positive dependency loop regarding async function frames * add more compile notes to help when dependency loops occur in determining whether a function is async. * ir: change an assert to ir_assert to make it easier to find workarounds for when such an assert is triggered. In this case it was trying to parse an IPv4 address at comptime.
2019-10-29 22:59:30 -04:00
2019-12-14 14:23:42 +05:00
2020-03-06 16:59:21 -06:00
2021-06-19 21:10:22 -04:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2020-06-20 15:02:48 +05:00
2021-01-03 02:20:37 -07:00
2020-03-06 16:59:21 -06:00
2021-01-03 02:20:37 -07:00
2020-03-06 16:59:21 -06:00
2020-05-25 11:05:08 +05:00
2021-01-03 02:20:37 -07:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-01-31 21:18:20 +11:00
2020-06-20 15:02:48 +05:00
2020-01-31 21:18:20 +11:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-10-31 15:16:59 +01:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2021-01-03 02:20:37 -07:00
2020-06-20 15:02:48 +05:00
2020-10-31 15:12:05 +01:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-02-26 11:07:47 +02:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2021-01-03 02:20:37 -07:00
2020-06-20 15:02:48 +05:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2021-06-19 21:10:22 -04:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2020-10-31 15:12:05 +01:00
2020-10-31 15:12:05 +01:00
2020-10-31 15:12:05 +01:00
2021-01-03 02:20:37 -07:00
2021-01-03 02:20:37 -07:00
2020-10-31 15:12:05 +01:00
2020-10-31 15:12:05 +01:00
2021-01-03 02:20:37 -07:00
2020-10-31 15:12:05 +01:00
2020-10-31 15:12:05 +01:00
2020-06-20 15:02:48 +05:00
2019-12-14 14:23:42 +05:00
2020-10-31 15:12:05 +01:00
2021-01-03 02:20:37 -07:00
2020-10-31 15:12:05 +01:00
2020-06-20 15:02:48 +05:00
2019-12-14 14:23:42 +05:00
2020-06-20 15:02:48 +05:00
2019-12-14 14:23:42 +05:00
2020-03-05 12:19:08 -05:00
2020-03-10 15:22:29 -04:00
2020-03-05 12:19:08 -05:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2021-02-24 21:29:01 -07:00
2020-06-20 15:02:48 +05:00
2019-12-22 15:38:27 +05:00
2019-12-22 15:38:27 +05:00
2019-12-22 15:38:27 +05:00
2020-03-06 16:59:21 -06:00
2020-08-09 12:48:26 +02:00
2020-08-09 12:48:26 +02:00
2021-06-19 21:10:22 -04:00
2021-06-19 21:10:22 -04:00
2021-06-19 21:10:22 -04:00
2020-03-06 16:59:21 -06:00
2020-03-06 16:59:21 -06:00
2019-12-22 15:38:27 +05:00
2020-11-19 18:16:23 +01:00
2020-11-19 18:16:23 +01:00
2020-11-19 18:16:23 +01:00
2019-12-22 15:38:27 +05:00
2020-03-06 16:59:21 -06:00
2020-09-21 16:14:47 +02:00
2020-09-21 16:14:47 +02:00
2020-09-21 16:14:47 +02:00
2020-09-21 16:14:47 +02:00
2020-09-21 16:14:47 +02:00
2020-09-21 16:14:47 +02:00
2020-03-06 16:59:21 -06:00
2017-10-23 15:40:49 -05:00
2020-06-20 15:02:48 +05:00
2017-10-23 15:40:49 -05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2017-10-23 15:40:49 -05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2019-11-06 23:25:57 -05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2021-02-24 21:29:01 -07:00
2020-03-06 16:59:21 -06:00
2020-03-06 16:59:21 -06:00
2021-06-19 21:10:22 -04:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2020-07-03 15:35:18 -04:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2020-07-03 15:35:18 -04:00
2020-07-03 15:35:18 -04:00
2020-07-03 15:35:18 -04:00
2021-04-21 15:30:06 -04:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2020-07-03 15:35:18 -04:00
2021-05-04 20:47:26 +03:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2020-10-15 12:11:03 +02:00
2020-06-20 15:02:48 +05:00
2018-07-17 18:36:47 -04:00
2018-07-17 18:36:47 -04:00
2018-07-17 18:36:47 -04:00
2020-10-11 17:06:46 +03:00
2020-09-25 10:51:57 -06:00
2020-09-25 10:51:57 -06:00
2017-05-07 23:25:02 -04:00
2017-05-07 23:25:02 -04:00
2021-05-04 20:47:26 +03:00
2018-05-30 12:18:24 -05:00
2018-05-30 12:18:24 -05:00
2019-12-22 15:38:27 +05:00
2019-12-22 15:38:27 +05:00
2019-12-22 15:38:27 +05:00
2020-09-21 16:14:47 +02:00
2020-03-06 16:59:21 -06:00
2021-05-04 20:47:26 +03:00
2020-03-06 16:59:21 -06:00
2021-05-04 20:47:26 +03:00
2020-03-06 16:59:21 -06:00
2021-05-04 20:47:26 +03:00
2021-01-03 02:20:37 -07:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2022-04-06 20:49:05 -06:00
2020-03-06 16:59:21 -06:00
2021-06-19 21:10:22 -04:00
2020-06-20 15:02:48 +05:00
2020-06-20 15:02:48 +05:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2018-08-27 19:25:18 -04:00
2021-05-04 20:47:26 +03:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2021-05-04 20:47:26 +03:00
2020-05-25 11:05:08 +05:00
2020-06-20 15:02:48 +05:00
2021-05-04 20:47:26 +03:00
2020-05-25 11:05:08 +05:00
2020-05-25 11:05:08 +05:00
2020-03-06 16:59:21 -06:00
2021-06-19 21:10:22 -04:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2020-03-06 16:59:21 -06:00
2020-06-20 15:02:48 +05:00
2019-12-14 14:23:42 +05:00
2019-12-14 14:23:42 +05:00
2019-12-14 14:23:42 +05:00
2019-12-14 14:23:42 +05:00
2020-03-05 12:19:08 -05:00
2020-03-05 12:19:08 -05:00
2020-05-13 18:07:52 +05:00
2020-05-13 18:07:52 +05:00
2020-08-09 12:48:26 +02:00
2020-08-09 12:48:26 +02:00
2020-08-09 12:48:26 +02:00
2020-10-21 22:02:38 +05:00
2020-10-21 22:02:38 +05:00