ときどきの雑記帖 RE* (新南口)
2026-04-22
Ruby kaigi
最後に行ったのいつだっけか。 まあたとえ近くで開催されても今は行く余裕はないのだけど
今日から #RubyKaigi が函館で開催中なんですね。
— 株式会社アマネクト (@AmanectJP) April 22, 2026
北海道行きたい!https://t.co/zkzggVfFjH#アマネクト#Amanect#Ruby
ラクダ本
広まりの最初の段階は、もちろんPerl の正典としてです。Perldoc には現在でも三大美徳が記されており、 古いバージョンの文書にも同じ文が確認できます。後から誰かが作ったネットミームではなく、 Perl 本体の自己紹介に近い位置を持つ言葉だということです。
日本では、その原典にかなり早い時期から日本語で触れられました。 オライリー・ジャパンは『プログラミング Perl 第3版』を 2002 年 9 月に刊行しており、 日本語読者は早い段階でラクダ本を自国語で読める状態にありました。 日本の三大美徳受容は、後年のブログ文化だけで始まったのではなく、 まず邦訳基盤が先に整っていたわけです。
なんで第3版? 初版のも第2版のも翻訳本は出ていたのに
プログラミングPerl 改訂版 : ラリ・ウォ-ル, 近藤嘉雪: 本
出版社 : オライリー・ジャパン
発売日 : 1997/12/1
Perlプログラミング (A nutshell handbook) | Larry Wall, Randal L.Schwartz, 近藤 嘉雪 |本 | 通販 | Amazon
出版社 : ソフトバンククリエイティブ
発売日 : 1993/2/1
- Laws of Software Engineering | Hacker News
- Running a Minecraft Server and More on a 1960s Univac Computer | Hacker News
- Dennis Ritchie on the double roles of & and | in Early C : r/programming
triple-backref
-# The triple-backref test is expected to fail with both the system
-# matcher (i.e., with glibc) and with the included matcher.
-# Both matchers need to be fixed.
-# FIXME-2025: Remove this once the glibc and gnulib bugs are fixed.
-XFAIL_TESTS = triple-backref
削除されたこのコメントが気になる
WG 14
今週は一件だけ
N3869 2026/04/19 Veldmeijer , The malloc_allocated_size function
malloc(など)で確保した領域の情報をどう得るかという話
void func(void) {
// Allocation failures are ignored for brevity in this example
size_t actual malloc_allocated_size(NULL); // actual == 0
char *buf = malloc(100);
actual = malloc_allocated_size(buf); // actual >= 100
memset(buf, 0, actual); // initialize all alocated memory
buf = realloc(buf, 200);
actual = malloc_allocated_size(buf); // actual >= 200
actual = malloc_allocated_size(buf + 50); // UNDEFINED BEHAVIOR (interior pointer)
int n;
actual = malloc_allocated_size(&n); // UNDEFINED BEHAVIOR (automatic storage)
free(buf);
actual = malloc_allocated_size(buf); // UNDEFINED BEHAVIOR (freed pointer)
}
すでに同様のものはいろいろな名前で実装されているらしい(知らなかった)
| Platform | Function | Header |
|---|---|---|
| macOS/iOS | malloc_size | <malloc/malloc.h> |
| OpenBSD | malloc_size | <stdlib.h> |
| FreenBSD | malloc_usable_size | <malloc_np.h> |
| Linux(glibc) | malloc_usable_size | <malloc.h> |
| Windwos(MSVC) | _msize | <malloc.h> |
| jemalloc | malloc_usable_size | <jmalloc/jmalloc.h> |
| mimalloc | ml_usable_size | <mimalloc.h> |
新刊近刊
プログラマーのための圏論
『プログラマーのための圏論』
— Yoshiki Sato (@phys_yoshiki) April 21, 2026
コードで学ぶ、プログラマーのための圏論入門
・C++とHaskellのコードを使って、圏論の概念を解説した
・数学書のような定理⇒証明の繰り返しではなく、プログラマーの慣れている技術書な解説としたhttps://t.co/SpV3tIk3Kk pic.twitter.com/lBcrTZI5C5
プログラマーのための圏論 | Bartosz Milewski, 北川 雅裕, 松田 一孝
〈本書のポイント〉
- C++とHaskellのコードを使って、圏論の概念を解説した
- 数学書のような定理⇒証明の繰り返しではなく、プログラマーの慣れている技術書な解説とした
ふむ。
冒険者カールの地球ダンジョン
作者は、ネコイベントで猫の似顔絵を描いて生計を立てていたらしいです。
— Shinichi OSHIBUCHI (@CptBuchi) April 21, 2026
コロナになってネコイベントがなくなって、困って専業の作家になった人
と中原さんがおっしゃってました。
これかな? 3月に出たばかりか
- 冒険者カールの地球ダンジョン 1: 宇宙人襲来! 飼い猫とダンジョンに放りこまれたんだが? (ハヤカワ文庫SF) : マット・ディニマン: 本
- 冒険者カールの地球ダンジョン 2: 銀河生配信! デスゲームでめざせフォロワー爆増 (ハヤカワ文庫SF) (ハヤカワ文庫SF SFテ 14-2) | マット・ディニマン |本 | 通販 | Amazon
怪奇大作戦
怪奇大作戦 池上遼一版 | 池上 遼一 |本 | 通販 | Amazon
気になる
awk
gawk
あまりの話の通じなさにarnoldが…😓
Re: [Security] Stack-based buffer overflow in readdir extension (sprintf
!@#$%^&*()
I am sssssssooooooooo tired….
This is what I mean by inconsisencies. snprintf() includes the NUL in its computations to not overwrite the buffer but doesn’t include it in the count returned.
- Re: [Security] Stack-based buffer overflow in readdir extension (sprintf
- RE: [Security] Stack-based buffer overflow in readdir extension (sprintf