
- 粉丝规模
- 5.2千+217 / 7 日 · +4.4%
- 日常浏览中位数
- 73030天 34条7日 28帖
- 收藏率
- 1.3%赞率 1.4%互动 2.0%
- 网络权威分
- 63/ 100
- 30 天黑马爆款
- 8最高 33.6×
已发布产品
2同层百分位基准
互动质量画像
- 干货收藏比
- 0.27×
- 讨论比
- 0.11×
- 观点转述比
- 0.32×
- 黑马命中率 ≥2×
- 29%
- Top3 集中度
- 61%
个人爆款拆解
35 条有效帖为了在一台 512GB 的 MacBook Pro 上腾出空间,Leo 开发了两款工具,据他称可分别将 Git 工作树和 Cargo 构建产物的磁盘占用最多减少 99% 和 90%。
- 据作者称,Twig 通过写时复制让 Git 工作树比普通工作树最多节省 99% 的磁盘空间。
- 与常规 Cargo 构建相比,第二款工具让作者的 ./target 目录最多缩小 90%。
- 作者表示,大家在 issue 和评论中提供的反馈帮助两款工具在 Linux 和 Windows 上也能良好运行。
git-twig 0.6 加快了 `git status`,新增了让现有 Git 工作树共享磁盘空间的命令,并扩展了对 Windows 和 Linux 的支持。
- 可用 `npm i -g git-twig` 全局安装,Windows 用户也可通过 Scoop 安装。
- 新命令可以整理现有工作树,让它们共享磁盘空间。
- Windows 新增对 Dev Drive 和 ReFS 的原生支持;Linux 新增多核克隆和 ARM 构建版本。
this is making it possible to continuously build several Rust projects on a 512gb disk, and it really does keep my ./target folder at ~70-90% less than without it
needs better support for windows, but its doing great on linux too!
huh i think this fixes cargo build sizes for agents
my little 512gb disk can finally breathe!
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
the kind of tooling i'm missing is deterministic and so cheap that i can run it continuously almost at every agent turn.
for code quality i want semantic checks, essentially a graph representing the codebase in small (files) and large (modules, systems), that I can run queries over. from "no single name variable" to transitive properties like "only config.ts can provide default values when reading from ENV"
for system behavior i want models and traces, ideally hooked so deeply that running my tests locally produces system traces i can check against the models as part of the tests.
t.co/V5QgWSogpW making people trip but it’s very real! 📦
okay i want to introduce y'all to Spock but before I do, I want to share a bit about TLA+ and how you use it to design, check, and proof, and eventually verify a running system traces against it.
TLA is Lamport's temporal logic of actions — its a small untyped logic where by specifying an Init and a Next predicate you get to advance time discretely in a system, where each step is defined by Next, and TLA+ chooses from one of many possible combinations.
to actually go over that state space and see if some properties hold, you use a separate tool: TLC — TLC is a java based tool, and we got some amazing drop-in replacements like @mattzcarey's everystate that make it easy to run and insanely fast.
note that TLC can only explore _bounded_ states, so you give it a .cfg file "please run with 3 nodes, 2 keys, 10 messages" , and it runs until it comes back to you with an answer, or you kill it because its been running for hours.
if you want to check your design for _unbounded_ states, you need to use a specific subset of TLA+, include a type-checking predicate, and add another tool: the TLA+ Proof System — this interprets your proofs and translates them to provers like Z3, Zenon, or Isabelle.
but TLAPS performs only partial temporal reasoning, since it doesn't handle all of TLA+, so many of your original specs aren't usable verbatim and need extra "proof-friendly" definitions, like explicit types and inductive invariants.
say you've done this work, and built your system. now you gotta instrument your app to produce traces, and write a small spec that loads an NDJSON file into a Trace sequence, and TLC can then check it!
so this pipeline has a few interfaces, where we go from untyped .tla specs -> TLC + .cfg -> TypeOK + IndInv for TLAPS -> NDJSON logs -> TraceSpec -> TLC in discrete steps, and have to translate specs and schemas and keep them in check.
agents help a ton here, but they don't make the tools play better with each other.
to address this and unlock next-level optimizations, we I've designed Typed TLA to unify this pipeline — this enriches the semantic model of TLA+, replacing ZF set theory with an algebraic type theory that allows us to preserve and enforce soundness in your spec through the entire pipeline, enabling all sorts of optimizations
Typed TLA is the magic sauce behind Spock
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
how to make the fastest semantic guardrail for agents in the world:
1. get the fastest approximate parsers out there (tree-sitter tyvm) 2. build a graph of facts over all the asts 3. run guardrails over a streaming parallel datalog query engine 4. profit
i think i cracked something, more news tomorrow
anyway here's probably the fastest streaming datalog engine out there: t.co/MywaIORV0l
i've been working on this on-and-off for a while now, as i've tried to build my ideal anti-slop tool a few times.
oldest working iteration of it is probably in Riot's CodeDB (t.co/KcCJR7JpcJ), but the last one was t.co/ftk3oCUdsF. at least until yesterday!
to make t.co/MywaIORV0l 🦊 up to 20x faster than the fastest datalog engines out there, while still allowing fully interpreted (not precompiled!) datalog evaluation, i've developed a new approach: Adaptive-Dense Datalog
imagine you got a database of train routes, which in datalog you'd store as facts:
train("london", "paris"). train("paris", "berlin").
then you build some relations by writing more rules:
% can_reach exists if there's a train between A and B can_reach(A, B) :- train(A, B), % and also if there's some middle-place B % so that you can go from A to B, and then to C can_reach(A, C) :- can_reach(A, B), train(B, C).
to query we write another rule but with _holes_, like ? can_reach("london", "berlin") and a datalog engine runs in *rounds* — round 1 discovers can_reach("london", "paris"), and round 2 discovers you can_reach("paris", "berlin"), so it answers yes!
now the problem is that to run these rounds quickly, you gotta store the facts in memory somehow. there's 2 classic approaches to this:
1. a big hash table: you only write down the pairs you find, like ["london", "berlin"] — this uses very little memory but ofc checking connections one at a time can be unusably slow (imagine you need to check millions of them!)
2. a bit-matrix: if you had 100,000 cities, you'd just make a 100k x 100k matrix of 1's and 0's and read 1 as "reachable" — modern cpu's can compare a lot of checkboxes at once, so this is wiiildly faster but can use TONS of space (1.25gb of RAM per relation!!!)
so we're trading time:space between these approaches. but what could we do differently?
enter Datafox's adaptive-dense approach:
* first it shrinks the grid as much as possible (column-origin analysis)
* then starts on a hash table and upgrades to bit matrices when the rule is actually busy (lazy promotion)
* and finally once we have a bit matrix it checks as much as it can on a single rule in a single operation (passthrough word-or lifting)
worth noting that i'm building something using datafox, so all these improvements come from that directly. more details on the paper!
this is also the first paper i'm authoring with ai and releasing, so thank you @AnthropicAI and @GeminiApp!
paper: t.co/NdlFEsfD2I proof:
anyway here's probably the fastest streaming datalog engine out there: t.co/MywaIORV0l
i've been working on this on-and-off for a while now, as i've tried to build my ideal anti-slop tool a few times.
oldest working iteration of it is probably in Riot's CodeDB (t.co/KcCJR7JpcJ), but the last one was t.co/ftk3oCUdsF. at least until yesterday!
idk how this happened but it happened thanks @acoyfellow for the nudge
cargo-gc v0.2 is out!
* you can now install it with `cargo install cargo-gc`, courtesy of the @rust_foundation (thanks Tobias!)
* cargo gc run / test / bench only ever clean Cargo's own build directories. Before, a malicious program that printed a line looking like Cargo's log could make cargo-gc clean something else 😱
thanks @cantoramann 👏
over the last month I've been constrained to fit all my work in a 512GB MacBook Pro, and this has led to 2 nifty little tools that make it feel like a 4TB machine:
🌱 t.co/CLheWOi0yA — twig's are lightweight copy-on-write worktrees for git, and they can get 99% (!!) smaller than regular worktrees!
📦 t.co/jZuBUKzygE — `cargo gc build` now keeps my ./target folder up to 90% (!!) smaller than plain cargo builds!
thanks to issues and comments from folks, I've managed to get these working great on linux and windows too. thanks y'all! 🙂↕️
ok, i think i'm onto something here: found 4 bugs in the z3 theorem prover 🤩 (all reported properly ofc)
sometimes the only way to meaningfully improve on something is to start from first-principles and aim for 1000x
can't wait to share this but if your agents are using a model-checker like tla+/everystate to find bugs in your apps, you're gonna love Spock 🖖
can't use gpt models above high — they legit are afraid of breaking things and introduce all sort of ridiculous guardrails.
I'm building something with @inventingmaya and gpt6.2 sol xhigh keeps doing things like inventing "pilot customer programs" or creating ad-hoc canary deployments, even after repeatedly telling it there's no users, there's no production.
opus-5.5 is just better at this stuff?
i've been wondering what's making it hard to read code as deeply as i used to (and i used to read a lot of code!), and i think a large part of this is that model-makers seem to have forgotten this:
"Programs must be written for people to read, and only incidentally for machines to execute." — SICP
i want all my ai-generated code to be so beautifully written that reading it is joyful
i have ported over Laravel to @badcop_'s amazing Bash Stack to make your bash applications simply amazing ✨
proud to announce Laravel Bash: t.co/noP4Q7xnju
it supports routing, Blade, Eloquent, validation, sessions, CSRF, queues, mail, broadcasting, and even testing support in a brand new UNIX-compliant `./artisan` script
even runs on Durable Objects thanks to @_pi0_'s unkernel 👏 (for real)
I built Laravel Rust and Laravel Go in tandem.
Laravel Rust and Laravel Go have full feature parity. Routes, database, validation, queues, durable workflows, even Reverb has a local Go server. 😅
But, they both remain true to the language they are written in. Laravel Go doesn't try to be something other than idiomatic Go. Yes, that means it doesn't look as "magical" as Laravel Rust in some places.
It was important to me to be true to the spirit of these languages. Go has blazing speed, compiles quickly for fast iteration, and has a simple, limited amount of keywords.
Human developers can learn to read Go very quickly, and agents are extremely proficient at writing idiomatic Go.
Choose your flavor.
Laravel Rust for absolute top-end speed, macros, and that terse, "magical" feel of Laravel.
Laravel Go for almost just as fast in a simple, readable language with fast compilation times.
Both will be developed and maintained in parallel along with Laravel PHP. I'll share more about how I'm orchestrating this as I go.
同领域相似创作者
浏览 科技与产品 全部创作者 →Building cool stuff, experimenting, and documenting my journey.
在 Cloudflare 负责 Agent 体验,并创办 AI 与开发者工具产品。
Next Generation of Network Access and Security. http://github.com/netbirdio/netbird
Polylane 值班负责人,构建用于生产事故处理的 AI 智能体,并分享 AI 编程与技术文章。