Skip to content

Instantly share code, notes, and snippets.

Avatar
🎲
Focusing

voluntas voluntas

🎲
Focusing
View GitHub Profile
@voluntas
voluntas / index.md
Last active February 23, 2023 08:17
Zig 言語リファレンス
View index.md
  • これは Zig ドキュメント 0.10.1 を DeepL Pro を利用して翻訳したものです。
  • 自分用に翻訳しています
  • そのうち GitHub リポジトリ管理に切り替えます
  • md よりは rst にするべきか悩み中
@voluntas
voluntas / webrtc_unity.rst
Last active September 20, 2022 05:42
WebRTC x Unity コトハジメ
View webrtc_unity.rst

WebRTC x Unity コトハジメ

日時:2022-09-16
作:時雨堂
バージョン:2022.3.0

この資料は 2022 年 10月 25 日(火)・26日(水) に行われる SYNC 2022 の発表資料です。

@voluntas
voluntas / shiguredo_job.rst
Last active February 4, 2023 15:58
時雨堂お手伝い募集
View shiguredo_job.rst
@voluntas
voluntas / ThreadPool.zig
Created July 16, 2022 14:43 — forked from kprotty/ThreadPool.zig
An isolated thread pool implementation for Zig
View ThreadPool.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 March 21, 2023 22:05
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い
View zig_quic.md

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

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

成果

@voluntas
voluntas / main.zig
Last active July 26, 2022 10:46
シングルスレッド非同期 TCP エコーサーバ
View main.zig
//! 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 March 30, 2022 08:55
WebRTC SFU Sora の紹介と WebRTC と WebTransport の現状について
View takeshiba_webmeeting.rst
View benchmark.erl
-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.rst
Last active February 5, 2023 01:40
時雨堂 Sora Cloud 開発ログ
View sora_cloud.rst