ときどきの雑記帖 RE* (新南口)
暗夜行路
解体キングダム
当初10/4の放送予定が10/11になったのはいいとして、 取り上げる内容はタワークレーンじゃなくなったのはなぜorz
んが、実は過去放送されてたものだった? (それでも観てなかったけど(たぶん))
「謎の巨大建造物を解体せよ!」 - 解体キングダム - NHK
積む/詰む
アクセントが気になるシリーズ。
「積む」と「詰む」はどちらも「つむ」だけど、 アクセントは違うものだと思ったので 「詰む」を「積む」と同じアクセントで 言っているのを聞いてびっくりした(本日一回目)
NHKの番組で聞いたから 自分が間違って覚えていたか? と思って調べてみると
- 『詰む』という動詞の発音について -次の一手がうてないといった意味で、詰む- | OKWAVE
- 「詰む」って言葉を「詰↑む↓」(ツムツムのつむのイントネーション)… - Yahoo!知恵袋
- 「詰んだ」と「積んだ」の発音
- 詰む - 広辞苑無料検索 NHK日本語発音アクセント辞典
やっぱり(地域による違いはありそうだが) 自分の記憶は間違ってはいなかったっぽい。 そして同じような違和感を持っている人はそれなりにいるらしい。
目薬の容器
最近まで知らなかったシリーズ
容器をつかんだ指に力を入れなくても 底の部分を軽く押すだけで溶液が出てくると聞いて、 早速試してみたら確かにそうだったので 「おおー」となった。
渋谷
あの辺りもまたかなり変わるんですなあ。
渋谷サクラステージ竣工で桜丘の交通環境変更へ JR線上空を横断する通路も - シブヤ経済新聞
日経××
「Ruby存続が自社のメリット」、STORESはなぜ著名Ruby開発者を受け入れたのか | 日経クロステック(xTECH)
お。と思って読み始めたが
この記事は有料会員限定です。次ページでログインまたはお申し込みください。
で、「あー、はいはい」 と。 以前にも書いたように某氏が記事を書いている限り ユーザー登録、それも有料でなんてする気はないのだった。 ところで日経なんちゃらと言えば なんかあったらしく
「日経XTECH」ならまず誤記事なので用心しよう https://t.co/yUSbRwFM3Y
— Haruhiko Okumura (@h_okumura) October 4, 2023
😄
仕事猫@川崎
ちょっと見に行きたい>仕事猫
\川崎みなと祭の仕事猫出演情報追加!!/
— 国土交通省 関東地方整備局 港湾空港部 (@mlit_kanto_port) October 5, 2023
出演時間と場所が決まりました!
川崎マリエン会場の京浜港湾事務所ブースにいます!
是非お会いしましょう!✨🐱👈ヨシ!#くまみね #仕事猫 #国土交通省https://t.co/ezlRt0gz66 pic.twitter.com/j0ONxQWQrI
川崎マリエンってどこだろうと 調べてみたら東扇島か (行ったことないけど)
Curl
なにやらとんでもなさそうなのが
[注意喚起]
— FutureVuls-SSVC搭載の脆弱性管理クラウド (@futurevuls) October 4, 2023
10/11に、curl8.4.0がリリースされます。これはリリースサイクル外の提供で、curlの長い歴史の中で最悪の問題を修正した物、のになるそうです。
対象はcurl/libcurlで、作者によるseverityはHIGH。詳細は10/11迄開示しない、ようです。
- 2023-10-04 // SITUATIONAL AWARENESS // OSINT States High Severity curl and libcurl CVE Incoming on 11-October : r/crowdstrike
- Curl to be released October 11, includes severity HIGH CVE fix | Hacker News
- NVD - CVE-2023-33270
- CVE-2023-33270: DTS Monitoring Curl Check 特権昇格
- Severity HIGH security problem to be announced with curl 8.4.0 on Oct 11 · curl/curl · Discussion #12026 · GitHub
- Curl 8.4.0 will be released on October 11 – a fix for a severity HIGH CVE | Hacker News
- curl 8.4.0 containing high severity issue fix announced for October 11th | Hacker News
- Curl High Severity Vulnerability (Possibly worst in its history) | Hacker News
Open Source Consumption Manifesto
もうOSS保守者に頼らない OpenSSFが「オープンソース消費マニフェスト」を公開:Cybersecurity Dive - ITmedia エンタープライズ
「消費」というのが気になったので(ry
まずOpenSSFってどんな組織なの? と検索すると うぃきぺにエントリがあって
Open Source Security Foundation - Wikipedia
The Open Source Security Foundation (OpenSSF) is a cross-industry forum for collaborative improvement of open-source software security.[2][3] Part of the Linux Foundation, the OpenSSF works on various technical and educational initiatives to improve the security of the open-source software ecosystem.[4]
ふむ。
つぎに「オープンソース消費マニフェスト」やらが原文ではどうなっているか調べると
Open Source Consumption Manifesto
であるらしい。
Join Us in Adopting the Open Source Consumption Manifesto - Open Source Security Foundation
たしかにConsumption は消費と訳せるけども
- CONSUMPTION | 意味, Cambridge 英語辞書での定義
- しょうひ【消費】 | し | 辞典 | 学研キッズネット
- 消費(しょうひ)とは? 意味・読み方・使い方をわかりやすく解説 - goo国語辞書
どうも「引っかかる」んだよなあ
新刊近刊
C Brain Teasers
C Brain Teasers: Exercise Your Mind by Dan Gookin
You thought you knew C, but can you solve 25 puzzles in this popular programming language? Noted C programmer and author Dan Gookin provides a series of pointed questions, puzzles, and problems to keep your C programming skills sharp.
90ページと「薄い本」。 ちょっと興味をひかれる内容ではある。
インタプリタの作り方
Kindle版が出たらしい。
Kindle版が出たようです https://t.co/zRig7UgFHs
— Kunio Yoshikawa (@kneo_y) October 6, 2023
世界一流エンジニアの思考法
「怠惰であれ!」「早く失敗せよ」――
米マイクロソフトの現役ソフトウェアエンジニアの著者が、超巨大クラウドの開発の最前線で学んだ思考法とは? “三流プログラマ”でもできた〈生産性爆上がり〉の技術!
はてブのホットエントリでときおり見かける方ですね。 タイトルや惹句はさておき 発売されたらどんな感じなのかみてみよう
awk
gawkのリポジトリにあった Fix a bug combining –lint, –pretty and operator +. gawk.git - gawk という修正を見ていたのだけど 差分を見てもどういうバグだったのかよくわからない。 ということでメーリングリストを探すと
- fatal: internal error: file profile.c, line 1232: unexpected opcode Op_l
- Re: fatal: internal error: file profile.c, line 1232: unexpected opcode
- Re: fatal: internal error: file profile.c, line 1232: unexpected opcode
- Re: fatal: internal error: file profile.c, line 1232: unexpected opcode
というやり取りが見つかった。
要するにissueのタイトルにもあるけど
--lint
オプションと
--pretty
オプションを同時に指定していて
なおかつスクリプトで+
を使っていると発動するバグだったらしい。
awkgram.c:7871: case Op_lint_plus:
awkgram.c:8085: lint_plus = instruction(Op_lint_plus);
awkgram.y:5369: case Op_lint_plus:
awkgram.y:5583: lint_plus = instruction(Op_lint_plus);
eval.c:375: { "Op_lint_plus", NULL },
このOp_lint_plus
の扱いに抜けがあった。
ということなのだろう。
RS
RSを"“にしたときの動作がv7のawkではどうだったか という話。
https://github.com/v7unix/v7unix/blob/master/v7/usr/src/cmd/awk/lib.c#L58
if ((sep = **RS) == 0)
sep = '\n';
for (rr = record; ; ) {
for (; (c=getc(infile)) != sep && c != EOF; *rr++ = c)
;
if (**RS == sep || c == EOF)
break;
if ((c = getc(infile)) == '\n' || c == EOF) /* 2 in a row */
break;
*rr++ = '\n';
*rr++ = c;
}
なるほどこれならああいう動作になりますわな。 FSと同じくRSの動作もこのときにはもうあったわけであると。
OTA
awk: regular expression too big: out of space in set_gototab...
· Issue #199 · onetrueawk/awk- Correctly reset the goto table for a state. by millert · Pull Request #200 · onetrueawk/awk
これはアレか?(謎)と思ったけど、 コードをもう少し広い範囲で見ないと 何とも言えないので 今日のところはスルー。
paren
同じくgrepのリポジトリを眺めていて
grep: prefer nullptr to NULL : grep.git - grep
/* Do not use a fastmap with -i, to work around glibc Bug#20381. */
static_assert (UCHAR_MAX < IDX_MAX);
idx_t uchar_max = UCHAR_MAX;
- pat.fastmap = (syntax_only | match_icase) ? NULL : ximalloc (uchar_max + 1);
+ pat.fastmap = syntax_only | match_icase ? nullptr : ximalloc (uchar_max + 1);
これ、NULL
をnullptr
に置き換えるのは良いけど、
conditional operatprの条件の部分はカッコを残しておく方が好みだなあ。
優先順位的になくても問題ないんだろうけど。
boolean
つづき。 内部表現がどうとか 算術式の中に置けるか というのは脇によけておいて
One of the earliest programming languages to provide an explicit BOOLEAN data type is ALGOL 60 (1960) with values true and false and logical operators denoted by symbols ’ ∧ \wedge ’ (and), ’ ∨ \vee ’ (or), ’ ⊃ \supset ’ (implies), ’ ≡ \equiv ’ (equivalence), and ’ ¬ \neg ’ (not).
やはり(?)ALGOLが最初っぽい?
PL/I has no Boolean data type. Instead, comparison operators generate BIT(1) values; ‘0’B represents false and ‘1’B represents true. The operands of, e.g., &, |, ¬, are converted to bit strings and the operations are performed on each bit. The element-expression of an IF statement is true if any bit is 1.
PL/Iにはboolean型はなく、 比較演算での結果はtrueは1 falseは0となっていた。と。
Forth (programming language) has no Boolean type, it uses regular integers: value 0 (all bits low) represents false, and -1 (all bits high) represents true.
Forthでは-1がtrueだった。
Boolean data type - Wikipedia のref. 3の https://web.archive.org/web/20080406061108/http://www.fh-jena.de/~kleine/history/languages/Algol68-Report.pdf をみると、 p.177に
10.2.2 Operations on Boolean Operands
f) op abs = (bool a) int:(a|1|0);
という記述があった。
What Is a Boolean Data Type, and What Are Some Uses? — SitePoint
Booleans were first used commercially in 1951 by a Bell Labs engineer as a part of AN/FSQ-7, the massive computer that was used by the United States Air Force.
AN/FSQ-7とは? と思ったがこの辺か。
- ASCII.jp:業界に多大な影響を与えた現存メーカー 業界トップの座に君臨したIBM (2/3)
- 半自動式防空管制組織 - Wikipedia
- AN/FSQ-7 Combat Direction Central - Wikipedia
とはいえこれはプログラミング言語でどうこうという話ではないよねえ。
Is 1 true and 0 false in programming? - Quora
In Java, you need a special data type, boolean, for true and false. You cannot mix this with numbers. Java is generally quite strict with data types - this has some distinct advantages.
- Why is 0 evaluated to false and 1 to true in boolean? The question might sound a little dumb but I would really like to clear the concept. - Quora
- C++のfalseは0でtrueは非0だと思い込んでいた話 | PCの歯車
The bool represents a value, which could only be either true or false. If you cast a bool into an integer, true will be 1 and false will be 0.
- vb.net - Casting a boolean to an integer returns -1 for true? - Stack Overflow
- Algol 60 implementation (1964) [pdf] | Hacker News
- GitHub - rochus-keller/Algol60: A parser and code editor with syntax coloring for Algol 60 written in Qt
bash
[B! bash] 【衝撃の罠】bashスクリプトのパフォーマンス測定は、対話シェルでやっても無意味だ! - Qiita 【衝撃の罠】bashスクリプトのパフォーマンス測定は、対話シェルでやっても無意味だ! - Qiita
(略)どうなんだろうと思っていたら コメント欄で色々話が進んでいて、 一応の結論には達したらしい。
【衝撃の罠】bashスクリプトのパフォーマンス測定は、対話シェルでやっても無意味だ! - Qiita
bashでなぜか全体の実行時間が延びる件、調べてようやくすっきりした。
— angel (as ㌵㌤の猫) (@angel_p_57) October 3, 2023
…それにしても、全然顕在化しない環境、なぜそうなるのかが未だに謎だ。( ある程度推測はしてるけど )https://t.co/OSit3stGVy
FORTRAN Compiler on IBM 704
STATEC
まだSTATE Bでうだうだやっているところだけど STATE Cもみないといかんかなあ。
Build Server Protocol
コンパイラから情報を得るための共通プラットフォームとしてのBuild Server Protocolという規格が提案されているらしいhttps://t.co/84AkucaEy1
— ぷり (@puripuri2100) October 1, 2023
衛生的マクロシステム
三年前に衛生的マクロシステムの総まとめ的な論文出てるhttps://t.co/sl5eX1UCUF
— バトルプログラマーやまさ++ (@yamacirkit) October 1, 2023
へー、と思って見てみたら 予想以上のボリュームで(ry
C++
マイクロソフトから、安全なC/C++プログラム ビルドガイドがでたよー📢https://t.co/9geTbi1pYH
— Yurika (@EurekaBerry) September 25, 2023
Build reliable and secure C++ programs | Microsoft Learn
cat
Useless use of cat😃 pic.twitter.com/euDINUsqeo
— Linuxopsys (@linuxopsys) October 1, 2023
[ブプ]
ケブラー警察だ! https://t.co/SjmhuNq5eD
— AoiMoe a.k.aしお兄P (@AoiMoe) October 4, 2023
ケヴラーって書けば間違う奴いなくなると思うのだが、まあデュポンの日本語サイトも「ケブラー」って書いてるのでしょうがない
— AoiMoe a.k.aしお兄P (@AoiMoe) October 4, 2023
知らなかった>ケブラー
間違って覚えていたわ。
- 第564回:ケブラー とは - ケータイ Watch Watch
- ケプラー - Google 検索
-
「ケプラー」とは異なります。
-
- ケプラー - Wikipedia
-
「ケブラー」とは異なります。
-
Cate
https://t.co/gOoT3WJo5t
— chamekan (@chame) October 4, 2023
独自の哲学、つまりこれだったのか。
なるほどなあと。
3つ目のキャプチャが核心かも。
縮小C言語を超多種CPUやるときの。 pic.twitter.com/BBANuA6Zzt
3枚目はいわゆる呼出規約的なもので2枚目のプリミティブ型の統一と合わせて美しさを感じます、2枚目3枚目は最大公約数的な構成、たくさんの移植の下支えなぶぶんで5分刈りというかアーキテクチャを丸めてる感じを受けます。私は1枚目の部分がパフォーマンスに寄与して良いバランスな気がしています。 https://t.co/rjJ04imdXI
— gamix korin (@gamix255) October 4, 2023
Cate/manuals/cate.pdf at master · inufuto/Cate
C-like programming language compiler for retro CPUs
8bitプロセッサー(それも昔の)向けだとどうしてもいろいろ制限があるよねえ。 それでも6809辺りだとかなり自由度はあると思うけど。
ダイマクション・マップ
旧い世代は、ウルトラセブンの司令室にあったダイマクション地図を思い出すだろう。やっぱウルトラセブンの世界は最先端だよ。もちろん、見ていたころは気づきませんでした。 https://t.co/fsRj8Fp46kダイマクション地図 pic.twitter.com/sPweixNq9I
— ゆっくり文庫 (@trynext) February 2, 2018