Python 3.14 的 tail-call interpreter 的效能提升來自於繞過 LLVM 的 regression bug
前幾天 Python 圈子蠻熱鬧的一個主題:「Performance of the Python 3.14 tail-call interpreter」。 Python 3.14 實作了 tail-call interpreter (是個 opt-in 參數),官方測試發現效能在 benchmark 時有巨大的提升 (9%~15%),但文章作者覺得不合理,交叉測試了許多 case 後發現這是因為...
View ArticleTAWPA (台灣公益揭弊暨吹哨者保護協會) 網站被植入木馬
新聞的部分應該蠻好搜的,這邊抓個中央社的:「揭弊者協會網站疑有惡意程式 黃國昌:沒有資安外洩」。 網站現在已經離線了,但 Internet Archive 上的資訊已經足夠判斷,看起來至少首頁就被植了? 從 https://web.archive.org/web/*/https://www.tawpa.org/ 可以看到首頁上最近的兩筆是這兩個 archive (以寫這篇的當下):...
View Articlefork 出來的 curl-impersonate
原來的 lwthiker/curl-impersonate 已經超過一年沒更新了,不過看起來有其他人 fork 出來繼續維護 (以及開發):「lexiforest/curl-impersonate」。 目前支援的版本還算新,Chrome 支援 133 (目前 stable 最新版是四天前出的 134),Firefox 支援 135 (目前 stable 最新版是月初出的...
View ArticleDjango 5.2 支援 composite primary key
看到 Django 5.2 的公告,裡面列出了比較重大的改變,其中一個注意到的是支援 Composite (Compound) Primary Key 了:「Django 5.2 released」,完整的 release notes 則是在「Django 5.2 release notes」這邊可以看到。 就是因為這些 ORM library 不支援 compsite primary...
View ArticleValkey 對 hash 資料結構的改善
在 Lobsters 上看到「A new hash table」這篇,講 Valkey 對 hash 資料結構的改善。 其中 Valkey 是 Redis 在捨棄 open source license 後興起的專案。這類拋棄 open source license 的專案中,有個關鍵的點是「原廠」與「社群」之間的貢獻比率。 如果整個專案都只有「原廠」的人在參與,那 fork...
View Article只用 CSS 做到 BlurHash (LQIP) 的效果
在「Minimal CSS-only blurry image placeholders (leanrada.com)」這邊看到的純 CSS 技巧,原文則是在「Minimal CSS-only blurry image placeholders」這邊。 這邊提到的是 LQIP (Low-quality image...
View ArticleMercurial 也有接 Git 的 Plugin
前幾天在 Lobsters 上看到的:「mercurial / hg-git」。 看到才想到,既然 Git 這邊有 git-hg 這樣的工具 (而且有不同的人開發不同的版本) 讓 Git 使用者可以操作 Mercurial repository,反過來當然在 Mercurial 這邊也會有 hg-git 這樣的工具。 不同的是 Git 這邊有好幾套,沒有「官方」版本 (不過 git-svn...
View ArticleCloudflare Workers 提供的 MySQL/MariaDB 方案
在「Build global MySQL apps using Cloudflare Workers and Hyperdrive」這邊看到 Cloudflare 提供了 Cloudflare Workers 使用 MySQL/MariaDB 的方案。 本來以為是做出了 replicated globally 的系統,還在想要怎麼處理 ACID 問題,花了點時間看完才發現是弄出了一個類似...
View ArticleValkey 支援 Bloom Filters
先前在「Valkey 對 hash 資料結構的改善」這邊有提到會需要觀察 Valkey 的開發能量,後續就看到「Introducing Bloom Filters for Valkey」這篇了。 Redis 的 Bloom filter 是透過 module 的形式掛進去的:「Bloom filter」,這也是早期溫水煮青蛙的第一步,2018 年時從周邊的 module 換掉本來的 open...
View Article對影片中馬賽克的部分解碼
在 Hacker News 上「It's easier than ever to de-censor videos (jeffgeerling.com)」看到的,原文在「It's easier than ever to de-censor videos」這邊,在講影片中就算用「馬賽克」,但因為每個影格 (frame) 所馬賽克的範圍不同,是有可能反解出來的。 Jeff Geerling...
View Article