d01c2 (@folded_const) header
d01c2 (@folded_const) profile picture

Yet another applied PL engineer (KR/EN/JP)

Joined November 2023
Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)Photo by d01c2 (@folded_const)
d01c2 retweeted
Introducing Lattice, a local LaTeX workspace for your research. A paper is more than a .tex file: the papers you cite, notes, slides, Overleaf co-authors and now an AI agent. I wanted it all in one app, so I built it. Free to download, open source: leo1oel.github.io/lattice
37
145
22
1,301
91,536
d01c2 retweeted
一些粗浅口胡: 最近 agentic kernel generation 很火,因为 GPU Kernel 是一个很适合 LLM 设计优化的 workload。但是我认为 ML Compiler 上的变革只是序曲,这些变更将会普及到通用编译器中。 agent 时代的编译器可能会分成三个组件: (1/3)
After our kernel-agent experiments, we had to confront an uncomfortable question: Do we still need DSLs and ML compilers when agents can do it all? In short: We're still here! 😎 If you're curious why, here's our take: tvm.apache.org/2026/11/03/re… We've also rebuilt TIRx from the ground up as a shared DSL and compiler foundation for agentic kernel development.
6
5
76
7,920
In the age of agents, do we still need compilers at all, and if so, how do we design ML compilers for agents? Checkout take and effort on a ground up rebuild of a ML compiler foundation for the Agentic Era
After our kernel-agent experiments, we had to confront an uncomfortable question: Do we still need DSLs and ML compilers when agents can do it all? In short: We're still here! 😎 If you're curious why, here's our take: tvm.apache.org/2026/11/03/re… We've also rebuilt TIRx from the ground up as a shared DSL and compiler foundation for agentic kernel development.
6
12
2
97
33,603
d01c2 retweeted
First a CPU, then a GPU. A computer isn’t complete without storage. Meet qwenFS: Qwen3.5-2B with a filesystem compiled directly into its weights. Nothing runs outside the model. It adds 8 layers in front of Qwen’s own 24, using attention to hold the files and Gated DeltaNet state to hold the tables. Every save and read runs in the model’s own forward pass. A write stores its text in the copy layer’s attention log, keyed by file, version and offset. A read uses those same keys, so attention copies the text back exactly token by token.
Meet qwenGPU: Qwen3.5-2B with a SIMT GPU inside its weights, 45 compiled layers in front of Qwen’s own, using its Gated DeltaNet layers as registers and memory. It runs real CUDA in its forward passes. The host compiles the kernel to PTX and loads it, then the model writes every step of the launch itself: every register, branch and memory write. The GPU has 4-lane warps, a 4-stage pipeline, 15 registers per lane and 126 words of global memory, all held in DeltaNet state. Qwen generates each launch token by token, each record running one machine block for one warp.
84
151
46
1,826
134,039
d01c2 retweeted
Anthropic is releasing an open source library, FlashProve, for provable inference. It was measured on Llama 4 Maverick, a 400B-parameter mixture of experts model. Code: github.com/anthropics/FlashP… Blog post: anthropic.com/research/prova…
52
89
43
743
106,924
函数式的精髓不是函数,而在于类型系统。 map/filter/reduce 作为技术细节是次要的,换成 for-loop 也行。Local Mutation 也 Ok,甚至有 FBIP(Functional but In-Place)技术,进一步模糊了传统命令式/函数式的代码。 原博用同事秒看懂的案例,在 Agentic Coding 时代已经弱化了,不仅难以构成对函数式代码的攻击,甚至是反过来启示着—— 如果代码不需要被人类开发者秒看懂,甚至不是他们来写,函数式编程是否可以通过 AI Coding 普及? 找 null 案例很棒,但一来现在 AI 排障,报错日志对人的理解复杂度,不一定影响 AI 表现。 二来,函数式的精髓是通过类型建模,让一定区域(特别是 Core 区域)的代码,从类型检查上就拒绝 null,强迫 null 的代码位置从 core 外推到 shell。 这是一种根本上的解决问题的思路,如果一个问题反复发生,则将它外推,远离核心,最好是边界上的薄适配(Adapter),出错就被抓住,且影响范围小。 这个模式叫 Functional Core, Imperative Shell。 它几乎在所有软件层次中都存在。 在编程语言设计与实现层面, Purely functional programming language(如 Haskell)的 Purely 体现在代码里的 IO type 其实是 data,最外层有个 system wrapper 在反复解释 IO type 为外部副作用,并将副作用结果提纯后恢复/重跑程序(Agent Harness 也是这样哦)。 在宏观的软件架构层面,六边形架构/整洁架构,也呈现同样的模式。 掌握函数式编程的精髓,理解它背后的思想,在 Agent 时代也能发挥重要作用。 不要轻视函数式编程,在 AI 时代,它是更重要了。
很多刚刚掌握现代语言特性的年轻开发者,极度热衷于把业务逻辑压缩成一行极具美感的流式管道: 三层 map、接一个 flatMap、穿插两个三元运算符,最后用一个复杂的 reduce 收尾。 写完之后心满意足,觉得自己深得函数式编程精髓。 直到半年后的某天凌晨三点,线上突然抛出空指针异常,报警电话把你从睡梦中惊醒。 打开那一行凝聚了你全部智慧的优雅代码时,你会痛苦地发现: 你根本无法设置断点知道到底是哪一层 map 里的数据为 null; 堆栈跟踪里只留下一串毫无意义的匿名函数行号。 在现代工业软件开发里,代码被阅读、被排查、被修改的次数,远远超过它最初被写下的那一次。 老练的一线工程师在度过炫技期后,往往会极其自觉地回归到最朴素的风格: 写显式的 if err != nil、把复杂的长表达式拆解为带有明确语义的中间变量、提前做防御性 return。 这种代码看起来甚至有些枯燥乏味,但它能让半年后接手的同事在 30 秒内看懂逻辑,能在深夜排查故障时一眼看清每一个变量的状态。 在软件工程里,克制地使用智商,比放纵地炫耀语法高级得多。
9
26
4
209
23,447
This is a cool paper, but I think it's best thought of as Astra is surprisingly capable of doing old school mechanistic interpretability research rather than anything spooky. The things it's doing are clever, but typically exploiting structure in the data and using known method mechanistic interpretability techniques (which Astra was surely pretrained on), though it is better at this than I would have predicted! This is an exciting development for the prospects of ambitiously scaling interpretability or doing very laborious analysis like this, on more real models. However, I'm not holding my breath. This kind of analysis was pretty common up until about 2022, it largely fell out of favor because a lot of it is just exploiting fairly clean surface-level patterns that doesn't scale to the annoying complexity of real LLMs or which only works for the more simpler and superficial properties. And as far as I can tell, basically all the case studies here are just using a bag of interpretability tricks rather than anything spooky. The piece doesn't really update me on how far old school mech interp can go, just on how good LLMs are at it. It's very fun to see the creative solutions Astra came up with though!
We asked GPT-6 Astra to edit Qwen3.5-0.8B weights to improve math. It directly changed only 0.016% of weights, fixing 0.8B's reasoning loops & improving math up to 6x and even instruction following 3x, without gradients or training. We call this Weight-Space Programming: frontier LLMs can now natively read/write neural network weights! 🧵 Blog: rikiyat.github.io/blog/weigh…
Readers added context they thought people might want to know
LLM was given weights explicitly as text in prompt and used code/forward passes (per authors' logs) to ablate Qwen looping direction, a known thinking-mode issue per model card. Primarily fixed repetition in that mode, not general 'natively' improving weights/math. rikiyat.github.io/blog/weight-sp… github.com/RikiyaT/lm_und… huggingface.co/Qwen/Qwen3.5-0… huggingface.co/RikiyaT/Qwen3.…
53
164
36
1,862
103,731
We asked GPT-6 Astra to edit Qwen3.5-0.8B weights to improve math. It directly changed only 0.016% of weights, fixing 0.8B's reasoning loops & improving math up to 6x and even instruction following 3x, without gradients or training. We call this Weight-Space Programming: frontier LLMs can now natively read/write neural network weights! 🧵 Blog: rikiyat.github.io/blog/weigh…
Readers added context they thought people might want to know
LLM was given weights explicitly as text in prompt and used code/forward passes (per authors' logs) to ablate Qwen looping direction, a known thinking-mode issue per model card. Primarily fixed repetition in that mode, not general 'natively' improving weights/math. rikiyat.github.io/blog/weight-sp… github.com/RikiyaT/lm_und… huggingface.co/Qwen/Qwen3.5-0… huggingface.co/RikiyaT/Qwen3.…
2,358
7,276
5,724
55,931
9,833,273
d01c2 retweeted
I've been a casual contributor to @yukihiro_matz’s Spinel project, so I made a single page intro to the parts I found most interesting: - What it does - How it performs - Its development pace st0012.dev/spinel?v=1
1
13
3
93
7,286
d01c2 retweeted
⚠️ Security advisory: All JDKs are vulnerable to HTTPS impersonation due to the compromised eMudhra/emSign CA cert. Update your CI by pointing setup-java at Zulu (Temurin is not fully available yet) or manually distrusting the certificates. Full writeup: scala-lang.org/blog/jdk-cert…
2
33
3
148
16,048
1/3 A CPU inside an LLM is one thing, but running another LLM inside an LLM would be taking things a bit too far, wouldn't it? Anyways, here's an LLM running inside an LLM : QwenPU, an LLM (@karpathy's stories260k) running on an NPU compiled inside Qwen 3.5-4B's weights.
1/4 Meet Qwenputer: Qwen3.5-4B with a full RISC-V CPU inside its weights, using the model's own Gated DeltaNet layers as RAM. It runs C and MicroPython in its forward passes, no external runtime. On DeepMind math: base 55–90%, base + Python tool 95–100%, Qwenputer 97.5–100%.
153
258
115
2,241
175,888
Blazing-Fast Lambda Calculus via Metaprogramming: my ScalaDays 2026 talk is now an article. Scala 3's staging compiler turns a lambda-calculus interpreter into a JIT in a few dozen lines. In @Scalus3, it runs Cardano smart contracts ~3× faster than the Haskell VM 🧵
1
9
36
705
d01c2 retweeted
大叔还研究这呢?Anthropic 的这个 blog 有一个和我有关的故事,我可以分享一下: Anthropic 这篇文章里面提到的一个 case study Python interpreter 背后用的一个工具(Appendix里面),是 Brown PLT group 在2013年做的一个叫 lambda py 的语意,一个非常小,适合验证语意的语言,然后把 Python 的语意通过 “desugar” 的形式,“无损”转为 lambda py。后续操作只需要通过 lambda py 进行就行。 如果你知道这个 lambda py 是怎么来的,你一定会惊讶。2013 年,Brown CS 开了一门讲 Programming language 的网课。我那个时候人还在北京刚毕业 gap 了一年,因为很喜欢 compiler,OS等等,不管有用没用,每天下班之后跟他们上网课做作业,网课刚开始一千多人来自全球各地上。大作业之后除了Brown的学生,网课就只有几个人了(论持久战)。而这个网课的后续就是 lambda py。当时的助教带着我们几个人一起把剩下的 Python 语意(module system,metaclass 等等)全部转成 lambda py,写了论文发表,之后大家就散了。而我也机缘巧合从北京小跑到了 Brown 读书,讲课的老师做了我的导师,而我坐在了只在网课上见过的助教旁边。那个时候有点魔幻的感觉。他们今天也给我们发了邮件提起了这篇 blog。lambda py 在13年后的今天被重新用起来。旧事重提,很多事情就又想起来了。 现在的感觉是,过去只是人类力所不及,现在在 LLM 的助攻下,人类可以把过去的砖头全部用上。盖个楼,看这个楼有多高。
4
12
3
109
12,321
It is a weird weird year to be a formal methods expert. Some unorganized thoughts on the new @AnthropicAI and @theoremlabs post on formal verification (anthropic.com/research/forma…): - This is very cool. - The main innovation is verifying a later stage of the program. Normally provers take the source code, LLM it into a theorem language, and then prove that, which means you have to make assumptions about source semantics and compilation properties. It's very easy to make a mistake in translating and prove the wrong thing! What they instead do is compile the code into assembly, and then (if I understand this correctly), compile that assembly into a theorem language (which they call LPS). So as long as the compiler is faithful you can skip the whole divergence problem. - I'm glad they clarify that you still have to trust the translation process, the "hardware, OS, OCaml" compiler, the LPS model, and also assume that the program is single threaded with fixed memory. The single biggest source of errors in formally verified code is when the proof assumes something that isn't true in practice. It's really, really important to state your assumptions! - I'm not clear why they need to compile the fuzzer into the theorem. Is it to act as a description of valid inputs and workload? Maybe to embed assertions in as theorems? - Holy crap, 180 million lines of Rocq. Is that more Rocq than exists in the world already? I notice they say a 600,000 line proof corresponds to roughly 20k CPU instructions. That would be like, 1-2k lines of source code at most? Really goes to show how inefficient this approach is and how it only works because you can throw LLMs at the problem. - This, probably deliberately, doesn't address the single biggest gap in AI-based verification: AIs cannot come up with good properties. Doesn't matter if you're doing unit testing, property testing, formal verification. I always assumed this was a "frontier labs haven't trained for it yet" thing, but if Anthropic hasn't talked about that here, maybe they've tried and haven't been successful yet. That's interesting to me. Instead, they take a known universal property (this code doesn't crash or get flagged by UBsan) and prove that instead. Still very useful, but makes it harder to generalize to proving arbitrary things about arbitrary programs. - Anybody reading the official post should also read their expert review appendix (www-cdn.anthropic.com/files/…). It points out some interesting things, like the fact that most of the code the LLM wrote wasn't used in the proof (over one billion lines of Rocq), that they had to prove the equivalence between fuzzed and unfuzzed programs, and (this is most interesting), some experiments find that the LLM-method of proofwriting may not scale to more complex things. - Also read the description of LPS (github.com/theorem-labs/oss-…) to understand the limitations of the assembly -> Rocq compilation. In particular, it does not handle concurrency at all (which is one of the main use cases for formal methods!) or OS signals. Also it can't prove things about program arguments with slash characters, meaning they can prove stuff about `rm foo` but not `rm foo/bar`. - The official skill (github.com/theorem-labs/oss-…) doesn't tell us much about the nature of FM and AI. Probably too much for me to hope of any skill. - Some of the article's specific caveats and throat clearings make me think someone at Anthropic reads my stuff ( ͡° ͜ʖ ͡°)
38
125
11
851
199,569
d01c2 retweeted
it’s incredibly gratifying to see dependent types finally escaping the bubble and having their moment having the formal specification and implementation go hand in hand was always the way to go, and now LLMs have unlocked that for the non-experts
New on our Frontier Red Team blog: using Claude to formally verify software at large scale. Formal verification can prove that code is free of certain bugs, but historically it has only been feasible for small codebases (or required a lot of expert time). With AI models, however, this is beginning to change. In collaboration with @theoremlabs, we used Claude to prove security properties in over one hundred real-world open-source libraries over the span of a few weeks. Read our research in full here: anthropic.com/research/forma…
5
9
1
100
4,411
Disagree. Software was as good as was demanded of it. Much of this “slop” software had years of fuzzing/symbolic execution expended on it too. My guess is that this will continue to be true even when AI writes all code
We’re about to learn that most code written over the last 20 years was complete slop and most software developers were never that good
2
4
50
1,953
One day we'll dismiss programming languages that do not have dependent types just as today we dismiss programming languages which do not have sum types. I dream of that day.
16
26
4
288
9,529
어떤 기술의 전문가가 된다는 것은 "나는 매우 똑똑하고 문서에 있는 걸 전부 외우고 있다"보다는 "이거 가지고 고생을 너무 많이 해서 어느 이상한 부분을 어떻게 고쳐야 하는지를 알게 되었다"에 가까운 것 같다 - 번역
I'm convinced that being an expert in a technology is less "I am very smart and memorized the docs" and more "I struggled enough to know the workarounds to most of the weird parts"
2
1,150
33
908
d01c2 retweeted
Un investigador de Anthropic acaba de decirle a una sala llena de doctorandos que su plan de carrera ya no existe. La charla se titula "El fin del Antropoceno" y los datos son brutales: → El cómputo para entrenar modelos se multiplicó por 10 millones en la última década → La duración de las tareas que una IA completa sola se duplica cada pocos meses → Desde hace 7 meses los modelos resuelven problemas abiertos de Erdős que los matemáticos no habían logrado cerrar → En San Francisco, tener "timelines largos" significa pensar que la AGI llega en 10 años Su proyección: el cómputo de 2030 será 10.000 veces mayor que el de 2025. Todavía estamos al principio de la exponencial. Sus 3 consejos para los estudiantes: 1. Usa la IA cada día. Si estás sobre la exponencial, nunca te quedas atrás de ella. 2. Elige proyectos que mejoren cuando el cómputo escala. El resto quedará resuelto antes de que los termines. 3. Deja de planificar tu carrera como si fuera estable. La opción segura ya no compra seguridad, ya no existe. Y una frase que resume todo: "Escribir es pensar. Si externalizas tu escritura, externalizas tu pensamiento." La charla completa aquí ⬇️
304
1,699
242
9,451
1,493,068