
一个只会用 AI 写代码的独立开发者,著名谷歌相机 AGC、现代化 UI 引擎 MyPHP、pig(PHP+Ai+Agent) 开发者。
广东, 中华人民共和国
Joined October 2010
- Tweets2K
- Following966
- Followers597
- Likes171
兴致勃勃下载了 qwen4-35b-a3b,运行在 64g 内存的 Mac 上,high 思考程度,鹈鹕骑自行车这个水平,应该是不能拿来写代码了,准备的说,应该是什么都不敢让它做了,有点吓人
3
4
257
The Laravel team has completely lost it. They’ve been comparing PHP and Rust across different environments to promote a new version—a tactic as nauseating as Lei Jun’s claim that a Xiaomi laptop is thinner than a coin. This is supposed to be a "professional" comparison, yet the reality is that PHP vastly outperforms Rust in every single aspect.
Thanks to @OnlyAICanDo for calling this out on my Laravel benchmark:
"why fpm? no swoole or workerman? why why why"
Fair point. Comparing sync blocking (FPM) against event-loop runtimes isn't an apples-to-apples fight.
So I installed Swoole 6.3 + Workerman 5.2 (with libev/kqueue) and re-ran the benchmarks on the EXACT same Apple M4 Max + MySQL 8.4 setup (16 workers, 0 errors).
The results surprised me — in both directions:
1. They were right about PHP's event loop
Raw Workerman + PDO (no framework) hit:
• API Ping (c=50): 154,283 RPS — beating Laravel Rust (149,963)
• MySQL PK Lookup: 86,929 RPS — beating Laravel Rust (77,292)
• 1,000-User Spike: 13,055 RPS — neck-and-neck with Go & Rust
2. Workerman is the fastest Laravel PHP runtime I tested
Running the exact same Laravel 13 app (16w):
• PHP-FPM: 204 RPS
• Octane Swoole: 20,184 RPS (c=1000: 3,766)
• Octane FrankenPHP: 24,887 RPS (c=1000: 2,991)
• Laravel + Workerman (ev): 49,889 RPS (244x FPM! c=1000: 5,364)
3. Event loops kill boot cost — NOT Eloquent cost
The moment we hit Heavy ORM (2,000 posts + relations, 2.9 MB JSON), all three event-loop PHP runtimes hit the exact same ceiling:
• Octane Swoole: 23.6 RPS (1,282 MB RAM)
• Laravel + Workerman: 24.5 RPS (2,154 MB RAM)
• Octane FrankenPHP: 28.9 RPS (~697 MB RAM)
• Laravel Rust: 94.9 RPS (67 MB RAM)
• Laravel Go: 290.9 RPS (55 MB RAM — 10x PHP!)
4. One real-world gotcha
Running Workerman v5 with Swoole's auto-coroutine loop broke Laravel's shared PDO connection (`SQLSTATE[HY000] 2014`). Switching to `ev` (libev) fixed it with 0 errors. Native Go/Rust connection pools avoid this entire class of bugs by design.
Takeaway: PHP's event loops are genuinely fast. If you stay on PHP, Workerman / Octane is a massive upgrade over FPM. But once your bottleneck is ORM hydration, JSON serialization, and RAM under load, a compiled single binary (Go / Rust) is still in a different league.
Which PHP runtime are you actually running in production?
#Laravel #PHP #Swoole #Workerman
123
Bigkaka retweeted
Thanks to @OnlyAICanDo for calling this out on my Laravel benchmark:
"why fpm? no swoole or workerman? why why why"
Fair point. Comparing sync blocking (FPM) against event-loop runtimes isn't an apples-to-apples fight.
So I installed Swoole 6.3 + Workerman 5.2 (with libev/kqueue) and re-ran the benchmarks on the EXACT same Apple M4 Max + MySQL 8.4 setup (16 workers, 0 errors).
The results surprised me — in both directions:
1. They were right about PHP's event loop
Raw Workerman + PDO (no framework) hit:
• API Ping (c=50): 154,283 RPS — beating Laravel Rust (149,963)
• MySQL PK Lookup: 86,929 RPS — beating Laravel Rust (77,292)
• 1,000-User Spike: 13,055 RPS — neck-and-neck with Go & Rust
2. Workerman is the fastest Laravel PHP runtime I tested
Running the exact same Laravel 13 app (16w):
• PHP-FPM: 204 RPS
• Octane Swoole: 20,184 RPS (c=1000: 3,766)
• Octane FrankenPHP: 24,887 RPS (c=1000: 2,991)
• Laravel + Workerman (ev): 49,889 RPS (244x FPM! c=1000: 5,364)
3. Event loops kill boot cost — NOT Eloquent cost
The moment we hit Heavy ORM (2,000 posts + relations, 2.9 MB JSON), all three event-loop PHP runtimes hit the exact same ceiling:
• Octane Swoole: 23.6 RPS (1,282 MB RAM)
• Laravel + Workerman: 24.5 RPS (2,154 MB RAM)
• Octane FrankenPHP: 28.9 RPS (~697 MB RAM)
• Laravel Rust: 94.9 RPS (67 MB RAM)
• Laravel Go: 290.9 RPS (55 MB RAM — 10x PHP!)
4. One real-world gotcha
Running Workerman v5 with Swoole's auto-coroutine loop broke Laravel's shared PDO connection (`SQLSTATE[HY000] 2014`). Switching to `ev` (libev) fixed it with 0 errors. Native Go/Rust connection pools avoid this entire class of bugs by design.
Takeaway: PHP's event loops are genuinely fast. If you stay on PHP, Workerman / Octane is a massive upgrade over FPM. But once your bottleneck is ORM hydration, JSON serialization, and RAM under load, a compiled single binary (Go / Rust) is still in a different league.
Which PHP runtime are you actually running in production?
#Laravel #PHP #Swoole #Workerman
给 pig 增加了 mobile use,支持 iPhone 和 Android,支持主流 app
有兴趣的玩玩看 pigagent.dev/packages
83
终于破案为什么 GPT-6.2 Sol 有时候在 Agent 里「只写方案/只道歉,死活不调工具」了:
查了 1,449 条底层 Responses 报文,发现它在 medium 档位下遇到「开始 / 直接做」这类短句时,会触发 reasoning=0 的快答通道,第一个流式 item 直接打开 phase="final_answer"——在协议层直接堵死了后续挂接 tool_call 的可能;同时它的「反幻觉训练」又逼它在结尾诚实交代一句「目前还没修改代码」,下一轮自回归直接被上一轮的回复格式锁死在「表态 → 认错 → 不干活」的死循环里。
在刚发布的 pig v2.0.51 中做了无损修复:
1. 不改全局 SystemPrompt(避免限制 Claude / Gemini / DeepSeek 的能力);
2. 仅在 Responses 协议出站层针对带工具的 gpt-*-sol* 动态注入执行指令(不落盘 .jsonl、切模型零污染、100% 保留 Prompt Cache);
3. 默认锁定 high 思考档位,堵死 reasoning=0 快答通道。
2
149
Before we knew it, our Toolkit app surpassed 100,000 downloads! The next version will be rebuilt using MyPHP (myphp.ai)—stay tuned!
AGC Camera now features scene-adaptive Local Tone Mapping (LLF) that automatically adjusts dynamic range compression based on real lighting and highlight clipping:
☀️ Crisp whites & no blown-out highlights in bright sun
🏠 Natural contrast & grounded blacks indoors, true to what your eyes see
🌃 Clean night skies with rich shadow detail — no crushed blacks
Here’s our full LLF calibration table across scenes. You can fine-tune it per lens under Adjustments → Tune → Local Contrast. Feedback welcome! 📸
10
294
英语日常交流是没问题的,奈何看医生太多专业术语了,于是花了点时间用 MyPHP(MyPHP.ai)开发了个事实时翻译 app,采用 Gemini live 和 SSE 翻译流,基本上做到了实时,开源了,有兴趣的小伙伴去 myphp 示例库获取
2
218
Google Camera features a series of such codenames for almost every core function. Here are a few you might frequently encounter in the code or settings:
- Artemis (Goddess of the Hunt) → Focus Tracking
- Sabre (Saber/Sword) → Super Res Zoom
- Bento (Bento Box) → Ultrashort Highlight Recovery
- Cuttlefish (known for excellent low-light vision) → Night Sight
- Kepler (named after the astronomer) → Astrophotography
- Gouda (a type of cheese) → Portrait Mode
- Cyclops (the one-eyed giant) → Panorama
- Chameleon → Manual White Balance (WB) slider
- Ark → Pro manual controls and focus peaking (ark_controls / ARK_PEAK)
#AGCCamera #AndroidPhotography #ComputationalPhotography #HDRnet



















