about 1 month ago
- LLMs receive sequences of token IDs instead of raw text. For example, the GPT-2 tokenizer encodes what's the weather in goldshire? into [10919, 338, 262, 6193, 287, 3869, 10932, 30].While it's a small part of the overall latency of a modern LLM call, tokenization does sit on the...
3 months ago
- To a sceptic, spending $165K to migrate Bun from Zig to Rust sounds very expensive. But to a realist, shortening a 1-2 year migration down to 11 days opens amazing new opportunities for devs. However, a thoroughly-tested project is required to pull it off....
- Before we begin, I want to say I don't care that much if you disagree with me. There's no sound precise mathematical definition of Object Oriented, no ISO standard, and no grand arbiter who decides what is and what is not OO (although I believe Casey Muratori may have applied...
4 months ago
- Terminal colors are determined by ANSI escape codes, which are just strings of text.The ANSI escape code for a red color is \033[31m. If we prepend that to a string that we print out to the terminal, the string comes out red. This works regardless of the programming language....
- My family is pledging another $400,0001 to the Zig Software Foundation (ZSF). This brings our total pledged support for ZSF to $700,000, after our initial donation in 2024.
- Prism: An Impure Functional Language With Typed Effects This is going to be a very nerdy post, so bear with me. Here is the shortest version of the pitch: fn fib(n) = var a := 0 var b := 1 var i := 0 while i < n do let t = a + b a := b b := t i += 1 a This is a mutable loop with...
- Lately I have been working around sandboxing, storage, and networking, and a lot of that work keeps coming back to files, which makes sense since Unix has organized itself around everything is a file for over fifty years. Your terminal and random number generator are device...
5 months ago
- No comment on this PR may mention the following topics: Long-term social or economic impact of LLMs The environmental impact of LLMs Anything to do with the copyright status of LLM output Moral judgements about people who use LLMs We have asked the moderation team to help us...
6 months ago
- “If it compiles, it works.” This feeling is one of the main things Rust engineers love most about Rust, and a reason why using it with coding agents is especially nice. After debugging some code that compiled but mysteriously stopped in production, I realized that it’s useful to...
7 months ago
- Squawk’s language server uses lsp-types, which provides serde-friendly types for the Language Server Protocol (LSP). This avoids us having to implement a lot of boilerplate ourselves. Before: A Manual Approach One of the provided types is SelectionRangeRequest, which is used for...
8 months ago
- In “Why is Claude an Electron App?” Drew Breunig wonders: Claude spent $20k on an agent swarm implementing (kinda) a C-compiler in Rust, but desktop Claude is an Electron app. If code is free, why aren’t all apps native? And then argues that the answer is that LLMs are not good...
- TypeScript and Rust-Analyzer support a handful of quality of life, code navigation improvements. For example, if you try to go-to-definition on a variable in your IDE, but end up clicking the trailing comma, it still navigates to the variable. let a = 10 // ^ go-to-def...
- Anthropic recently released a blog post with the description of an experiment in which the last version of Opus, the 4.6, was instructed to write a C compiler in Rust, in a “clean room” setup. The experiment methodology left me dubious about the kind of point they wanted to...
- 17 Feb, 2026 Update (Feb 18, 2026): After a productive discussion on Reddit and additional benchmarking, I found that the solutions I originally proposed (batched writes or using a synchronous connection) don't actually help. The real issue is simpler and more fundamental than I...
- Write transactions can lead to lock starvation and serious performance degradation when using SQLite with SQLx, the popular async Rust SQL library. In retrospect, I feel like this should have been obvious, but it took a little more staring at suspiciously consistent "slow...
- An allocator is a tool that reserves memory (typically on the heap) so a program can store its data structures there. Many C programs use the standard libc allocator, or at best, let you switch it out for another one like jemalloc or mimalloc.Unlike C, modern systems languages...
- There’s a jargon-filled headline for you! Everyone’s building sandboxes for running untrusted code right now, and Pydantic’s latest attempt, Monty, provides a custom Python-like language (a subset of Python) in …
- Modern system programming languages, from Hare to Zig, seem to agree that defer is a must-have feature. It's hard to argue with that, because defer makes it much easier to free memory and other resources correctly, which is crucial in languages without garbage collection.The...
- 2/4/2026 I like Rust. It's versatile enough that it can be used for application and systems programming. It has the best tooling of any language I've seen. It has a fairly pleasant type system. And I think most importantly it does a great job in bringing higher level language...
9 months ago
- I like Rust. like every popular crate buy into their marketing hype follow community "best practices" attack someone who prefers to solve a particular problem in C, or Zig refuse to admit it has design flaws refuse to admit the language is complex refuse to admit there are...
- Last week Cursor published Scaling long-running autonomous coding, an article describing their research efforts into coordinating large numbers of autonomous coding agents. One of the projects mentioned in the article …
- Everyone likes interfaces in Go and traits in Rust. Polymorphism without class-based hierarchies or inheritance seems to be the sweet spot. What if we try to implement this in C?Interfaces in Go • Traits in Rust • Toy example • Interface definition • Interface data • Method...
10 months ago
- Playgrounds for C3, Hare, Odin, V, and Zig....
Rows per page