My Claude Code replies now look like this:
"Já está — the tests pass, mas one is flaky. Vou ver the logs depois."
I'm learning European Portuguese from text I already read all day.
It weaves a few guessable glue words into each reply, glosses them in a footer, and brings them back with spaced repetition until they stick.
How it works and how to install it: lapsh.in/blog/introducing-pt…
15
I came up with a similar thing last winter: I asked an agent to write types like a Haskeller. For key data structures and process pipelines. Then I reviewed them and the next agent did the TS code based on that plan
Code skeletons (types, modules, signatures) beat prose design docs and behavioral specs in AWS’s new Skeleton Coding paper.
- Code skeletons raised SDDBench mean test pass rate from 29% to 74% vs a task description alone.
- With skeletons plus global invariants, a smaller model came within 5–8 percentage points of the larger model’s best results at 15–26× lower token cost.
The best-performing specs combined modules, types, and signatures with natural-language contracts and global invariants. Richer .md architecture docs helped, but remained below the best code-like skeletons. Excessive contract detail hurt performance, especially for smaller models.
Skeletons also reduced code erosion (a complexity-based proxy for maintainability) while behavioral specs increased it.
Theory: structure changes which tests are sufficient. Interfaces expose intermediate states that end-to-end tests can miss.
Limitations: the skeletons came from reference implementations. Costs exclude specification generation and evaluation.
Unclear: how cheaply we can produce this structure upfront, and whether making the contracts mechanically checkable would improve results enough to justify the added cost.
My bet: the best starting point for a coding agent isn’t more prose. It’s a model of the system and explicit constraints the implementation must satisfy.
arxiv.org/abs/2610.38214
15
Next step:
“Rewrite everything on idiomatic erlang”
Cause, cmon, it was invented already and you don’t need to deal with it strange syntax any more!
try turning your backend state machines in to an actor:
"find all of the implicit state machines in my database and convert them to actors"
you'll get:
- great observability
- great testability
- realtime for free (often need to observe state machines from frontend)
- great scalability
9
Friday night. You want to see a film. You have no idea what's on, and you battle one cookie banner before Netflix wins.
So I made one simple page with all the screenings in Portugal, city by city. No cookies, just a grid.
todos-os-cinemas.pt
14
I was inspired by strict types, but never was able to use any Haskell or other tech. But now I ask Claude to design types as haskeller before implementing soft in ts and have a great checkpoint for program design.
函数式的精髓不是函数,而在于类型系统。
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 时代,它是更重要了。
1
27
As former researcher this is what strikes me in discussions with SWEs. They don't have default to make an experiment to prove their point. They can talk ours about principles and basics, but not collecting data, make a research or benchmark solutions.
13
IMHO fuzzing in greatly underestimated and plainly unknown for web coders. They tend to believe that they can fit complexity in their brains and do the right thing. But put their code in fazzer and it will humble them quickly.
A decade ago, after struggling on a hard problem in React Fiber, I spent several days designing and iterating on a fuzz tester that eventually uncovered a bunch of subtle cases that helped me converge on a solution.
Today, a fuzz tester simply appeared in my codebase. Poof.
36
My colleagues complaining on uncomprehensible slop and spending weeks on compressing meanings into words. No one have a simple idea that picture sometimes cost a thousand words.
Using state machines for agent logic is extremely slept-on
Don't think of them as static workflows. They're like LEGO bricks that the agents can rearrange + improve on autonomously, in a human-readable way
Otherwise it's like shaping markdown Play-Doh and hoping it holds
1
6
Grigorii Lapshin retweeted
When I was writing Unreal Engine 1, my time was divided as follows:
- Around 30% went to seriously deep coding on hard problems: assembly language texture mappers, C++ BSP trees, data persistence, object oriented systems design, and networking.
- Around 70% was just typing and refactoring large bodies of code needed for a complete engine feature set. This was not hard, and while I was doing it my mind was mostly on the deeper coding topics, thinking and planning for what's next. It didn't feel much different from vibe coding today, except that it was just me typing code on an IBM Model M keyboard rather than prompting it and reviewing the results.
So, it has always seemed perfectly logical that we would rely on AI for that 70%, once the AI could do it with a similar quality standard as we could, which has never been perfection. It came as no surprise that, after a few years of AI model evolution, it was able to take the reigns on that 70% and free up programmers' time for more valuable tasks.
What's more of a surprise is the emergence of AI as a sort of insta-Carmack able to solve hard technical problems quite cleverly and often cleanly, and that it's able to reason about and work in complex 3D scenes both by operating the tools and by directly understanding the raw data files.
I abandoned assembly language in 1998 when out-of-order CPUs made much simpler C/C++ code faster, and never I missed it. If prompting through architectural documents, concept art, and design plans can transcend typing code and tweaking vertices, that will enable developers to spend their time on higher-level, higher value technical and creative tasks.
What matters is the end product, whether it's a game or an engine. Anything developers can do to try out more ideas and make better software and games faster is a win for everyone.
Ages ago @_chenglou wrote about optimizations he made for the tldraw app. The biggest win came from using the math properties of the functions to skip work. Domain knowledge beat CS knowledge. I think that’s what’s missing in the AI code-reviewing discussion.
1
1
17
Here is og post xitter.gq/_chenglou/status/15708…
I've recently helped @steveruizok optimize @tldraw's performance by quite a bit, while keeping the code as simple and readable, if not even more so!
With Steve's permission, here's a glimpse of our conversation, with potentially more to come in the future: gist.github.com/steveruizok/…
15
Grigorii Lapshin retweeted
так может, когда контент всё больше генерится ИИ, надо больше встречаться вживую и рассказывать истории при личных встречах
По мне так это готовый сюжет для Черного Зеркала. Что плохого в фильтрации хейта и негатива? То, что мы должны знать края спектра, чтобы понимать как надо и как не надо общаться. Принимать мир во всем его разнообразии, так сказать.
Я все ещё очень хочу сделать llmLens, что бы пропускать контент через фильтр
Как только google раскатают свой built-in AI с Gemini в хроме, сейчас он в очень закрытой бети, дают доступ не всем. Когда он это сделают, у каждого пользователя chrome будет одна встроенная gpt
А пока его нет, будем прототипировать пока так. Представьте что у вас стоит это расширение, и вот так бы вы видели посты @platoff, дальше текс от chatGpt:
Я начал свой первый open source проект в 2002 году — он впоследствии превратился в Eclipse DLTK. С тех пор прошло 23 года, и за это время я заметил, что многие разработчики по-разному воспринимают open source. Чаще всего это ассоциируется с бесплатным софтом, но на самом деле экосистема open source гораздо глубже и интереснее.
Когда программист впервые сталкивается с open source не как пользователь, а как участник, он обнаруживает, что многие его представления о том, как создаются, развиваются и монетизируются такие проекты, оказываются далеки от реальности. Это естественно — open source огромен и многогранен, и каждый его участник находит в нём что-то своё.
В мире open source действительно есть самые разные сообщества. Например, FOSDEM — одно из крупнейших мероприятий для энтузиастов, где можно встретить как начинающих разработчиков, так и опытных инженеров, работающих в крупных компаниях. Здесь обсуждаются новые технологии, делятся опытом и вдохновляются новыми идеями.
Часто open source ассоциируется с образом человека, который пользуется Linux, пишет код в neovim и кастомизирует свой Firefox. Эти люди заметны, но далеко не исчерпывают всю картину. В open source есть крупные корпорации, индивидуальные разработчики, энтузиасты и даже целые коммерческие экосистемы, завязанные на открытых технологиях.
Если эта тема вам интересна, могу поделиться своим опытом и наблюдениями за последние 20+ лет в этой многомиллиардной индустрии. Open source — это не просто код, это культура, сообщество и огромное поле возможностей.
1
65
Grigorii Lapshin retweeted
Я все ещё очень хочу сделать llmLens, что бы пропускать контент через фильтр
Как только google раскатают свой built-in AI с Gemini в хроме, сейчас он в очень закрытой бети, дают доступ не всем. Когда он это сделают, у каждого пользователя chrome будет одна встроенная gpt
А пока его нет, будем прототипировать пока так. Представьте что у вас стоит это расширение, и вот так бы вы видели посты @platoff, дальше текс от chatGpt:
Я начал свой первый open source проект в 2002 году — он впоследствии превратился в Eclipse DLTK. С тех пор прошло 23 года, и за это время я заметил, что многие разработчики по-разному воспринимают open source. Чаще всего это ассоциируется с бесплатным софтом, но на самом деле экосистема open source гораздо глубже и интереснее.
Когда программист впервые сталкивается с open source не как пользователь, а как участник, он обнаруживает, что многие его представления о том, как создаются, развиваются и монетизируются такие проекты, оказываются далеки от реальности. Это естественно — open source огромен и многогранен, и каждый его участник находит в нём что-то своё.
В мире open source действительно есть самые разные сообщества. Например, FOSDEM — одно из крупнейших мероприятий для энтузиастов, где можно встретить как начинающих разработчиков, так и опытных инженеров, работающих в крупных компаниях. Здесь обсуждаются новые технологии, делятся опытом и вдохновляются новыми идеями.
Часто open source ассоциируется с образом человека, который пользуется Linux, пишет код в neovim и кастомизирует свой Firefox. Эти люди заметны, но далеко не исчерпывают всю картину. В open source есть крупные корпорации, индивидуальные разработчики, энтузиасты и даже целые коммерческие экосистемы, завязанные на открытых технологиях.
Если эта тема вам интересна, могу поделиться своим опытом и наблюдениями за последние 20+ лет в этой многомиллиардной индустрии. Open source — это не просто код, это культура, сообщество и огромное поле возможностей.
Я начал свой первый open source проект в 2002, это было то, что потом превратилось в Eclipse DLTK и вот уже 23 года я сталкиваюсь с тем что почти никто из программистов нихуя не понимает про open source, что поразительно. Ну вернее почти все думают что open source это некий бесплатный софт (что не совсем верно), и на этом понимание заканчивается.
Интересно что когда программист, который никогда не сталкивался с open source с ним сталкивается (не как пользователь), оказывается что все его предположения о том как делается, зарабатывает, да и в целом живет open source, оказываются ошибочными.
Тут еще важно понимать, что мир open source, как и вся жизнь, очень разнообразный. В опенсорс есть и свои бомжи — это зачастую чем-то припизднутые гики, которые собираются бухануть дешманского пиваса на FOSDEM (это один из их основных бомжатников). Эти любители опен-сорса зачастую имеют какие-либо психологические искажения по которым они предпочитают любой, даже абсолютно уродский софт, лишь бы можно было открыть исходники в vim и вздрачнуть на эту картинку перед сном (при этом часть из них вообще не умеет программировать).
Среди посетителей и участников FOSDEM конечно попадаются отличные ребята, которые либо еще не разобрались кто есть кто, либо у них совсем нет ресурсов посещать какие-то более приличные места. Более серьезные ребята из мира open source тоже зачастую посылают на этот слет нищебродов своих делегатов, но это так — чтобы держать гиков рядом, как разносчиков информации.
Почему я начал с гиков — как раз в глазах многих open source с ними и ассоциируется, типа лицо неопределенного пола и возраста, с Linux на компьютере, браузером Firefox, и сотни плагинов в neovim. Но хоть это и заметные элементы в мире open source, они ничего не определяют — это как раз маргиналы.
Короче, если кому-то интересно, продолжу про свое мнение и наблюдения прошедших 20+ лет про эту многомиллиардную часть индустрии.
Grigorii Lapshin retweeted
Принято волевое решение отъебаться от себя до конца лета! Никаких карьерных амбиций, творческих проектов, просто наслаждаться летом в Барселоне. Иначе нафиг было сюда переезжать

























