ときどきの雑記帖 RE* (新南口)
Flatlander
ガンダム@テレ玉
今週は「復活のシャア」
いきなり空中換装の場面から。 Gパーツが出てきたので もう空中換装はやらないと思ってたらまだあった。
シャアが「大佐」になっているけど 何話か前のキシリアのセリフでは 「中佐」だったので、 その間に昇進するような手柄でも立てたんだろうか
そのほか
- さすがゴッグだなんともないぜ
- ハイパーハンマー
- Gブル
- ゴッグとの水中戦
などなど
5250
[B! 設定] 5250ユーザーが「VSCode」を使ってみた ~VSCodeの基本知識編~ - Qiita
5250ってなんだっけ? だったので調べた
これか。 PCで似たような型番のものがなかったっけ?
Odin
Odinと言うプログラム言語を、ご存じでしょうか?
最近、youtubeで海外のコンピューターサイエンティストの間でも、話題として取り上げられるようになってきました。
定期的にHNで見かける名前だったような。 あまり盛り上がってるようではなかったけど
C23
- GCC Preparing To Set C23 “GNU23” As Default C Language Version - Phoronix
- GCC Preparing To Set C23 “GNU23” As Default C Language Version : r/programming
redditにこんなコメントが
The embedded world will go insane when their K&R style code quits working. That world has been pretty happy to stay on C89 with c++ comments.
I’m pretty happy to see the nudge. Go, GCC!
新刊近刊
The Best of Both Worlds
- Python and R for the Modern Data Scientist - The Best of Both Worlds
- Python and R for the Modern Data Scientist: The Best of Both Worlds (English Edition) 電子書籍: Scavetta, Rick J., Angelov, Boyan: 洋書
書名よりもサブタイトル(?)に目が行った😄
規矩術
規矩術とはなんぞ? と調べてみると
規矩術(きくじゅつ、規矩法とも)は、木造大工の加工技術の一つで木造建物の仕口・継手その他接合部分など、 部材の形状全般を規および矩によって作り出す手法[1]。「規」(ぶんまわし)はコンパス、「矩」は曲尺(かねじゃく、 指矩(さしがね)とも)や定規を意味する[2]。
へー。
awk
busybox
BusyBox からawkに関連する変更部分を抜き出してみた
Changes since previous release:
- awk: do not infinitely recurse getvar_s() if CONVFMT is set to a numeric value
- awk: do not read ARGIND, only set it (gawk compat)
- awk: fix SEGV on read error in -f PROGFILE
- awk: fix backslash handling in sub() builtins
- awk: fix closing of non-opened file
- awk: fix handling of empty fields
- awk: fix splitting with default FS
- awk: fix subst code to handle “start of word” pattern correctly (needs REG_STARTEND)
- awk: fix use-after-realloc (CVE-2021-42380), closes 15601
- awk: get rid of one indirection level for iF (input file structure)
- awk: implement -E; do not reorder -f and -e
- awk: mktime() with no arguments is not allowed
- awk: printf(INVALID_FMT) prints it verbatim
- awk: remove a local variable “caching” a struct member
- awk: shrink - use setvar_sn() to set variables from non-NUL terminated strings
- awk: fix use after free (CVE-2023-42363)
- awk: fix segfault when compiled by clang
- awk: input numbers are never octal or hex (only program consts can be)
- awk: fix use after free (CVE-2022-30065)
- awk: fix printf %%
- awk: code shrink: avoid duplicate NUL checks and strlen()
- awk: never return NULL from awk_printf()
- awk: fix read beyond end of buffer
- awk: after preinc/dec, only allow variable, field ref, array ref, or another preinc/dec
- awk: allow empty functions with no arguments, disallow function redefinitions
- awk: disallow break/continue outside of loops
- awk: do not special-case “delete”
- awk: do not use a copy of g_progname for node->l.new_progname
- awk: document which hashes are used at what state (parse/execute)
- awk: enforce simple builtins’ argument number
- awk: evaluate all, even superfluous function args
- awk: fix beavior of “exit” without parameter
- awk: fix corner case in awk_printf
- awk: fix detection of VAR=VAL arguments
- awk: fix parsing of expressions such as “v (a)”
- awk: fix printf “%-10c”, 0
- awk: fix printf buffer overflow
- awk: fix use-after-free in “$BIGNUM1 $BIGGERNUM2” concat op
- awk: free unused parsing structures after parse is done
- awk: g_buf[] does not need a separate allocation
- awk: get rid of “move name one char back” trick in next_token()
- awk: in parsing, remove superfluous NEWLINE check; optimize builtin arg evaluation
- awk: make ltclass (“last token class”) local to next_token()
- awk: more efficient -f FILE
- awk: move locals deeper into scopes where they are used, no logic changes
- awk: move match() code out-of-line
- awk: rand() could return 1.0, fix this - should be in [0,1)
- awk: remove custom pool allocator for temporary awk variables
- awk: remove redundant check
- awk: replace incorrect use of union in undefined function check (no code changes)
- awk: restore strdup elision optimization in assignment
- awk: rewrite “print” logic a bit to make it clearer
- awk: rollback_token() + chain_group() == chain_until_rbrace()
- awk: shuffle globals for smaller offsets
- awk: simplify parsing of function declaration
- awk: simplify tests for operation class
- awk: support %F %a %A in printf
- awk: tighten parsing - disallow extra semicolons
- awk: tighten rules in action parsing
- awk: unbreak “cmd” | getline
- awk: unbreak “printf(’%c’) can output NUL” testcase
- awk: undo TI_PRINT, it introduced a bug (print with any redirect acting as printf)
- awk: use static tmpvars in main and exit
- awk: use smaller regmatch_t arrays, they had 2 elements for no apparent reason
- awk: use static tmpvars instead of nvalloc(1)ed ones
- awk: when parsing TC_FUNCTION token, eat its opening ‘(’
- awk: when parsing length(), simplify eating of LPAREN
- awk: allow printf(’%c’) to output NUL, closes 13486
- awk: FS regex matches only non-empty separators (gawk compat)
- awk: add a test that $NF is empty
- awk: fix dodgy multi-char separators splitting logic
- awk: disallow “str”++, closes bug 12981
- awk: fix more “length” cases, closes 12486
- awk: Guard pointer chasing when parsing ternary expressions.
- awk: Syntax error if delete isn’t given an arg.
- awk: Fix overly permissive func arg list parsing
- awk: fix testsuite
- awk: abort if NF set to negative value
- awk: do not allow $(-1)
- awk: fix ‘delete array[var–]’ decrementing var twice
- awk: stop on first non-option, closes 9861
- awk: fix segfault on for loop syntax error
- awk: support “length” form of “length()”. Closes 8371
- awk: fix handling of “if … break ; else …” - closes 7226
- awk: Fix handling of functions with empty body
- awk: Fix handling of functions with empty body
- awk: fix a bug in argc counting in recent change
- awk: fix length(array)
- awk: use “long long” as integer type, not “int”
- awk: optionally support -e AWK_PROG
- awk: fix FS assignment behavior. Closes 5108
- awk: make -F STR interpret escape sequences. Closes 5126
gawk
Restore C++ compilation. - gawk.git - gawk
diff --git a/support/localeinfo.h b/support/localeinfo.h
index 0ea6bb89..f8863edf 100644
--- a/support/localeinfo.h
+++ b/support/localeinfo.h
@@ -61,10 +61,6 @@ struct localeinfo
wint_t sbctowc[UCHAR_MAX + 1];
};
-#ifdef __cplusplus
-extern "C" {
-#endif // __cplusplus
-
extern void init_localeinfo (struct localeinfo *);
対応する閉じガッコの部分が差分に見当たらないのはなぜだろう? 前後の差分にも見当たらないし、 そもそも最新版にこの部分残っているような…
FORTRAN Compiler on IBM 704
ES1590 CLA FNSW 4F15741
TZE MTR000 4F15742 ****
CLA F-1 4F15743
SUB 5BLANS 4F15744
TZE MTR000 4F15745 ****
CLS EIFNO 4F15746
STO EIFNO 4F15747
TSX TET00,A 4F15748 TET00 MAKES ENTRIES IN THE TAPE TABLES.
HTR 0 4F15749
CLS EIFNO 4F15750
STO EIFNO 4F15751
TRA MTR000 4F15752 ****
*
ES1710 LXD BBOX,B 4F15753
CLA OPNWRD 4F15754
STO CIB-3,B 4F15755
TRA MTR000 4F15756 ****
TSX TET00,A
の前後で
CLS EIFNO
STO EIFNO
が繰り返されているので、 なんでこんなことを? としばらく悩んでしまったのだけど、 CLSってアキュムレーターに「符号を反転して」ロードする命令(Clear and Subtract)だから、 EIFNOの内容を符号反転してからTET00を呼び出し、 戻ってきたらもう一度符号反転して元に戻しているわけか。
何のために。というのは追いかけないけど たぶんインデックスレジスターの扱い (内容を単純に加算するのではなく、補数を加算(減算)する) に関係しているんだろう
Hugo メモ
我々プログラマーは何十年も前から「もうすぐプログラマーはいらなくなるねw」と言われてきたが、いつになったらメモリとスレッドとCPUキャッシュの最適化の仕事が奪われるんだろうな
— もりのあさ(Delice) (@forenoonM) October 15, 2024
御茶ノ水駅
工事の初期は神田川土手の草むしりから始まったと言われる伝説がある御茶ノ水駅改良工事、小学生が大学生になってしまう程度は実施されていますが、遂に場内の一部が解体され始めてました。終わりが1バイトぐらいは見えてきたかもしれませんね👀#御茶ノ水駅#御茶ノ水駅改良工事 pic.twitter.com/GypNukSfP7
— あすたりすく (@akiba_asterisk) October 16, 2024
秋葉原へ行くときは 御茶ノ水からというパターンをとらなくなったので 改良工事がどうなってるのか全然把握していないけど、 ずいぶん進んだんだねえ
化
まさかの奥羽本線一部非電化化。 pic.twitter.com/9EM3PTUTeJ
— lonely-bluesky (@hise_10000) October 18, 2024
「電化」の逆は「非電化化」?
電化されていないところを「非電化」区間とかいうのは知っていたけど 「非電化」にするから 「非電化化」という理屈はわからんでもないけど なんというかその
1%
大好きな数字のマジックに「1日の1%は約15分」がある。習慣形成にぴったりの数字で、「1%だけ頑張ろう」と自分を励ますのに、もう10年以上お世話になっているのですが、めんどくさがりだった私が「読書/筋トレ/将棋/仕事」が趣味の、意識高い能動マンになれたので、猛烈かつ強烈におすすめしたい。
— 川岸宏司(マグ) (@OnebookofMAG) October 17, 2024
一日は24時間、一時間は60分だから、 一日を分で表すと
24 * 60 = 1440
で1440分。その1%は14.4分。なるほど約15分。
π
結構真面目に「円周率1,000,000桁表」は増刷できない可能性があります。ネタ的に値上げができないから。非常に危うい(素数表はまだ30円くらいのマージンがある)
— 暗黒通信団 (@ankokudan) October 19, 2024
https://t.co/e1nkWjPZOX
この投稿に対するリプライに 「3141円にすれば」 というのがあってちょっとウケた