ECMAScript仕様輪読会 #89
前回: ECMAScript仕様輪読会 #88
Cosenseの招待リンク: https://scrapbox.io/projects/esspec/invitations/85b96c9fa718ce5185e307196ed8fb53
connpass: https://esspec.connpass.com/
Discord: https://discord.gg/59S3y6weQj
ES Spec Draft: https://tc39.es/ecma262/
multipage: https://tc39.es/ecma262/multipage/
資料: https://speakerdeck.com/syumai/ecmascriptshi-yang-wodu-munonibi-yao-nazhi-shi-daiziesutoban
読み物リスト
Twitter hashtag: #esspec
便利ツール
esspec-memo: https://tars0x9752.github.io/esspec-memo/esspec.html
Scrapbox Codeblock Generator: https://vzvu3k6k.github.io/scrapbox-codeblock/
TC39 Terminology: https://github.com/tc39/how-we-work/blob/main/terminology.md
esmeta playground: https://es-meta.github.io/playground/
時事ネタ
JSConf JPまで1ヶ月切りましたね
自己紹介 (近況報告)
syumai syumai.icon
Twitter: https://twitter.com/__syumai GitHub: https://github.com/syumai
Go / TSを書いて暮らしてます
Hono Conferenceの司会をやりました
http://honoconf.dev/
あと、Asakusa.goというイベントを開催
https://asakusago.connpass.com/event/369325/
iwatsurut
とくに、イベントもなく過ごしています。
igrep(山本悠滋)
https://github.com/igrep/
新宿御苑.wasm https://shinjukugyoen.connpass.com/event/371150/ でLTした
https://the.igreque.info/slides/2025-10-19-shinjuku-gyoen-wasm#(1)
1ヶ月ほど苦戦した末、Node.jsにバグレポを送った https://github.com/nodejs/node/issues/60415
前回のあらすじ
https://gemini.google.com/share/d6db1e178069
今回のメモ
Math.clz32
count leading zeroes
code:js
// 00000000000000000000000000000001
console.log(Math.clz32(1));
// 予想される結果: 31
読むのが難しい文
The cases which could can be handled explicitly by adjusting the mantissa of the binary32 value so that it is the value which would be produced by performing the initial cast under roundTiesToOdd.
+0と-0の大小
code:js
const a = +0;
undefined
const b = -0;
undefined
a
0
b
-0
a === b
true
a > b
false
b > a
false
Math.max() -> -Infinity
Infinityが単位元なので
Math.min() -> Infinity