ときどきの雑記帖 RE* (新南口)
隣り合わせの灰と青春
Gift
Amazon 欲しいものリストからギフトが届く。 感謝。
録画忘れ
【府中本町→西船橋】
— NHK PR (@NHK_PR) February 18, 2024
20(火)午前1:27(※月曜深夜)からの総合テレビは「運転席からの風景 JR武蔵野線」をお送りします。
▼この映像が60分続きます▼ pic.twitter.com/jZom8otlg5
録画するの忘れたあああorz
あるある
Flashエミュレーター誕生のきっかけは別に「フラッシュ愛」じゃなかった 「swf2js」開発者の本音と数奇な運命【フォーカス】 | レバテックラボ(レバテックLAB)
今はそうでもないですが、公開後から2020年ごろにかけて、swf2jsには苦情じみた改修要請が多く寄せられました。 1か月に5件前後のペースで、「このFlashが動かないんだけど、この時期までに直してくれる?」といった具合で。
やっぱりそういう要求がくるんだねえ
make xxxx great again
C compiler written in TypeScript that targets X86 Real Mode : r/programming
I want to make DOS great again. For real!
クスッときた😄
中目黒ブックセンター
中目黒ブックセンターが3月に閉店 駅チカで親しまれた総合書店 - KAI-YOU.net
ときどき行っていたのだけど あそこも閉店してしまうのか…
dollar sign in code
ちょっと調べた。
c - (GCC) Dollar sign in printf format string - Stack Overflow
… the behavior is undefined. C11dr 7.21.6.1 9
The C spec discusses future library directions. Lower case letters may be added in the future and other characters may be used in extensions. Of course $ is not a lower case letter, so that is good for the future. It certainly fits the “other character” role as $ is not even part of the C character set.
Javaにもあったんだね。これ。
- java - What does the dollar sign ($) do in a printf format string? - Stack Overflow
- Formatting Numeric Print Output (The Java? Tutorials > Learning the Java Language > Numbers and Strings)
そのほかみつかったもの
- Formatting Strings (GNU Emacs Lisp Reference Manual)
- strfmon() - Convert monetary value to string - IBM Documentation
新刊近刊
ようやく明日『ハッキング・ラボのつくりかた 完全版』が発売になります。
— IPUSIRON (@ipusiron) February 19, 2024
現在AmazonのIT書籍ランキングでは35位。値段的に1桁は難しいので、健闘していると思います。
購入を迷っている方は、リアル書店で立ち読みしてみてください🙋♀️https://t.co/3yTLaD3fzj #ad
書店で見かけたのだけどその厚さにびっくりした (Amazonのページでもページ数を見ていなかった)
ABC
そして、パート3では、「ABC」「FRACTRAN」「Piet」「Brainfuck」「Befunge」という5つの難解プログラミング言語を解説しています。
やっぱり自分の思っていたのとは別のものだった。
なるほどこれはesolangだ
awk
gawk
csv処理時に参照するビットフラグ
awk.h:1186: DO_CSV = 0x10000, /* process comma-separated-value files */
awk.h:1201:#define do_csv (do_flags & DO_CSV)
field.c:122: if (do_csv)
field.c:1178: if (do_csv && (sep->re_flags & FS_DFLT) != 0 && nargs == 3) {
field.c:1301: if (! first_time && do_csv) {
gawkapi.c:1609: api_impl.do_flags[gawk_do_csv] = (do_csv ? 1 : 0);
gawkapi.h:509:#define gawk_do_csv 6
gawkapi.h:873:#define do_csv (api->do_flags[gawk_do_csv])
io.c:350: if (do_csv)
io.c:4172: if (! first_time && do_csv) {
io.c:4182: if (first_time || ! do_csv)
io.c:4191: if (first_time || ! do_csv)
io.c:4199: if (first_time || ! do_csv)
main.c:379: if (do_csv && do_posix)
main.c:1117: if (do_csv)
main.c:1684: do_flags |= DO_CSV;
たぶん、FSとFPATのようには動的に切り替えることはできない。
case 'k': // k is for "comma". it's a stretch, I know
do_flags |= DO_CSV;
break;
concat
Ruby Parser開発日誌 (17) - 演算子の優先度はいつ使われるのか - かねこにっき
まあたとえば
"1" 2 * 4
という式を
("1" 2) * 4
と解釈した方が使いやすいのか。それとも
"1" (2 * 4)
と解釈した方が使いやすいのか。 って話ですわね。
確かにexplicitな記号がないのは不都合もあるけど、
ASCIIの範囲では使えそうな記号は残ってないかな。
Perlだと文字列連結の演算子には.
を使っているけど。
ところでgawkの構文定義よりは もとのopengroupのページの少し後にある 構文定義見た方が分かりやすいような気がする
Table: Expressions in Decreasing Precedence in awk
Expressions describe computations used in patterns and actions. In the following table, valid expression operations are given in groups from highest precedence first to lowest precedence last, with equal-precedence operators grouped between horizontal lines. In expression evaluation, where the grammar is formally ambiguous, higher precedence operators shall be evaluated before lower precedence operators. In this table expr, expr1, expr2, and expr3 represent any expression, while lvalue represents any entity that can be assigned to (that is, on the left side of an assignment operator). The precise syntax of expressions is given in Grammar.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html#tag_20_06_13_16
expr : unary_expr
| non_unary_expr
;
unary_expr : '+' expr
| '-' expr
| unary_expr '^' expr
| unary_expr '*' expr
| unary_expr '/' expr
| unary_expr '%' expr
| unary_expr '+' expr
| unary_expr '-' expr
| unary_expr non_unary_expr
| unary_expr '<' expr
| unary_expr LE expr
| unary_expr NE expr
| unary_expr EQ expr
| unary_expr '>' expr
| unary_expr GE expr
| unary_expr '˜' expr
| unary_expr NO_MATCH expr
| unary_expr In NAME
| unary_expr AND newline_opt expr
| unary_expr OR newline_opt expr
| unary_expr '?' expr ':' expr
| unary_input_function
;
non_unary_expr : '(' expr ')'
| '!' expr
| non_unary_expr '^' expr
| non_unary_expr '*' expr
| non_unary_expr '/' expr
| non_unary_expr '%' expr
| non_unary_expr '+' expr
| non_unary_expr '-' expr
| non_unary_expr non_unary_expr
| non_unary_expr '<' expr
| non_unary_expr LE expr
| non_unary_expr NE expr
| non_unary_expr EQ expr
| non_unary_expr '>' expr
| non_unary_expr GE expr
| non_unary_expr '˜' expr
| non_unary_expr NO_MATCH expr
| non_unary_expr In NAME
| '(' multiple_expr_list ')' In NAME
| non_unary_expr AND newline_opt expr
| non_unary_expr OR newline_opt expr
| non_unary_expr '?' expr ':' expr
| NUMBER
| STRING
| lvalue
| ERE
| lvalue INCR
| lvalue DECR
| INCR lvalue
| DECR lvalue
| lvalue POW_ASSIGN expr
| lvalue MOD_ASSIGN expr
| lvalue MUL_ASSIGN expr
| lvalue DIV_ASSIGN expr
| lvalue ADD_ASSIGN expr
| lvalue SUB_ASSIGN expr
| lvalue '=' expr
| FUNC_NAME '(' expr_list_opt ')'
/* no white space allowed before '(' */
| BUILTIN_FUNC_NAME '(' expr_list_opt ')'
| BUILTIN_FUNC_NAME
| non_unary_input_function
;
notes.texi
notes.texi\doc - gawk.git - gawk をちまちま眺めているのだけど 興味深い記述がちらほら。
This will allow me to become ``Maintainer Emeritus’’. In that position I hope that I would still be contributing, but no longer bearing the main responsibility.
This won’t happen overnight. The code base is large and there’s a lot to come up to speed on, and I don’t expect miracles, we all have lives and day jobs. ``Slow but steady’’ will be the watch word.
考えてみればずいぶん長いことやってるものねえArnold。
Today, I feel like I have stretched the @command{awk} language as much as it should be (more really). I think future facilities should be added via the extension mechanism and not via language changes.
これはまあ長年見ていてそんなポリシーを持っているだろう感じはしていたな
Here are some the technical skills you’ll need as a maintainer. These all also apply pretty much across the board, not just to @command{gawk}.
に
@subsection @command{troff} @option{-man} --- semi-optional
というものがあり、それはなぜかといえば
The man pages are written in @command{troff}. A basic knowledge of how to write man pages is helpful. For the 5.3.0 release, I cut the @file{gawk.1} man page down in size by a lot, but it’s still very large.
The four-color reference card, @file{awkcard.pdf}, is written in @command{troff} and @command{tbl}. That’s a much harder thing to deal with. I suspect that once I ``retire’’ it can be dropped from the distribution, or marked as unmaintained.
スーパーリアル麻雀
スーパーリアル麻雀。噂には聞いていたものの初めてプレイしてみたが、1000点しか渡されないからリーチして流局になったらゲームオーバーというやべえゲームだった。これに100円入れてた人達マジですげえな
— ゴミクズバル使い (@4eajt) February 18, 2024
天和食らったことはないけど、大体2、3局目で満貫以上あがられて 終わりという感じだったかなあ。
デッキアップ
1/1パトレイバー、デッキアップイベント
— rocketengine (@rocketengine) February 18, 2024
2024年3月24日、京王線南大沢駅周辺「八王子・町田市民のつどい」
雨天時はパトレイバー展示は無し
ここ、普段パトレイバー保管してある場所の近くですねhttps://t.co/UFnSXbQVyf pic.twitter.com/LHrCX0fKsi
あの曲
(NHK BSを流しながら)「わが往くは星の大海」のプロローグのせいで,マーラーの3番を聴くと余計な雑念が混じるようになってしまってることを思いさせられる (>_<)
— 阪本さん(猫5種混合ワクチン💉×5済み) (@_o_o__r) February 18, 2024
たばこと塩の博物館
【4月7日まで|本所吾妻橋・押上】特別展「たばこ屋大百科」たばこと塩の博物館で、“ショーケース付きカウンター”たばこ屋の店頭ができるまでhttps://t.co/vsKRCkzv3d
— 東京美術館巡り【公式】 (@tokyoartmuseum) February 18, 2024
面白そうな
インフィニティコロッケそば
...フォロワーの皆様...聞こえますか...今...あなたの...脳内に...直接語りかけています...富士そば秋葉原店で...なんと...あの...インフィニティコロッケそばが...販売開始予定です...楽しみに...しててください...... pic.twitter.com/SBVpJeJNdZ
— 名代富士そば【公式】 (@fujisobar) February 18, 2024
秋葉原店限定かな
呪文
恋の呪文はスキトキメトキス
— PocketGriffon (@GriffonPocket) February 19, 2024
…って何かのアニメの曲だったよなぁ…とか思って電車で検索してたら、隣に座ってる女性から横目で見られて死ぬほど恥ずかしかったのだが!(TT)
S
コレ、何が驚くって、ワシらが今までずっとストロンガーのシンボルロゴだと思ってたあのSのデザインは、スズキのレーシングチームのロゴのデザインだったって事なんですよ笑 https://t.co/HJT5mWpS1Z
— 久保商店 (@KUBOSHOUTEN) February 18, 2024