ときどきの雑記帖 RE* (新南口)
悪魔はふたたび
木枯らし一号
なんとかならんのかその名前
20周年
遠い目案件ひとつめ
TVアニメ「攻殻機動隊」20周年イベント、大塚明夫「最後かもと想像すると涙が」 | マイナビニュース
作中で起こる“笑い男事件”がいよいよ2024年2月に発生することが冗談めかして知らされると、会場からは笑いが起こった。
「ストラトス・フォー」全映像商品をコンプリートできるBD-BOX、20周年記念し | マイナビニュース
これも20年前になるのか
10周年
「有頂天家族」10周年記念でクラファン実施、偽右衛門選挙日の12月26日を記念日に - コミックナタリー
げ、もう10年前?
渋谷駅
今週末は山手線に注意。と。
山手線渋谷駅の線路・ホーム20cmアップ、駅前再開発が大きく前進へ|ニュースイッチ by 日刊工業新聞社
過去4回の切換工事で、埼京線のホームを山手線の近くに移設して高さを上げ、別々だった山手線の内・外回りのホームを統合した。 今回の工事で埼京線と山手線の高さがそろう。これにより、高さ2・6メートル以上で幅20メートル以上の平坦な東西自由通路を 線路の下に通せるようになる。
[B! 情報] 日本のアニメを発信する新拠点「アニメ東京ステーション」が池袋にオープン
やっぱり丸善の文具専門店があった場所とであっていたようだ。
Oberon
HNをみていたらOberonの名前が
Free Oberon: Cross-platform Oberon IDE | Hacker News
This project is cool as hell. I really appreciate that it has very straightforward instructions and takes no time to get up and running, it’s just a git clone and an install command.
cool as hell
なんて言い回しがあるのか
cool as hellの意味・使い方|英辞郎 on the WEB
- Free Oberon: https://free.oberon.org/en/
- Oberon+: https://news.ycombinator.com/item?id=35209102
- Code Examples: https://oberon-lang.github.io/
- Context: https://github.com/rochus-keller/Oberon
前述のHNのスレッドにあった別のスレッド The Oberon+ Programming Language | Hacker News にあったOberonじゃなくてAdaのコード片。
Ada 2012 has expression functions
declare
function f (i: Integer) returns Integer is ( i * 2 );
x : Integer;
begin
x := f(21);
end;
こんな関数の書き方ができるようになっていたのか。 あまり短くなっている(お手軽になっている)ようには見えないのは気のせい?😓
新刊近刊
『独学大全』(ダイヤモンド社さん発行)でご紹介いただいたことが切っ掛けで、当社は本書の再発行に向け、調整を続けておりました。当初の予定より遅れましたが、発行の目処が立ちました。まずはこの場をお借りして、アドバイスもいただきました読書猿さんに感謝です。誠にアリがとうございます。 pic.twitter.com/LCTVpnxzri
— 共立出版 アリがと蟻 (@1738310) October 12, 2023
証明って昔(中学・高校のころ)から大の苦手だったから どんな内容なのか気になる。
今日の時点でも旧版は結構な値段(22000JPY~)がついているな。 発売後にもう一度見てみよう(笑)
証明については
というのも(未読)。
The Art of Computer Programming Volume 4B
お、7巻4Bの日本語版が。
Amazon.co.jp: The Art of Computer Programming Volume 4B Combinatorial Algorithms Part 2 日本語版 出版社: KADOKAWA (2023/12/18)
12月18日の発売予定。と。
この巻では,組合せアルゴリズムの重要な部分となる「バックトラック」を解説します。 バックトラックの概論に続いて,厳密被覆問題などの解決に有効な手法となる「ダンシングリンク」を取り上げます。 後半では、計算機科学の全分野で基本的な問題の1つとなる「充足可能性(Satisfiability:SAT)」について詳解します。 バックトラックアルゴリズムを理解するために必要となる確率論の概論について,「数学的準備拾遺」が特別に用意されています。
この巻には1,000問を超える演習問題があり,アルゴリズムの本格的な理解に役立てることができるでしょう。
結構気になる話題。 ダンシングリンクはちょっと前にHN(かreddit)で 論文が紹介されていたような覚えがある。 どんな代物なのかよくわからなかったけど😓>ダンシングリンク
ちょいと検索してみると
- Knuth’s Algorithm XとDancing Linksの解説 - TopCoderとJ言語と時々F#
- お気楽 Common Lisp プログラミング入門
- Algorithms with Python / Dancing Links
- パラメトロン計算機: dancing links
こういうのもChatGPTやらに伺うのがよいのかしらん?
Do not use non-ASCII chars in sources
メモ。
- Do not use non-ASCII chars in sources by nobu · Pull Request #8845 · ruby/ruby
- Do not use non-ASCII chars in sources by nobu · Pull Request #8845 · ruby/ruby
この種の記号にはときどき煩わされているなあ。
LET
やっぱりHOPLにあった。
https://dl.acm.org/doi/pdf/10.1145/800025.1198404
BASIC Session
Chairman: Thomas Cheatham
Speaker: Thomas E. Kurtz
から。
3.1. BASIC, the First Edition
に次のような記述があった。
We now consider the individual “instructions.” The assignment statement required (and still requires) the word LET . We felt the assignment idea to be particularly tricky, and the word LET helped. LET X = X + 1 is easier for novices to understand than is X = X + 1. Furthermore, we felt it important that all BASIC statements begin with an English word.
これを読むと、=
という記号を使ったことよりも
代入(assugnment)という操作そのものに対して問題意識があったんじゃないか
と思われる。
とすると例のはてブにあったコメントは以下略。
最後の
all BASIC statements begin with an English word
(だけ)は明確に覚えていた😄
このほかLETが現れたところを見ていくと
3.4. BASIC, the Fourth Edition
The semicolon PRINT separator now produced contiguous printing. A TAB function was added, with the column positions numbered from 0 to 74. Multiple assignments in a single LET statement were allowed, as were assignments to subscripted variables having subscripted variables as subscripts
多重代入? >Multiple assignments in a single LET statement
3.6. BASIC, the Sixth Edition
The SEG$ function provides a substring, while the " & " causes string concatenation.
LEFT$/MID$/RIGHT$ではなくSEG$。
&
を使った文字列の連結はこのときからか。
5.2 Posteriori Evaluation
BASIC is truly a product of grass roots efforts. Hobbyists can and do write their own compilers, adding their own innovations. Rather than being a single language with dialects, BASIC is really a class of languages, all with a common core. Variations and features abound. From Dartmouth’s point of view, some languages called BASIC really shouldn’t be, since they violate one or more of our original criteria, although they may have borrowed other features. For instance, our dogma prohibits the optional LET, several statements on one line, and a single statement continued over several lines.
LETを省略できるようにしたり (コロンを使って)マルチステートメントが使えるようにした variantsにお怒りのようです。
最後のa single statement continued over several lines
が今一つピンとこないのだけど、行継続だろうか?
awk
OTA
Based on the bsd-features branch, I have completed work to fix some gensub, gsub, and sub problems. It also changes the interpretation of backslashes in gensub replacement text to match gawk’s behavior (there was already commentary documenting how another gensub argument is intended to be gawk-compatible).
bsd-features branchにはgensubが実装されているんだろうか? あとで見てみよう。
Consolidate sub and gsub in dosub by mpinjr · Pull Request #209 · onetrueawk/awk
こっちではgensubを省いた差分でPRが出されているようだ。
gawk
goawk
RTFM
久しぶりに見た😄 > RTFM
goawk CSV mode ignores specified field separator · Issue #218 · benhoyt/goawk
Hello,
running latest goawk version with:
goawk -i csv -F\; '{print $3}' FILE.csv
it ignores the -F parameter. It works without “-i csv”.
How can I specify custom field separator in csv mode?
My fault. RTFM.
goawk -i 'csv separator=;' '{print $3}' cf.txt
しかも自分に対しての発言。
CONVFMT
勝手に解説シリーズ(謎)
gawkで整数から微妙にずれた浮動小数点数を配列添字にしたときの挙動 #AWK - Qiita
これは以前にも取り上げたことのある、配列の添え字に整数を使ったときの 特別扱いによる挙動ですね。
@cindex dark corner @subentry @code{CONVFMT} variable
Strange results can occur if you set @code{CONVFMT} to a string that doesn't
tell @code{sprintf()} how to format floating-point numbers in a useful way.
For example, if you forget the @samp{%} in the format, @command{awk} converts
all numbers to the same constant string.
As a special case, if a number is an integer, then the result of converting
it to a string is @emph{always} an integer, no matter what the value of
@code{CONVFMT} may be. Given the following code fragment:
@example
CONVFMT = "%2.2f"
a = 12
b = a ""
@end example
@noindent
@code{b} has the value @code{"12"}, not @code{"12.00"}.
@value{DARKCORNER}
ところで手元にあるふるーいバージョン
gawk --ver GNU Awk 3.1.8(Oct 28 2010)
で、スクリプトをちょっと変えて
BEGIN {
#CONVFMT="%-7.6g";
print CONVFMT;
a[1] = 1;
a[2] = 2;
epsilon = 1;
for (i = 0; i <= 60; i++) {
j = 1 + epsilon;
epsilon *= 0.5;
printf "1+2**%-3d = " CONVFMT " %20.18f < %d >\n", -i, j, j, a[j];
}
}
試してみると…
%.6g
1+2**0 = 2 2.000000000000000000 < 2 >
1+2**-1 = 1.5 1.500000000000000000 < 0 >
1+2**-2 = 1.25 1.250000000000000000 < 0 >
1+2**-3 = 1.125 1.125000000000000000 < 0 >
1+2**-4 = 1.0625 1.062500000000000000 < 0 >
1+2**-5 = 1.03125 1.031250000000000000 < 0 >
1+2**-6 = 1.01563 1.015625000000000000 < 0 >
1+2**-7 = 1.00781 1.007812500000000000 < 0 >
1+2**-8 = 1.00391 1.003906250000000000 < 0 >
1+2**-9 = 1.00195 1.001953125000000000 < 0 >
1+2**-10 = 1.00098 1.000976562500000000 < 0 >
1+2**-11 = 1.00049 1.000488281250000000 < 0 >
1+2**-12 = 1.00024 1.000244140625000000 < 0 >
1+2**-13 = 1.00012 1.000122070312500000 < 0 >
1+2**-14 = 1.00006 1.000061035156250000 < 0 >
1+2**-15 = 1.00003 1.000030517578125000 < 0 >
1+2**-16 = 1.00002 1.000015258789062500 < 0 >
1+2**-17 = 1.00001 1.000007629394531200 < 0 >
1+2**-18 = 1 1.000003814697265600 < 1 >
1+2**-19 = 1 1.000001907348632800 < 1 >
1+2**-20 = 1 1.000000953674316400 < 1 >
1+2**-21 = 1 1.000000476837158200 < 1 >
1+2**-22 = 1 1.000000238418579100 < 1 >
1+2**-23 = 1 1.000000119209289600 < 1 >
1+2**-24 = 1 1.000000059604644800 < 1 >
1+2**-25 = 1 1.000000029802322400 < 1 >
1+2**-26 = 1 1.000000014901161200 < 1 >
1+2**-27 = 1 1.000000007450580600 < 1 >
1+2**-28 = 1 1.000000003725290300 < 1 >
1+2**-29 = 1 1.000000001862645100 < 1 >
1+2**-30 = 1 1.000000000931322600 < 1 >
1+2**-31 = 1 1.000000000465661300 < 1 >
1+2**-32 = 1 1.000000000232830600 < 1 >
1+2**-33 = 1 1.000000000116415300 < 1 >
1+2**-34 = 1 1.000000000058207700 < 1 >
1+2**-35 = 1 1.000000000029103800 < 1 >
1+2**-36 = 1 1.000000000014551900 < 1 >
1+2**-37 = 1 1.000000000007276000 < 1 >
1+2**-38 = 1 1.000000000003638000 < 1 >
1+2**-39 = 1 1.000000000001819000 < 1 >
1+2**-40 = 1 1.000000000000909500 < 1 >
1+2**-41 = 1 1.000000000000454700 < 1 >
1+2**-42 = 1 1.000000000000227400 < 1 >
1+2**-43 = 1 1.000000000000113700 < 1 >
1+2**-44 = 1 1.000000000000056800 < 1 >
1+2**-45 = 1 1.000000000000028400 < 1 >
1+2**-46 = 1 1.000000000000014200 < 1 >
1+2**-47 = 1 1.000000000000007100 < 1 >
1+2**-48 = 1 1.000000000000003600 < 1 >
1+2**-49 = 1 1.000000000000001800 < 1 >
1+2**-50 = 1 1.000000000000000900 < 1 >
1+2**-51 = 1 1.000000000000000400 < 1 >
1+2**-52 = 1 1.000000000000000200 < 1 >
1+2**-53 = 1 1.000000000000000000 < 1 >
1+2**-54 = 1 1.000000000000000000 < 1 >
1+2**-55 = 1 1.000000000000000000 < 1 >
1+2**-56 = 1 1.000000000000000000 < 1 >
1+2**-57 = 1 1.000000000000000000 < 1 >
1+2**-58 = 1 1.000000000000000000 < 1 >
1+2**-59 = 1 1.000000000000000000 < 1 >
1+2**-60 = 1 1.000000000000000000 < 1 >
あれ?
FORTRAN Compiler on IBM 704
STATE C で見かけた ちょっと面白い(わかりづらい)部分。
TRA PL0000 4F14673
*
*
PL1000 LXD PL1010,B SYM1 (S(I)) IS SOME S(J) 4F14674
PL1010 TXI PL1020,3,0 XA TO XA,XB 4F14675
*
PL1020 SXD PL1030,C 4F14676
PL1030 TXI PL1040,B,0 4F14677
PL1040 CAL SCRIPL,B 4F14678
PAX 0,C 4F14679
ANA MASK2 4F14680
SUB SCRIPL+2,A 4F14681
TZE PL1130 4F14682
*
CLA BETA,C 4F14683
PAX 0,C 4F14684
TRA PL1020 4F14685
*
*
PL1130 CAL SCRIPL+1,B 4F14686
ANA L(8) 4F14687
TRA PL0820 4F14688
*
*
PL1200 LXD PL1210,B SYM2 (S(I)) = SOME S(K) 4F14689
サカバンバスピス
【かわいい】サカバンバスピスのぬいぐるみがナムコ限定プライズとして再登場。虚無顔、独特のフォルムで人気な古代魚が11月第3週から順次展開https://t.co/gTMXH5F04B
— geek@akibablog (@akibablog) November 14, 2023
なんか妙にダンボーっぽさを感じる目と口だな(笑)
【かわいい】サカバンバスピスのぬいぐるみがナムコ限定プライズとして再登場。虚無顔、独特のフォルムで人気な古代魚が11月第3週から順次展開 | ゲーム・エンタメ最新情報のファミ通.com
SQLビルダー
SQLビルダー、完成👌 pic.twitter.com/pYCKVt69At
— ニチ|ゲムマ2023秋(土曜)ネ-26 (@nichi_DQX) October 27, 2023
お題に合ったSQL文を全員同じ11枚の手札から誰よりも早く正しく完成させる新作ボドゲ『SQLビルダー』
— あきらび@ボードゲーム日記(ブログ) (@akkiiy_rabbit) November 13, 2023
正解はお題カードの裏にある!最近SQL文を実行した人がお題の山からお題を捲る🤣ソロルールも有り!
ところでSQLって何? pic.twitter.com/k0drWHZ2Tc
BOOTH SQLビルダー - 揚げピーナッツ - BOOTH にもあったけど「在庫なし」か。
開催日 | 2023年12月9日(土) 11:00~17:00 |
(Dates) | 2023年12月10日(日) 11:00~17:00 |
あれ、これから?>ゲームマーケット2023秋
アークライトは、アナログゲーム国内最大規模イベント“ゲームマーケット2023秋”を、 2023年12月9日(土)~10日(日)に東京ビッグサイト西展示棟1、2ホールで開催する。
ふむ。 と言っても、今はあまり人口密度が高いところには行きたくないんだよなあ(わがまま)
だーれかさんがみつけた
ちいさいあーき
— kakiraちゃん (@kakira9618) November 13, 2023
ちいさいあーき
ちいさいあーき みーつけた
↑ mallocの歌