ときどきの雑記帖 RE* (新南口)
勇気のしるし
アクシデント
実は先週の土曜日からブロードバンドアクセスができない状態になってまして、ついさっきようやく復旧。 そのあおりで日曜日(10/31)にアップロードすべく準備していたファイルが中途半端なところで止まってしまった (現在書き直し中)。 いやあネットにつながらないと積読が解消できていいなあ(謎)。
4Gなスマートフォンはあるんだけど、前回の機種更新のときに 契約内容からテザリングを外しちゃったのだよね。 家の近くにあったネットカフェも(たぶん)新型コロナウイルス流行のあおりで根こそぎ閉店しちゃったしねえ。 まあなんかしら非常時に使える手段を用意しておくべきかもしれん。
今週のしずえさん
「非常口を表すサインにいるあの人の名前は?」
替え歌
「勇気のしるし」の歌詞の、 ジャパニーズビジネスマンの部分をジャパニーズプログラマーに、 北京モスクワパリニューヨークをウィズウルティマドラゴンクエストに変えて、 「寸劇」の「YesかNoか」を「バグか仕様か」に置き換えた 替え歌があったんだけど、断片的にしか思い出せない…
No Starch Press
これを含めて何種類かTシャツがあるのだけど日本にも発送してくれるんだろうか?
Robot Logo T-Shirt | No Starch Press
citizen developer
大企業では 2023 年までに専門家でない「市民開発者」の割合が 8 割を超えるとの予測 | スラド デベロッパー
「市民開発者」というのがどうもしっくりこないのでちょっと調べた。
参照元にもあるように元はアメリカの某社が言う citizen developer から来たものらしい。
”CitizenDeveloper(市民開発者)”と共に実現する真の価値創造とは?【コールセンターマネジメントTIPS】| Genesys
Definition of Citizen Developer - IT Glossary | Gartner
A citizen developer is an employee who creates application capabilities for consumption by themselves or others, using tools that are not actively forbidden by IT or business units. A citizen developer is a persona, not a title or targeted role. They report to a business unit or function other than IT.
All citizen developers are business technologists. However, all business technologists are not necessarily citizen developers.
There is no required designation of proficiency or time allocation for citizen developers but they must be legal employees of an organization.
んでまあ、citizen → 市民と脊髄反射で日本語にしたくなるけど 例によって「ちょっと待てそれ」案件じゃないすかねえ。これ。
- citizen は、「市民」だけじゃない!! | みせすいんぐりっしゅ 名古屋 英語のあれやこれや
- citizenの意味・使い方・読み方 | Weblio英和辞書
- Citizen Definition & Meaning | Dictionary.com
more than
Gatsby 4がリリースされた。人気の静的サイトジェネレータの最新バージョンである。コンテンツを配信するための新しい方法とともに、 開発者のビルドスピードを向上できる。
Gatsbyのような静的サイトジェネレータは、近年普及してきた。開発者やコンテンツクリエータに対して、 事前にHTMLコンテンツを生成することで、データベースを必要とせずにWebサイトを提供する高速で安全な方法を提供するためだ。
なんか違和感のあるタイトルだなあと思ったので(ry
Gatsby 4 - More Than a Static Content Generator
Gatsby 4, the latest iteration of the popular static site generator, is now out, offering developers improved build speeds alongside new ways for delivering content.
Static site generators like Gatsby became popular in recent years as they offer developers and content creators a fast and secure way of serving websites without the need for a database by generating the HTML content beforehand.
ここでの more than はよくある使い方のアレではなく (にしたって動詞にはならんような…>~を超える)
more thanの意味・使い方・読み方 | Weblio英和辞書
It was more than an accident. それは単に事故と言って済ませられないものだった.
gcc
起点が見つけられないのだけど(一か月ほどの前のとあるツイートだったような)、
gcc(Compiler CollectionではなくCコンパイラーの方ね)の #pragma
に関するとある機能を
「イースターエッグ」と表現しているものがあって、
それを見て「そんな『カワイイ』代物だったかあれ」
と思ったら
GCCイースターエッグ - Qiita
や
GCC Easter Egg: C++ Undefined Defined Behavior ≫ Feross.org
のような記事もあったのか。
まあそれはそれとして、
#pragma and GCC [LWN.net] や Ian Lance Taylor - Re: #pragma once を見ると
I believe that gcc was actually the first compiler to implement “#pragma once”. It was added back in 1989 in gcc 1.35 by RMS. It is, perhaps, ironic that it is now considered to be a Microsoft extension.
Then in 1991 RMS added support for automatically detecting when a header file puts all the non-comment text inside #ifndef/#define/ #endif. When that happens, and gcc sees another #include for the same header file, and the relevant macro is #defined, gcc will skip reading the header file entirely. That first appeared in gcc 2.0. Given that ability, RMS decided that there was no need to support #pragma once, and, since he doesn’t like #pragma (or at least didn’t at the time), he changed #pragma once at that time to issue an unavoidable warning. Note that #pragma once still worked; it just issued a warning.
But #pragma once was still used in practice, so the warning was removed by Jason Merrill in 2003, for gcc 3.3.
In short, #pragma once works fine today. What makes you think that it doesn’t work?
等々。
#pragma once
はObjective-Cから来たものだったと思うけど
どうだったかなあ(自信なし)。まあかなり早い段階から
GCCに取り込まれていたけど>Objective-C
ただ、(GCCにおけるObjective-Cの)最初の実装はNeXTからのコントリビュートじゃなかったかなあ (その際にもひと悶着あったような)。
んで、rmsが「#pragma once
許せねえ」(#pragma
そのものだったかも)で
実装したのがここでいう「イースターエッグ」だったと記憶してるんだけど
調べるの面倒(ry
git
git のコード読みも絶賛停滞中ですが、 こういう方面から行くのもいいのか…な?
awk でgit
ところでこれに関連したHacker Newsで見かけたこれ
I forget where I read it but Brian Kernighan said, at some point, the lack of na… | Hacker News
I forget where I read it but Brian Kernighan said, at some point, the lack of namespaces in original Awk was probably the biggest mistake that prevented bigger adoption in large projects. Now that we have it, I’m hoping to see a brilliant IDE surface in the near future.
awkが書かれたのがいつの時代だと思ってるんだろう…>the biggest mistake
git internal
POSIX_ME_HARDER
以前にちょこっと書いたPOSIX_ME_HARDER に関連した話題。
最近よくネタ元にさせていただいている例の方の投稿 POSIXはUNIXに必要な最低限の仕様ではなかった ? 真のUNIXを定義していた標準規格 System V Interface Definition (SVID) の話 - Qiita から。
POSIX mandates 512-byte default block sizes for the df and du utilities, reflecting the typical size of blocks on disks. When Richard Stallman and the GNU team were implementing POSIX for the GNU operating system, they objected to this on the grounds that most people think in terms of 1024 byte (or 1 KiB) blocks. The environment variable POSIX_ME_HARDER was introduced to allow the user to force the standards-compliant behaviour.[15] The variable name was later changed to POSIXLY_CORRECT.[16] This variable is now also used for a number of other behaviour quirks.
最初はここからだったのか。
立て続けに世論調査の電話がかかってきた。いずれも自動音声のヤツ。
— スダ (@sudamin) October 29, 2021
後学のためにと1回だけ付き合ってみたが、びっくりするほどまどろっこしくて普通の感性の持ち主なら途中で投げ出すと思う。
なので、恐らくアレは「根気強くて、かつヒマな人」にサンプルが偏っているはず。
ウチ(の固定電話)にもかかってきました>その手の電話
自動音声が流れてきた瞬間に切っちゃうんだけど そんなにひどいのか…
UTF-8 が勝利したことによって、UTF-8 以外の方式にいかなるつらみがあったのかという話が継承されなくなっているなぁと感じた。「EUC-JP では『海』 (b3 a4) を検索した際に『ここ』(a4 b3 a4 b3) にマッチしてしまう」みたいな話、10年前のインターネットだと普通に入門者が知る機会があったのに
— はすじょい (hsjoihs) @ Kernel/VM 現地参加 (@hsjoihs) October 28, 2021
j*
Not only is the Internet dead, it’s starting to smell really bad.:2021年11月03日分
それとjkanji/jhira/jkataが「名前が好ましくない」はちょっと意図が汲み取れないですね、これらの名前がポータブルなのか?という意味と解釈した上で回答すると、これらの日本語locale固有の文字クラスは
とか
あと/usr/share/i18n/locale/ja_JPというlocale定義ファイルはあくまでソースファイルなので、こいつに記述しただけでは使えないのだ。 こいつらをlocaledef(1)コマンドに食わせてLinuxなら/usr/lib/locale/ja_JP/LC_*あるいは/usr/lib/locale/locale-archiveというデータベースファイルを作成する必要がある。
の話は改めて書きまする(ご指摘・ツッコミ感謝)。
後者についてちょっとだけ書くと、あれが「ソースファイル」ってのは理解してた(つもりな)んですよ。 まあ wctype | Microsoft Docs IBM 資料 - IBM Documentation とか iswctype() — 文字プロパティーのテスト - IBM Documentation をすっかり忘れていたって話なんですが。
書く前にも wctype.h - IBM Documentation にどんな関数があるか確かめたはずなんだがなあ。