ときどきの雑記帖 RE* (新南口)
2026-04-15
北斗の拳
どこまでやるんだろう? 1クールだとシンとの決着くらいか? と思って
ONAIR -アニメ『北斗の拳 -FIST OF THE NORTH STAR-』公式サイト-
を見るとキャラクターにレイやラオウ、トキがあるので 連続2クールとか?
初回4月10日(金)および4月17日(金)は2話連続特別編成!!
今週も2話連続らしい
京浜東北線日中メンテ
日中に作業するらしい
- 京浜東北線メンテナンス作業・工事のお知らせ:JR東日本
- メンテナンス業務変革を目的とした京浜東北線および横須賀線 日中時間帯における作業・工事の実施について - 20260217_to01.pdf
- 京浜東北線・横須賀線でも集中工事実施へ | 旅するマネージャーのブログ
Molotov cocktail
OpenAIのアルトマンCEO、批判的報道と自宅への火炎瓶事件についての個人ブログ公開 家族写真も - \ITmedia NEWS]
この事件に関してのものだと思うけどHNで
Sam Altman’s response to Molotov cocktail incident | Hacker News
Molotov cocktail て…😓
YAPC::Tokyo 2026
「YAPC::Tokyo 2026」、東京ビッグサイトで開催します!!! - YAPC::Japan 運営ブログ
メモ
お静かにライト
キングジム、声の大きさを光で知らせる「お静かにライト」 - Impress Watch
職場にちょっと欲しいなこれ(ただし役に立つかは微妙)😄
- Turing Completeness of GNU find | Hacker News
- Cl-kawa: Scheme on Java on Common Lisp | Hacker News
- Build Your Own Forth Interpreter | Hacker News
- C++ historical sources archive
Merkle hash
The Merkle hash trick for incremental updates
Merkle hash → Markle tree?
- 賢すぎるデータ構造:Merkle tree #ブロックチェーン - Qiita
- 【完全保存版】マークルツリー(Merkle Tree)について、しっかりと理解しよう!|ユウキ
- ハッシュ木 - Wikipedia
WG 14
| N3875 | 2026/04/12 | Colomar, comparable types |
| N3874 | 2026/04/12 | Thomas, April 2026 CFP teleconference agenda |
| N3873 | 2026/04/12 | Thomas, March 2026 CFP teleconference minutes |
| N3872 | 2026/04/12 | Douglas, Thread safe signals handling rev 3 |
| N3867 | 2026/04/12 | Gustedt, C semantics for contracts, v3 |
| N3866 | 2026/04/12 | Karl, Remove undefined behavior for non-basic source characters in source files (modified) |
| N3836 | 2026/04/12 | Celeste, Ottawa ON August 2026 venue information |
C semantics for contracts wちょっと読んでみると
Other features in our proposal that are different from C++ contracts:
- We allow declarations of ghost states, similar to declarations in if-statements.
- The name of the return variable in postconditions is fixed to _ReturnValue and cannot be annotated with attributes.
- We use keywords _Pre, _Post and _Inv for contracts. C++’s syntax with pre and post (plus inv) is available with function-like macros. Contracts cannot be annotated with attributes.
- We provide a macro (and function) stdc_contract_terminate that in general leads to the printing of a diagnostic and then to program termination.
こんなことが書かれていた
- [C++]契約プログラミング機能のこれまでとこれから - 地面を見下ろす少年の足蹴にされる私
- [C++]C++26 Contracts - 地面を見下ろす少年の足蹴にされる私
- Contract assertions (since C++26) - cppreference.com
- P2900R11 Contracts for C++
awk
gawk
MinRX regular expression failure
For example, the two lines
sub(/+[/]*-/, "") sub("+/-[ ]*", "")both cause a MinRX error (gawk quits parsing at the “offending” line).
細かいところでもいろいろ違いがありそう
glibc
glincのregexのバグ。 gawkはback referenceを使っていないのでセーフ(?)
- [PATCH] regex: fix false match with backrefs and $ anchor
- Re: [PATCH] posix: fix false regex match with backrefs and $ anchor
- Re: [PATCH] posix: fix false regex match with backrefs and $ anchor
Re: [PATCH] posix: fix false regex match with backrefs and $ anchor
パッチを見ると
diff --git a/lib/regexec.c b/lib/regexec.c
index c84ce1ef33..e09fc7698e 100644
--- a/lib/regexec.c
+++ b/lib/regexec.c
@@ -943,7 +943,10 @@ prune_impossible_nodes (re_match_context_t *mctx)
goto free_return;
}
} while (mctx->state_log[match_last] == NULL
- || !mctx->state_log[match_last]->halt);
+ || !mctx->state_log[match_last]->halt
+ || !check_halt_state_context (mctx,
+ mctx->state_log[match_last],
+ match_last));
halt_node = check_halt_state_context (mctx,
mctx->state_log[match_last],
match_last);
わかるようなわからんような。 glibcのregexはわかりづらいんだよねえ
/* Check NODE match the current context. */
static bool
check_halt_node_context (const re_dfa_t *dfa, Idx node, unsigned int context)
{
re_token_type_t type = dfa->nodes[node].type;
unsigned int constraint = dfa->nodes[node].constraint;
if (type != END_OF_RE)
return false;
if (!constraint)
return true;
if (NOT_SATISFY_NEXT_CONSTRAINT (constraint, context))
return false;
return true;
}
/* Check the halt state STATE match the current context.
Return 0 if not match, if the node, STATE has, is a halt node and
match the context, return the node. */
static Idx
check_halt_state_context (const re_match_context_t *mctx,
const re_dfastate_t *state, Idx idx)
{
Idx i;
unsigned int context;
DEBUG_ASSERT (state->halt);
context = re_string_context_at (&mctx->input, idx, mctx->eflags);
for (i = 0; i < state->nodes.nelem; ++i)
if (check_halt_node_context (mctx->dfa, state->nodes.elems[i], context))
return state->nodes.elems[i];
return 0;
}
glibc/posix/rxspencer/COPYRIGHT
— 株式会社石井マーク (@ishiimark_sign) April 13, 2026