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)
sail-x86: Formalizing x86-64 for Full-System Execution and Machine-Code Verification Rui Ueyama, Takahiro Shinagawa arxiv.org/abs/2611.40606 [𝚌𝚜.𝙿𝙻 𝚌𝚜.𝙰𝚁 𝚌𝚜.𝙻𝙾]
16
2
85
3,350
🎄 Advent of Types - day 2 Type theory puzzle every day! Given the following definition: type Not a = a -> Void And three function signatures: puzzle1 :: a -> Not (Not a) puzzle2 :: Not (Not a) -> a puzzle3 :: Not (Not (Not a)) -> Not a Your challenge: 1. Determine which functions can be implemented. 2. Implement them wherever possible. 3. Prove why the remaining function cannot be implemented. 4. Explain what this reveals about classical and constructive logic. Any sufficiently typed language is welcome. No unsafe operations, no partial functions, no classical axioms, no golang, no cheating. Truth in Types, Safety in Thought. Happy Advent of Types!
8
11
4
66
2,689
Replying to @srghma @kirancodes
I have amazing news for you leanprover-community.github.…
1
1
4
225
무엇이든 공부할 수 있게 된 세상에서, 당신은 무엇을 공부할 것인가?
Replying to @d_ijk_stra
내가 이걸 공부해서 어디 써먹을 일은 없겠지만, 수많은 수학자들이 오랫동안 갈구하던 지식이 드디어 우리의 눈 앞으로 성큼 다가왔는데 이걸 내 분야가 아니라고 그냥 지나칠 수 있나 싶어서. AI가 가져올 도전들이 두렵긴 하지만, 깨달음의 즐거움 측면에선 축제거리가 아닌가?
3
93
17
242
38,922
If you are in your mid-20s, ambitious, and think you are running out of time, you should read "Goodbye to All That" by Joan Didion d242fdlp0qlcia.cloudfront.ne…
Honestly if you’re 27, you’re so young, so much life is ahead of you.
14
668
28
9,581
502,642
d01c2 retweeted
"V8 Security in the Age of AI by" (OffensiveCon slide deck) saelo.github.io/presentation… Credits @5aelo and @mlippautz
40
254
9,687
백준 진짜로 부활하나...? 멈춰있던 시계가 다시 움직이기 시작했다
122
28
182
9,855
d01c2 retweeted
1966 年,美国数学家 Paul Cohen 因为证明了“选择公理(Axiom of Choice)的独立性”拿下菲尔兹奖。当时晚年偏执的哥德尔(Kurt Gödel)站出来说,这个结论自己早在 1940 年代就证出来了,但面对同行质疑,他翻遍自己堆积如山的草稿也没能把证明重新拼出来。 这个悬案刚刚被 Claude 和形式化验证工具 Coq 联手破了。 哥德尔去世后留下了 1009 页 密密麻麻的未发表笔记,全是用早已失传的德国 Gabelsberger 速记法 写成的——全世界如今只有 6 个人 认得这种符号。赫尔辛基大学教授 Jan von Plato 在退休前拿了 250 万欧元 经费苦学速记,但人类读这种天书的极限是一年 50 页,往往读到后面忘了前面。 今年 8 月,他把转写出来的文本连同 6 本专著一起喂给了 Claude: • 几天吐出 650 页全局解析:人类无法在脑子里同时拼凑上千页的跨卷引用,而大模型直接把 1009 页手稿当成一张完整的图谱全连了起来。 • 洗刷 60 年冤屈:Claude 在笔记里精准定位了哥德尔当年关于选择公理独立性的证明架构——哥德尔当年离彻底证完只差一个定义,而那个正确的定义,其实就躺在他两年前写的另一本笔记里。团队把 Claude 还原出的证明扔进数学证明助手 Coq 跑验证,当场通过。 • 663 个尘封定理重见天日:Claude 从手稿中一共扒出了 663 个 定理,送进 Coq 检验后,约 400 个原封不动直接验证通过,200 个在补齐微小前提后通过,只有 50 个是错的(哥德尔自己当年重读时也在页边用德语批注了 falsch! 标记错误)。 大模型在数学上最恐怖的用法,或许不是让它凭空捏造新猜想,而是配合 Coq / Lean 这类形式化验证器,去打捞人类顶级天才留在历史碎纸堆里的半成品。
10
41
7
408
41,604
All of the people who hated on verification and type theory, and who called our research useless for years, should probably admit they were wrong now and maybe apologize for being mean while also being wrong
23
61
3
626
20,931
d01c2 retweeted
きちんとCSをやると、cmpxchgが無くても、非atomicでもsafeなread/writeレジスタさえあればNスレッドでのatomicな排他が実装できることが学べるぞい。TAoMP本を読もう。
大学できちんとCSをやると、弱いメモリモデルでも、最悪cmpxchgさえあればメモリ順序制御と排他が実装できることくらいは習うと思うが、、、、
1
28
3
315
25,291
Our paper, "Vectorizing Recurrences over Semirings,” was conditionally accepted at POPL 2027. We built VecRec, a compiler that vectorizes recurrences into efficient kernels for signal processing, bioinformatics, numerical computing, and even your favorite LeetCode problems.
5
27
182
7,368
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
103
310
47
2,634
260,938
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.
7
5
75
8,488
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.
10
12
2
101
35,300
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
153
46
1,816
137,633
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…
50
90
43
748
114,546
函数式的精髓不是函数,而在于类型系统。 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,832
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
37
1,865
107,114
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,365
7,236
5,761
55,822
10,152,221