Skip to content

Instantly share code, notes, and snippets.

View voluntas's full-sized avatar
🎲
Focusing

V voluntas

🎲
Focusing
View GitHub Profile
@voluntas
voluntas / ThreadPool.zig
Created July 16, 2022 14:43 — forked from kprotty/ThreadPool.zig
An isolated thread pool implementation for Zig
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 {
@voluntas
voluntas / zig_quic.md
Last active August 28, 2024 19:09
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

こちらの応募は終了しました、冬も募集予定です。

成果

@voluntas
voluntas / main.zig
Last active July 26, 2022 10:46
シングルスレッド非同期 TCP エコーサーバ
//! 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;
@voluntas
voluntas / takeshiba_webmeeting.rst
Last active February 15, 2024 13:00
WebRTC SFU Sora の紹介と WebRTC と WebTransport の現状について
-module(benchmark).
-export([main/0]).
%% 1100 バイト中 1000 バイトを暗号化する
%% AES-128-CTR + HMAC-SHA1 はお尻に 10 バイトつけるので 1110 バイトになる
%% AES-128-GCM はお尻に 16 バイトつけるので 1116 バイトになる
%% TODO: IV は固定ではなく SeqNum にすべき
@voluntas
voluntas / sora_cloud.md
Last active January 4, 2025 12:07
時雨堂 Sora Cloud 開発ログ
@voluntas
voluntas / shiguredo_kohaku.rst
Last active August 23, 2023 03:12
時雨堂 WebRTC Stats Collector Kohaku 開発ログ
@voluntas
voluntas / webrtc_turn.rst
Last active April 4, 2025 02:27
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@voluntas
voluntas / shiguredo_model.rst
Last active December 26, 2023 21:46
時雨堂を支えるビジネスモデル

時雨堂を支えるビジネスモデル

更新:2023-12-08
作者:@voluntas
バージョン:2023.2
URL:https://voluntas.github.io/

タイポなどは Twitter の @voluntas までお願いします。