- これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
- 一部 master なモノもあります、ごちゃ混ぜです
- 自分用に翻訳しています
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=ERROR REPORT==== 25-Apr-2023::07:18:46.026285 UTC === | |
** State machine <0.413110.0> terminating | |
** Last event = {{call,{<0.413109.0>,#Ref<0.2566139405.1771831297.710>}}, | |
close} | |
** When server state = {{recv, | |
{select_info,recvfrom, | |
#Ref<0.2566139405.1771831297.706>}}, | |
{{params, | |
{'$socket',#Ref<0.2566139405.1771700225.222180>}, | |
<0.413109.0>, |
募集するより、こちらから相談した方が良いことがわかったので、募集は終了ます
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const system = std.os.system; | |
pub const Scheduler = struct { | |
pub const InitConfig = struct { | |
max_threads: ?u16 = null, | |
}; | |
pub fn init(self: *Scheduler, config: InitConfig) !void { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Zig 作者のコードを参考にした | |
//! https://gist.github.com/andrewrk/34c21bdc1600b0884a3ab9fa9aa485b8 | |
//! https://gist.github.com/karlseguin/53bb8ebf945b20aa0b7472d9d30de801 | |
//! 非同期版 tcp echo server | |
const std = @import("std"); | |
const net = std.net; | |
const os = std.os; | |
const mem = std.mem; | |
const log = std.log; |
日時: | 2022-03-28 |
---|---|
作: | voluntas |
バージョン: | 2022.5 |
URL: | https://voluntas.github.io/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(benchmark). | |
-export([main/0]). | |
%% 1100 バイト中 1000 バイトを暗号化する | |
%% AES-128-CTR + HMAC-SHA1 はお尻に 10 バイトつけるので 1110 バイトになる | |
%% AES-128-GCM はお尻に 16 バイトつけるので 1116 バイトになる | |
%% TODO: IV は固定ではなく SeqNum にすべき |