ときどきの雑記帖 RE* (新南口)
2024-01-17
昨日は気力が尽き果てて以下略で、タイトル考える余裕もない(笑
空母対空母
「金返せ!」鳴り物入りで就役、でも期待ハズレだった空母3選 ジェット機運用できてもトラブル続き | 乗りものニュース- (3)
肝心なときに動けなかった「ベインティシンコ・デ・マヨ」
1982年4月に始まったフォークランド戦争では、かつての持ち主であるイギリス海軍が保有する軽空母「ハーミーズ」 「インヴィンシブル」の2隻と、第2次世界大戦に続き史上2例目の空母対空母の海戦が起こるとの下馬評が多く上がるなか、 ここでもオランダ時代に損傷した動力機関が問題となり出撃ができない状態となります。
太平洋戦争でも空母対空母の海戦は何度かあったはず(珊瑚海、ミッドウェー、南太平洋等々)だけど なぜ「史上2例目」?
コメント欄
知ってる? Excel、覚えておくと便利な関数:基本を解説(5/5 ページ) - ITmedia ビジネスオンライン のコメント欄で
さすがにITMediaはこれくらいの関数は全部知っている人対象のメディアだと思っていました。
こういうのを使う場面にでくわさないで生きてきたデザイン畑の人間も読んでますので……
こんなコメントが連続してたのにちょっとウケた
awk
gawk
Add a comment to gawkapi.h suggesting that do_flags should be a bitmask if we ever change it again. というコミットを見たら
diff --git a/gawkapi.h b/gawkapi.h
index bf3aba9..a956804 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -496,6 +496,12 @@ typedef struct gawk_api {
* These can change on the fly as things happen within gawk.
* Currently only do_lint is prone to change, but we reserve
* the right to allow the others to do so also.
+ *
+ * N.B. If we ever again need to add an additional do_flags value,
+ * it would be wise to convert this from an array to a bitmask. If
+ * we add a new do_flags value and bump DO_FLAGS_SIZE, then it requires
+ * us to increment the ABI version. If we use a bitmask instead, then
+ * we will be free to add new flags without breaking ABI compatibility.
*/
#define DO_FLAGS_SIZE 7
awk_const int do_flags[DO_FLAGS_SIZE];
なんてのがあって、そういやextensionの作りがガラッと変わってから あまりその辺見てなかったよなあ ということで
gawkapi.h - gawk.git - gawk を見てみた
#define DO_FLAGS_SIZE 7
awk_const int do_flags[DO_FLAGS_SIZE];
/* Use these as indices into do_flags[] array to check the values */
#define gawk_do_lint 0
#define gawk_do_traditional 1
#define gawk_do_profile 2
#define gawk_do_sandbox 3
#define gawk_do_debug 4
#define gawk_do_mpfr 5
#define gawk_do_csv 6
なるほど
FORTRAN Compiler on IBM 704
今年に入ってから読む余裕がナッシング
glibc
Style_and_Conventions - glibc wiki
1.1. Symbols and Parenthesis
When invoking functions make sure there is a space between the symbol and the parenthesis, e.g.,
retval = foo (bar);
1.3. 79-Column Lines
All source files in glibc must use lines of fewer than 80 characters. The only exceptions are when it’s syntactically impossible to split a line for some reason.
2. Python usage conventions
Some supporting scripts are implemented in python.