KlarkC (@klarkc) header
KlarkC (@klarkc) profile picture

Well-typed programmer, hopefully.

Somewhere in Brazil
Joined March 2009
Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)Photo by KlarkC (@klarkc)
KlarkC retweeted
update for dependent Haskell
Friends don't let friends use dynamic types
1
9
68
1,505
BREAKING: The Riemann Hypothesis has been formally verified in Lean 4. The certificate is independent, the proof is machine-checked, and the result is indisputable. 175,000 files saved by using rfl. @QualiaQuanta
unavailable
12
6
4
79
22,548
KlarkC retweeted
这几天全网都在拿“过了 Lean 验证”当免死金牌,仿佛软件亮了绿灯,AI 写的黎曼猜想证明就 100% 不会错。 但就在今年 7 月,AI 刚搞出过一份“考拉兹猜想假反例”,硬是同时撞穿 Lean 官方内核和第三方检查器各自的漏洞,让两套系统双双亮了绿灯。😂 前天(11 月 23 号)MathOverflow 上有人发帖追问:万一作者存心耍诈,Lean 核验到底还有没有死角?结果参与这次黎曼核验的独立检查器作者 Chris Bailey 自己出来翻了这段黑历史,三天后那份假反例才被人揪出来打上补丁。 更微妙的是这次这 1,737 万行的黎曼证明。同一帖里,另一位开发者 Miroslav Olšák 提到,Lean 创始人亲手写的原版主内核,面对打包在一起的完整导出文件其实性能吃力、一直还没跑完,只能拆成单个文件分段过。 这次顶上场加速核验的几套新检查器(con-leche、con-ron 等),虽然自带数学上的“无 Bug 证明”,理论上已经极难再被钻内核空子,但它们写的时候同样请了 AI 帮忙,而且证明它们自己没毛病的,还是 Lean 这一套体系。 更何况 Chris Bailey 自己也摊了牌:所有检查器最终读的都是同一份导出的底层文件,导出工具和比对程序本身都在信任链里,谁也没法肉眼去查 61GB 的导出内容。 倒不是说这回的黎曼证明一定有鬼,只是当证明长到连顶级数学家都读不完,我们其实是在靠一整套机器工具链互相担保,去审 AI 写出来的天书。最后那道防线到底有多稳,真不好把话说死。
41
54
8
320
29,546
Whoever made this is a genius 😂😂
451
6,490
722
48,960
5,093,547
KlarkC retweeted
Hello my friends Haskell, PureScript and F# in a bit lesser extent. This is how I think of you too.
Theres too much hype around formal verification of AI generated code. It would be better to focus on getting more AI adoption for languages that are safer to write in the first place.
3
1
26
1,733
KlarkC retweeted
Agentic coding in 2026
211
926
210
7,369
1,033,824
Ekapkgs is now at 42,263 packages. Only 106k to go to catch up to Nixpkgs
I don't think people truly understand just how determined i am at making Nix the package manager of the future.
7
11
125
6,153
Announcing the ekapkgs cli tool. Eventually this will be intersection of nh, nom, home-manager, nixos-rebuild, a doctor tool, nix-serve, and cachix. It will be a server and client tool. Server - Handles dependency negotiation of a closure in a single round trip - Can aggregate s3, host's nix store, and eventually snix CAS backing stores - Mint unique push tokens - Ability to rotate signing keys (NAR signing can't be changed without upstream changes) Client - Will do a single dependency negotiation for ekapkgs caches - Handle user (home-manager) and system (nixos-rebuild) workflows - Search for packages, options, and files - A doctor tool to diagnose potential issues with Nix installation - Able to push closures using push tokens to a cache - Improved build and download introspection (nom) github.com/ekala-project/eka…
I don't think people truly understand just how determined i am at making Nix the package manager of the future.
9
6
1
104
7,746
Replying to @domenkozar
@domenkozar DSO caching really does help a lot if program initialization. github.com/NixOS/nixpkgs/pul… Very nice work, and something which Nix is uniquely positioned to enable. Why search RUN_PATHs if you know here your dependencies are located.
4
4
2
51
8,461
'Linux is full of crazy clowns'
235
270
252
3,391
1,335,307
KlarkC retweeted
We promised open weights for Qwen3.8. Now, time to meet them! 🎉 ⚡ Qwen3.8-27B: - A native multimodal dense model. With just 27B parameters, it outperforms Qwen3.7-Plus overall and shines in real-world coding & office workflows. - 262K native context, easily extendable to 1M tokens via YaRN. - Built for builders. Highly efficient, high-quality, and licensed under Apache 2.0. 🚀 The open weights for Qwen3.8-2.4T-A95B (Max-level) have also been released recently. Whether you're shipping lightweight applications with Qwen3.8-27B locally or building agents with Qwen3.8-2.4T-A95B, they're yours now! Download, deploy, and build something we haven't imagined yet. 👀👇 - Hugging Face: huggingface.co/collections/Q… - ModelScope: modelscope.cn/collections/Qw…
848
2,102
975
15,858
6,054,896
In proper languages like Haskell, OCaml, and Lean, you try to describe reality while fighting your own inability to fully grasp it. In languages like C, C++, and Zig, you try not to accidentally invoke undefined behavior while fighting some retarded decision a retard made years ago.
19
13
8
386
22,636
When using agents, ensure that everything that can be deterministic, is done with a deterministic tool. Don't try to get the poor agents to follow a deterministic process.
140
239
71
2,899
207,955
I feel like AI has massively vindicated my technology choices.
I’m shipping more stuff than ever with AI in Haskell and Nix, trying stuff like Miso and @supabase, and also getting zero config CI with NixCI… good times to be a Haskeller! 💪
9
2
76
5,092
KlarkC retweeted
labs optimizing for totally wrong things imo and that kinda makes me think back on what lecun says all the time about world models. i like the idea of a duplex voice model, but it’s trained for random pleasantries as Kevin says. the “aha” and “hmm”s are not great, they are forced. models do not understand the nature of a duplex communication, reward hacking towards what’s expected. which is weird. same with llms/coding models. latest models are forced to take actions, maybe artifacts of benchmaxxing. they seek rewards on implementation and rushing towards building things before understanding why and how’s.
Replying to @DaveShapi
Yeah, I prefer turn-based. Let me dump an idea, wait, and get a response. I don't want to be interrupted with pleasantries and confirmations.
2
7
1,466
Wait, what? A 35B MoE beats Kimi-K2.6 and DeepSeek-V4-pro on long-horizon agents. Agents-A1 👀 I need to read this! arXiv 2606.30616 🤯 arxiv.org/pdf/2606.30616
37
41
3
634
57,180
KlarkC retweeted
so cool! herdr is becoming an agent runtime. manage your agents from anywhere: your terminal, your vps, your phone; or apparently, your desk 👀
Replying to @herdrdev
@herdrdev I created a Stream Deck plugin to monitor my herdr agents from my desk :) github.com/timvdhoorn/stream…
1
2
39
10,420
My heuristic is that any diff an agent generates over ~1500 lines is too big and is indicative that the problem needs to be decomposed. This is my general pattern now for feature work: 1. Try to implement the whole feature, loosely guided. I call this the "draw the owl" prompt in reference to the meme. Expect garbage, you're going to get garbage. 2. If the diff is less than 1500 lines, review it and iterate normally. If the diff is more than 1500 lines, prompt the agent to decompose the problem into atomic, incremental, reviewable tasks. Simultaneously, do this yourself. 3. Agents will very often make these tasks way too specific to the shape they solved. You need to massage it into the right general shape. Do that. 4. Kick off new agents to work on those incremental things (as parallelized as possible). Apply the same rules. 5. At a certain, point, repeat the "draw the owl" prompt. At some point, you will get beneath your review-ability threshold. This has been producing consistently high quality, maintainable, reviewable chunks of code that have a good handoff to either merge as-is or human refinement. And with the latest frontier models at xhigh thinking, these are all slow enough that you can usually have multiple going concurrently while you are actively reviewing others or working on your own tasks. HITL (human-in-the-loop) agents are still super important, especially for feature work. Features touch the human boundary in terms of UI, API, etc. And net new stuff can introduce pathologies in the architecture that violate desired invariants (these should be represented in specs or tests but we aren't perfect!). I know a lot of the leading edge agentic discourse is about "loops" and agents driving agents continuously. I do some of that (will report on that later). But, in terms of raw daily get-shit-done type of work, this is my most rewarding pattern at the moment.
94
230
35
3,697
217,688
KlarkC retweeted
moshi + herdr shortcuts makes navigating multiple panes on mobile so easy i love it
10
7
2
184
14,971