Mikael Brockman retweeted
As a grown man I no longer have ‘nightmares’, where I’m scared by something, but rather ‘sadmares’, which cause me to wake up filled with an incredible and inexorable sense of melancholy and loss
mbrock.github.io/filnix/fil-… initial port slows it down around 10x, now pursuing optimization
if you have tokens to spare, consider having your agents use github.com/mbrock/filnix as a base camp for porting and verifying some important or amusing C/C++ packages building with Fil-C for memory safety
Opus and Sol are both great at working on ports and the repo mostly has enough guidance for them to figure things out, also has a decent setup for @AmpCode
if you want to check against known CVEs or get blocked otherwise, use GLM 5.3 or Kimi K3
Mikael Brockman retweeted
Just looking at that PHP patch I’m starting to get the sense that there might be more like this. If you can afford it, it’s probably not the worst idea to run it via fil-C for the foreseeable future.
memory safe PHP 8.4.25 built with Fil-C as Docker images (compatible with official php images) and as a single relocatable directory for Linux that doesn’t depend on any system libraries
github.com/mbrock/filnix/rel…
Mikael Brockman retweeted
Fil-PHP
未知のメモリ脆弱性も自動的に防げる(実証済み)。
ドキュメント内で、最新のPHP 8.4.27で修正された2つの重大な脆弱性(CVE-2026-109618 / 109619)を、あえて修正前の古いバージョン(8.4.25)のFil-PHPにぶつけるテストを実行。
結果として、普通のPHPならそのまま攻撃が通ってしまうところを、Fil-PHPは見事に検知し、Fil-C panic(強制終了)を起こして攻撃を水際で完全遮断。つまり、脆弱性を事前に知らなくても、メモリ破壊による乗っ取りは防げることが証明。
そして、2022年に公式サポートが終了し、本来なら危険すぎるPHP 7.4もFil-Cでビルド。過去の有名な未修正バグ(unserialize() のUse-After-Free)を突かれても、Fil-PHPなら即座にパニックを起こしてデータ流出を阻止可能。
一方で、実際のWebサイトで動かそうとすると、以下のような現実のデメリットを受け入れる必要性もある。
速度が1.5倍〜4倍遅くなる。
ドキュメントにPHP runs 1.5 to 4 times slowerと明記。さらに、安全のためにPHP独自の高速メモリ管理(Zendアロケータ)をオフにしてシステムアロケータを使っているため、メモリ割り当てが激しいコードではさらに約2倍遅くなる。
攻撃を仕掛けてきた瞬間、Fil-Cは安全のためにプロセスを即座に落とすという挙動(意図的に落とす)。攻撃は防げるが、何度も攻撃を繰り返すとサイトがずっとサーバーダウン(DoS状態)したままになり、サービスが使い物にならなくなる。
ドキュメントでも強調されているが、Fil-Cが防げるのはあくまでメモリのバグだけ。PHPのコード自体に不備がある SQLインジェクション、認証バイパス、パスワードの漏えいなどの論理的な欠陥は、普通のPHPと全く同じようにそのままハッキングされてしまう。
Fil-PHP fixes this btw github.com/mbrock/filnix/blo…
Fil-PHP fixes this btw github.com/mbrock/filnix/blo…
Leaving this here, PHP 8.5.12 security patch is incomplete. ( needs further validation )
Readers added context they thought people might want to know
Unvalidated AI output (author admits in replies: omp with glm5.3 + ds4), not a lab result. Its screenshot says both CVEs are fixed; the 'surviving paths' need unserialize() of attacker data or an app LFI. Patch per php.net: php.net/archive/2026.p…
Amp is built by a team of 21, with revenue the size of competitors that have 30, 40 or 50 times the staff.
“This is what a lot of other companies in the future will look like.” — @sqs
21 people, a single meeting a week, no quarterly goals, no pull requests, no mandatory code review, no titles (except one dictator), a hundred releases a day, bugs fixed in minutes, famous for killing features.
@sqs and @thorstenball on how the Amp team works:
















