ときどきの雑記帖 RE* (新南口)
October Theory
goo
gooポータル、11月に終了へ 1997年から続く老舗の退場に「ピーガガガ」懐かしむ声 - ITmedia NEWS
そういやne.jpとco.jpで違っていて、
co.jpの方にアクセスすると…
というのが最初のころ(いつまで?)はあったような。
かがくしてん
Newton Hub (ニュートンハブ) - Quizカガク視点(かがくしてん)
東急線の車内でみかけるやつ
ダーク・スター
『2001年宇宙の旅』のアンサーにして、『エイリアン』の元となった、ジョン・カーペンター監督デビュー作『ダーク・スター』予告編 | cinemacafe.net
50周年リバイバル上映が決定しているジョン・カーペンター監督のデビュー作『ダーク・スター』の予告編が解禁された。
『ダーク・スター』は12月12日(金)よりシネマート新宿ほかにて公開。
ふむ
Micron and Luon
- Are-we-fast-yet implementations in Oberon, C++, C, Pascal, Micron and Luon | Hacker News
- GitHub - rochus-keller/Are-we-fast-yet: Implementations of the Are-we-fast-yet benchmark suite in Oberon, C++, C, Pascal, Micron and Luon
最後の二つのMicronとLuonは聞き覚えのない名前だったので(ry
Micron
Luon
- Are-we-fast-yet/Luon at main - rochus-keller/Are-we-fast-yet · GitHub
- 新しい Luon プログラミング言語は、Oberon と Lua の概念を組み合わせ、LuaJIT をターゲットにしています。 : r/ProgrammingLanguages
- Luon programming language | Hacker News
- Luon/Readme.md at master · rochus-keller/Luon · GitHub
Java
新山祐介 (Yusuke Shinyama): “Java言語 26年間の軌跡。Java 1.0 から Jav…” - Mastodon 🐘
Java言語 26年間の軌跡。Java 1.0 から Java 25 までに追加された機能のうち、よかったもの、ダメだったものの個人的な論評。
項目と点数部分だけ抜き出してみた
Rating 26 years of Java changes – Neil Madden
- Java 2 – 1998
- The Collections Framework: 4/10
- Java 1.4 – 2002
- The assert keyword: 3/10
- Regular expressions: 9/10
- “New” I/O (NIO): 0/10
- Also notable in this release was the new crypto APIs: 1/10
- Java 5 – 2004
- Generics: 8/10.
- Annotations: 5/10
- Autoboxing: 7/10
- Enums: 6/10
- Vararg methods: 8/10
- The for-each loop: 8/10
- Static imports: 8/10
- Doug Lea’s java.util.concurrent etc: 10/10
- Java 6
- After the big bang of Java 5, Java 6 was mostly performance and VM improvements, I believe, so we had to wait until 2011 for more new language features.
- Java 7 – 2011
- Strings in switch: 1/10
- Try-with-resources: 10/10
- Diamond operator for type parameter inference: 6/10
- Binary literals and underscores in literals: 4/10
- Path and Filesystem APIs: 3/10
- Java 8 – 2014
- Lambdas: 4/10
- Streams: 1/10
- Java Time: 8/10
- Java 9 – 2017
- Modules: -10/10 (that’s minus 10!)
- jshell: 6/10
- Java 10 – 2018
- Local type inference (“var”): 9/10
- Java 11 – 2018
- New HTTP Client: 6/10
- This release also added TLS 1.3 support, along with djb-suite crypto algorithms. Yay. 9/10
- Java 12 – 2019
- Switch expressions: 6/10
- Java 13 – 2019
- Text blocks: 3/10
- Java 14 – 2020
- Pattern matching in instanceof: 4/10
- Records: 10/10
- Better error messages for NullPointerExceptions: 8/10
- Java 15 – 2020
- Sealed classes: 8/10
- EdDSA signatures: 8/10
- Java 16 – 2021
- Vector (SIMD) API: ?/10
- Java 17 – 2021
- Pattern matching switch: 7/10
- Java 18 – 2022
- UTF-8 by default: 10/10
- Java 19 – 2022
- Record patterns: 9/10
- Virtual threads: ?/10
- Java 21 – 2023
- String templates: 10/10 (if they ever arrive).
- Sequenced collections: 6/10
- Wildcards in patterns: 6/10
- Simplified console applications: 8/10
- This release also adds support for KEMs, although in the simplest possible form only. Meh. 4/10
- Java 22 – 2024
- The only significant change in this release is the ability to have statements before a call to super() in a constructor. Fine. 5/10
- Java 23 – 2024
- Primitive types in patterns: 7/10
- Markdown javadoc comments: 1/10
- Java 24 – 2024
- Java 25 – 2025
- Stable values: 7/10?
- PEM encoding of cryptographic objects: 7/10
まあおおむね同意?
miniml perfect hash
- Modern Perfect Hashing : r/programming
- Steinar H. Gunderson
- Modern Perfect Hashing | Hacker News
- Steinar H. Gunderson
- Modern perfect hashing for strings
- [2506.06536] Modern Minimal Perfect Hashing: A Survey
WG 14
構造体/共用体の先頭メンバー
Changes: Introduce a normative guarantee that, within any structure object, the address of the structure and the address of its first member are equal.
Analysis:
The C standard guarantees pointer representation uniformity in section 6.2.5 and discusses pointers in 6.3.2.3 but does not explicitly state that a pointer to a struct and a pointer to its first member must compare equal. This omission creates ambiguity: most implementations assume zero offset for the first member, but the text does not require it. Formalizing this rule removes any doubt and codifies an expected practice
これって今まで明確に決まってなかったのかと思ったけど、 最適化の関係でメンバー(フィールド)の入れ替えを許す/許さない とかにも関わってくるのか。
あと、C++でvtableが構造体(クラス)の先頭に置くのを マイクロソフトかボーランドが特許にしてたような(かなりあやふやな記憶)
YOLO
But pervasive security vulnerabilities mean that the traditional “YOLO” approach to C compilation is a bad idea for software that has to handle untrusted input, such as Web browsing or email.
YOLOってなんじゃろ?
「You only live once」の略で、「人生は一度きり」という意味です。SNSでも見かけることの多いスラングです。
【物体検出手法の歴史 : YOLOの紹介】 #DeepLearning - Qiita
YOLOというのはもともと"You only live once”「人生一度きり」の頭文字をとったスラングで, これをYOLOの著者であるJoseph Redmon氏は"You Only Look Once"「見るのは一度きり」という風に文字ってモデルを名付けました.
新刊近刊
関ヶ原
コミック乱で連載の「大乱関ヶ原」が今月発売号で完結したのだけど (あとすこし続くものかと思ってた) 関ヶ原と言えばこんな本が出るらしい。
出版社: 講談社 (2025/10/23)
星野之宣50周年珠玉SF選集
Amazon.co.jp: 星野之宣50周年珠玉SF選集 刹那 : 星野 之宣: 本
数学者に「終活」という解はない
「NHKの数学講座」で奇抜な数学者が披露した「伝説の講義」…視聴率が取れない教育番組で「驚異的な視聴率」を叩き出せたワケ(秋山 仁) | +αオンライン | 講談社
本屋で見かけてパラパラと眺めてみたら面白そうだったので 忘れなければ買うつもり(そのときは買っていく余裕なかったのよ)
数学者に「終活」という解はない (講談社+α新書 895-1C) : 秋山 仁: 本
awk
gawk
Remove never-documented support for tawk extension delete(a). - gawk.git - gawk
これ(delete(配列変数)で配列をクリア)って ドキュメントに記載なかった?
diff --git a/ChangeLog b/ChangeLog
index 813248c9..c2064ccb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-10-28 Arnold D. Robbins <arnold@skeeve.com>
+
+ * awkgram.y: Remove never-documented support for tawk extension
+ `delete(a)' and lint warnings for regexp modifiers. Tawk is dead,
+ it's time to bury the corpse.
+
このスレッド one other possible –lint issue でのやりとりが発端ぽいけど、 中身をきちんと追いかけてないので よくわからん
あー、引数を囲むカッコのあるなしで違う? たしかにカッコつきの方はドキュメントにはない
All the elements of an array may be deleted with a single statement by leaving off the subscript in the delete statement, as follows:
delete arrayUsing this version of the delete statement is about three times more efficient than the equivalent loop that deletes each element one at a time.
This form of the delete statement is also supported by BWK awk and mawk, as well as by a number of other implementations.
| LEX_DELETE NAME { sub_counter = 0; } delete_subscript_list
{
char *arr = $2->lextok;
$2->opcode = Op_push_array;
$2->memory = variable($2->source_line, arr, Node_var_new);
if (! do_posix && ! do_traditional) {
if ($2->memory == symbol_table)
fatal(_("`delete' is not allowed with SYMTAB"));
else if ($2->memory == func_table)
fatal(_("`delete' is not allowed with FUNCTAB"));
}
if ($4 == NULL) {
/*
* As of September 2012, POSIX has added support
* for `delete array'. See:
* http://austingroupbugs.net/view.php?id=544
*
* Thanks to Nathan Weeks for the initiative.
*
* Thus we no longer warn or check do_posix.
* Also, since BWK awk supports it, we don't have to
* check do_traditional either.
*/
$1->expr_count = 0;
$$ = list_append(list_create($2), $1);
} else {
$1->expr_count = sub_counter;
$$ = list_append(list_append($4, $2), $1);
}
}
| LEX_DELETE '(' NAME ')'
/*
* this is for tawk compatibility. maybe the warnings
* should always be done.
*/
{
static bool warned = false;
char *arr = $3->lextok;
if (do_lint && ! warned) {
warned = true;
lintwarn_ln($1->source_line,
_("`delete(array)' is a non-portable tawk extension"));
}
if (do_traditional) {
error_ln($1->source_line,
_("`delete(array)' is a non-portable tawk extension"));
}
$3->memory = variable($3->source_line, arr, Node_var_new);
$3->opcode = Op_push_array;
$1->expr_count = 0;
$$ = list_append(list_create($3), $1);
if (! do_posix && ! do_traditional) {
if ($3->memory == symbol_table)
fatal(_("`delete' is not allowed with SYMTAB"));
else if ($3->memory == func_table)
fatal(_("`delete' is not allowed with FUNCTAB"));
}
}
なるほど。カッコなしの書き方はPOSIXにもあるけど、カッコつきの方はそうではない(tawk固有の拡張)ということなのね。
しかし懐かしい名前だ>tawk
2’s complement
これ、手法を丸暗記していて(私の場合は全ビット反転させて1を足す)、その理由をあまり考えたことがなかったですが、全ビット反転=円環を逆周り、1を足す=位置の微調整、という感じなんですかね? https://t.co/1bebhy5pG1
— はけた@Excelスピルデータ整形テクニック (@excelspeedup) October 26, 2025
たしかビット反転は1の補数をとるのと同じことで、 かつ2の補数は1の補数に1を加えたものと同じなので、
ビット反転 → 1加える
という手順で2の補数が求められる。 ということだったかと
メガドラ
1988年10月29日に発売されました。
— セガ公式アカウント🦔 (@SEGA_OFFICIAL) October 28, 2025
*¨.:。+゚*•.¸ 本日は #メガドライブ の誕生日 *゚+。:.゚•.¸¸
Happy birthday, "#MEGADRIVE" 37 years ago today, the MEGADRIVE launched🎂 pic.twitter.com/D5Lk5Khdd3