Mostly libre software and system safety. Also gardening, DIY, dog photos. Founded @veloren and other projects. Really, really dislikes fascists, born at 364 ppm.
Public Key
npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Profile Code
nprofile1qqs98jdhxg0ezpde7n48uhpzv9utcvud3334e875tha65pvqxlxfyqgpz3mhxue69uhhyetvv9ujuerpd46hxtnfduqs6amnwvaz7tmwdaejumr0dsdwepwc
Show more details
Published at
2026-08-24T05:25:37Z Event JSON
{
"id": "cc67aade6336d4ebc4b00d2c79682f49bd635b307d0321dd6b000ba866da132b" ,
"pubkey": "53c9b7321f9105b9f4ea7e5c226178bc338d8c635c9fd45dfbaa058037cc9201" ,
"created_at": 1787549137 ,
"kind": 0 ,
"tags": [
[
"proxy",
"https://social.coop/users/jsbarretto",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "{\"name\":\"Joshua Barretto\",\"about\":\"Mostly libre software and system safety. Also gardening, DIY, dog photos. Founded @veloren and other projects. Really, really dislikes fascists, born at 364 ppm.\",\"picture\":\"https://social-coop-media.ams3.cdn.digitaloceanspaces.com/accounts/avatars/000/014/757/original/10ccd776eba5241c.jpg\",\"banner\":\"https://social-coop-media.ams3.cdn.digitaloceanspaces.com/accounts/headers/000/014/757/original/3b4f6301630fd619.png\",\"nip05\":\"[email protected] \",\"fields\":[[\"Pronouns\",\"He/Him\"],[\"Location\",\"Bristol, UK\"],[\"Alias\",\"zesterer\"],[\"Blog\",\"https://jsbarretto.com\"]]}" ,
"sig": "41ded5d6664f036347f35a48288bc41b254c4b40e0ccca62046371b4b5f079f80ef17c27f98e9cdf7b0dcc565f7c9807bb1ed21033cce0c110da0383cef48218"
}
Last Notes npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Did anybody notice the Anthropic article the other day demonstrating instruction-level formal verification of FOSS libraries? I notice that one of the target libs was `simdjson`. Their compilation target was riscv64gc, an instruction set that does not even support SIMD. So, their 'formal verification' skips basically all of the useful functionality provided by the library. Yes, that's right, they spent (presumably?) millions of dollars of tokens proving the memory safety of a fallback JSON parser that was already written in Rust. I'm so tired of this stupid dead cat marketting that falls apart under the most basic of scrutiny. A $1.5 Tn company, apparently, and they can't even be bothered to check that their publications make sense at the most basic level. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Programming is just googling stuff like "elf magic field" and then being surprised at the results npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I found some time to write about some of the things @nprofile…02ax does differently as compared to other games in the voxel genre, which is something I've been meaning to do for a while. https://blog.jsbarretto.com/post/veloren npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…vdqu I leave feeling like I need some low-grade therapy and I don't really know why. Nobody on there is especially disagreeable or unpleasant. Are you on there for the reach, or? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Sometimes I visit BlueSky and... it's not that folk on there are bad in any profound way, but I always leave the place with a sort of unquantifiable misanthropy. Something about the place just makes me want to escape to the wilds. I don't know whether it's the omnipresent Americanism or the fact that all posts take the form of a critique on a critique on a critique, but the atmosphere is just crushingly claustrophobic. It seems like everybody is desperate to convince themselves that they're part of some intellectual priesthood. Just exhausting stuff. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I want to remind you: these bastards have spent $1.5 trillion of society's money on this technology. That it's produced *something* should not be surprising. That's 'solve aging', 'cure cancer', 'eliminate all poverty', 'shift climate change into reverse', or 'send a probe to another solar system' money. It's not 'write shit software 20% faster' money. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…v2v2 @nprofile…3n63 @nprofile…w5un Borrowing this quote for training materials I'm working on, I hope you don't mind npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I do think the reaction to this Bun Rust rewrite - from both sides of the table - is massively out of proportion. I think it's got something to do with the size of the diff, but enormous diffs by traditional auto-generated tools are not uncommon either. Try running `cargo fmt` on a large codebase. If you look at the code, it's a deliberately conservative rewrite. Virtually every type, function, branch, etc. is preserved. I'd argue that it's the sort of task the author would have solved faster and easier by just serializing the output of a Zig parser into Rust: it's not especially different to the sort of output c2rust produces, for example. Put simply: it's not a shocking display of the efficacy of LLMs, it's actually quite a constrained and well-scoped task, repeated many times. It's 500 undergrads in a trenchcoat. And so, I'm unconvinced that it should really change anybody's minds about what these tools can do, because it's nothing we've not seen before. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Okay, I just came up with a ridiculous #rustlang trick that... somehow works. You know how building an API on top of trait objects (like `dyn Fn`) usually requires you to 'commit' to a pre-defined set of marker types (like Send/Sync), breaking any clients that want to use another set of bounds? It turns out that you can abuse the specialization feature to 'smuggle' these marker traits into the final type without mentioning the type they're originally derived from, making it possible to write code that does dynamic dispatch without sacrificing the flexibility of user-defined marker traits. Here's an example of the horrible hack in action: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=f323d504bef9daca9e61d0b07c29b082 npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I am seriously impressed by #Forgejo's (the software powering #Codeberg and other GitHub alternatives) migration tool. Git history, issues, PRs, wiki data; all migrated perfectly from GitHub. You can link your GitHub account afterwards, and all migrated things move over to your user - so you can edit things like comments you originally wrote on GitHub. It's like the migration never happened. It even migrates tiny details like comment reactions. And because the account linking is lazy, users that haven't yet joined Codeberg aren't losing out: the moment they join and connect their account, they suddenly own everything they did on the old repository. This is wizard shit. I'm a bit blown away at how flawless and easy the process was. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto The first batch of this year's seedlings are approaching escape velocity now the seasons are changing. From the left: tomato, salad mix, a mixture of red and white onion, and celery. #gardening https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/116/306/626/453/758/376/original/4895d5949950917d.jpg npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Someone decided to get an LLM to create a website summarising a bunch of libraries in the Rust compiler development ecosystem, and the whole thing is chock full of inaccuracies, misinformation, or entirely hallucinated features that don't actually exist. It rated my parser library as slower than one that runs several orders of magnitude slower on every benchmark I've seen. For my diagnostic library, it hallucinated a feature that the library doesn't even have. I have spent so many hundreds of hours curating the docs and examples for these projects. Why do people do silly crap like this? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Certain politicians and most of the private media in the UK keep talking about how a green transition is impossible and yet, as far as the national grid is concerned, it's basically already happened and nobody has noticed. #nevent1q…gfp8 npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I made project-wide search in my text editor asynchronous so results stream in from worker threads without blocking the main thread. However, searching is so fast that it finishes before the next frame renders, even on the largest project I work on, so it was entirely wasted effort. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…w5un @nprofile…gnzg Disappointed that we're not watching the palm pre cut parma and brie npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto It would be fun if browsers could render CommonMark locally so that we can just... Not use a CMS / static site generator server-side. I imagine that would kill a lot of SaaS business models, but that's not a bad thing. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…8jts ML! npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…e965 Autistic man fatally underestimates the extent to which neurotypical people anthropomorphise machines that flatter them? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Top tip for those trying to understand a complex, well-established codebase: start off by rewinding the git history to a very early release. There's a good chance that most of the core abstractions have survived unscathed, and seeing them surrounded by fewer ossified tendrils will make them easier to make sense of. As an example, Veloren 0.2 was just 20k lines (compared to 330k today), yet much of 0.2's design principles have survived with surprisingly few changes. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Of those 12 instances: - 6 relate to hot reloading (dynamic linking) and aren't even presented in public builds - 3 relate to the plugin system (JIT compilation and other things that are almost impossible to provide hard soundness proofs for) - 2 relate to shader compilation (also JIT) - 1 relates to accessing the OS clipboard and is unsafe because the underlying abstraction is perilously easy to abuse (thanks C) npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto > Rust is too constrained without [unsafe blocks] to get any useful work done. Just saw this in the wild again. @nprofile…2rxu has about 330,000 lines of Rust code today. It's a networked, multi-threaded, 3D, portable game and game engine played by thousands of people. Very much not a contrived example. Name any sort of code and you'll find it in there: GUI, packet parsing, physics, DSP, decision trees, database calls, ECS, procgen, audio. It's all in there. It has 12 instances of `unsafe`: (1/2) npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…vael I really have no idea what I'm doing with CAD or product design, but a month ago I had a need to fill and FreeCAD did the job: here's a replacement watering can head I designed and printed after the first one broke. https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/626/543/074/996/512/original/9ecc5db596362d84.jpg npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Just had to spend 30 mins debunking an AI slop issue+PR on a project of mine that falsely claimed the existence of a bug that caused a panic. The example they provided: - Did not even compile - Did not panic even when fixed to compile - Did not even demonstrate the claim being made The PR they provided: - Did not fix any issue - Contained a boatload of meaningless unit tests with exactly no purpose I'm so fucking tired of these bullshit machines poisoning the well of open source. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Hmm https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/622/041/507/407/151/original/1af832b19e24c3d9.png npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…6nk8 Ideal, I hope that works out for you! I've heard good things about adhd meds in terms of stress reduction and so on. Thankfully my life has changed quite a bit since I went in and I'm at the point where the symptoms are more useful to me than the drawbacks so I'm less bothered about getting a diagnosis nowadays. Maybe that'll change in the future though 😄 npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…6nk8 A thing I've found that works is to set myself alarms. When it goes off, do the thing. If not possible: reschedule the alarm for 1/2 the previous timeout. Turns complex task management into a simple rule with a guaranteed completion time that you can promise to others npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…6nk8 Oh, completely! I went to the doctor about this going on 5 years ago. They told me to fill out a form. It's still in the bottom of a cupboard drawer somewhere, unfilled. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I finally found the energy to dive back into Ariadne's wildly complicated diagnostic generation logic. Here's a new configuration option, `minimise_crossings`, which does what it says on the tin. Before and after. https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/584/512/263/113/688/original/4879bcbab9a5231e.png https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/584/512/891/902/022/original/56fb1fa38fff1384.png npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…6y3m Is there an easy way to determine which version my instance is currently running? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Messing around with some material & particle shaders for @nprofile…2rxu. If you're working on a game and your shader code doesn't hot-reload, you're missing out: it's like trying to paint a picture with your eyes closed. https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/487/811/471/769/039/original/f16035630c46d2e9.mp4 npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I am sorry if you opened a PR on my repository and I didn't respond for 6 months, I became irrationally terrified of some trivial decision I'd have to make by accepting the PR and my brain decided to memory-hole it. Please ping me again. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Thinking that I might start adding something like this to more of the software I write. https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/477/076/951/802/891/original/bdc729bc5e3ea7b8.png npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…p8fa May I introduce you to my crate? https://crates.io/crates/pollster npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…tcpf @nprofile…u06q Pre-expansion? Certainly! Afterwards? Hell no. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…u06q Time to add my own little bit of chaos. I recently went on a 'how close can you get to ergonomic Rust-style algebraic types in C' adventure I ended up building a scoped `if let`: if_let(Some(x) = my_option) { // `x` is only valid in this scope } It's a macro that expands to something roughly approximating two for loops nested in an if: one to introduce the scoped `x` (no other way to do scoped variables in C), one to make a `break` inside the block work as it should. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto A few weeks ago I hit a really fun personal milestone: my text editor is now sufficiently complete that I can start using it as my daily driver. Now that I'm using it full-time, I'm finding so many opportunities to make tiny productivity improvements here and there. If I have a thing I want to make less bad, I can just... make it less bad! I highly recommend building your own version of at least one tool that you use on a daily basis, if for no other reason than that it's just really very fun. https://social-coop-media.ams3.cdn.digitaloceanspaces.com/media_attachments/files/115/459/545/799/158/442/original/c3cd113139950452.png npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…mclj A Google for RSS? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I got an ear infection that's inflamed some of the nerves in my head (or maybe just one nerve? I don't know, I'm not a doctor) and now I've had the worst migraine of my life for 3 days running. Please tell me about something interesting you made or did recently, I'm bored of being sedentary and in pain. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…sqcg @nprofile…29p0 For sure! I can imagine it's very useful for debugging: I'm just not convinced it scales beyond that realm. Why not an ancillary integer or set of integers with call-specific meaning? At least that's machine-interpretable and might be translated into a higher level error. String-based error handling just forces programs to talk in terms of low level abstractions all the way through and are a big cause of obtuse and unergonomic tools. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I wrote a review of 'toy' software projects I've built and why you should write toy software simply for the joy of it: https://www.jsbarretto.com/blog/software-is-joy/ npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Something possibly surprising for folks not working in software: The reason companies are so hyped up about AI is that LLMs are trained on public code - and code whipped up over a weekend and thrown on GitHub by a hobbyist is almost universally better than anything private industry can produce. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I think a lot of people that don't really understand what they're doing obsess over LLMs for the same reason that they might have obsessed over visual programming or Plain-English-programming a generation ago. In their mind, programming works like this: 1) A clever person designs the system/app/website/game in their mind. 2) The person uses whatever tools available to wrangle the computer into reproducing that vision. (1/...) npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I think tech bros routinely underestimate how much society functioning properly relies on certain problems being very difficult to solve npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…60lz There's another way to think about it: if they demonstrate that they actually will stop protesting if demands are met, it increases the chance that the government is going to come to the table on future issues because the expected payoff for the government is higher. It's a very smart tactic. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…gyq6 Yeah, I get that, but being sarcastic would imply you thought they were right-wing, and they're really not. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…rg89 Wizard shit, tbh npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…j53y The random shot of the eagle is so damn funny. Why is America npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I will judge your pet programming language more on the list of things it can't do than the list of things it can do. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto For people in the UK: Some folks are trying to set up a regional rail co-op. I've felt like a co-op ownership model is a great way to go for local rail services for a long time. Seems like a worthwhile thing to throw some disposable income at, if you have it. https://www.crowdfunder.co.uk/p/go-op-som-wilts-rail npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…cu9x @nprofile…36ry @nprofile…2lvc @nprofile…djmz @nprofile…ymgw To be clear, I don't consider "hobby project" and "serious project" to be mutually exclusive. Up until fairly recently Redox has, to me, been clearly in the 'hobby' camp because it's only been a viable OS for hobbyists. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…hd3q Right now I'm busy porting SM64, but it's given me enough energy that I think I might try building something more original next time. I can imagine this being very useful :) Does it have OBJ export? npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @nprofile…hd3q This looks brilliant for game development on the GBA! npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto Did another video about making Super Mario 64 run on the Gameboy Advance. #sm64 #gba #gbadev https://www.youtube.com/watch?v=9mUsgJ-HiDM npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @npub1k4q…3lsq Not like some bearded guy spent most of his life writing about why this happens 150 years ago or anything npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @npub17td…apfk Cursor latency npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto It occurred to me today that the social value of the open-source work I do in my free time has probably been an order of magnitude more useful to the world than everything I've ever done as a paid employee. Needing to seek a wage almost certainly makes me a less productive member of society than I would otherwise be. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto @npub1knz…c73p Sometimes markets suck and produce terrible circumstances, but sometimes they really do work and it feels like the renewable energy market is an example of the latter. Very cool. As pessimistic as I am, I hope there's a small chance of a future where clean power is both cheap and widely accessible. npub120ymwvsljyzmna820ewzyctchsecmrrrtj0agh0m4gzcqd7vjgqsqke9me Joshua Barretto I think designing secondary incentives for participation into systems and services is almost always an anti-pattern. Mining for crypto. Gamified engagement metrics for Twitter. Karma for Reddit. Badges & stars for GitHub. Views & subs for YouTube. That Mastodon doesn't really give you a reward for engaging (both on the level of users and instances) makes it extremely difficult for misaligned actors to exploit because there's very little to be gained in the first place.