Martin Taibr

@martin_t
9 Followers
3 Following
13 Posts

Programmer, archer, aspiring rationalist, master procrastinator, gamedev. I say what I think and call out bullshit, deal with it.

Currently writing two open source multiplayer games in Rust. Because starting just one and never finishing is too easy. If you're also interested in multiplayer gamedev, I'd love to talk, exchange tips&tricks and maybe collaborate.

#rustlang #gamedev #foss

GitHubhttps://github.com/martin-t

Humans are not smart enough.

The theft to feed autocompleters is going almost completely unnoticed because as long as you keep benefiting slightly from it, why would you notice and by the time you're on the cutting room floor, it's too late and your opinion no longer matters.

I just submitted https://pluralistic.net/2025/03/13/electronic-whipping/ to HN and the thing I see next is an extension to train autocomplete on your own work so it can literally replace you and make you redundant.

Humans are doing it to themselves.

Pluralistic: The future of Amazon coders is the present of Amazon warehouse workers (13 Mar 2025) – Pluralistic: Daily links from Cory Doctorow

If an LLM and its output are based on 10^12 hours of work, out of which 10^6 is working on the code of the LLM itself and 10^12-10^6 (so roughly still 10^12) is working on the training data, does it make sense for only those working on the 10^6 to be compensated for the work?

#FOSS #GPL #copyleft #ai #llm

I finally turned off GitHub Copilot yesterday. I’ve been using it for about a year on the ‘free for open-source maintainers’ tier. I was skeptical but didn’t want to dismiss it without a fair trial.

It has cost me more time than it has saved. It lets me type faster, which has been useful when writing tests where I’m testing a variety of permutations of an API to check error handling for all of the conditions.

I can recall three places where it has introduced bugs that took me more time to to debug than the total time saving:

The first was something that initially impressed me. I pasted the prose description of how to communicate with an Ethernet MAC into a comment and then wrote some method prototypes. It autocompleted the bodies. All very plausible looking. Only it managed to flip a bit in the MDIO read and write register commands. MDIO is basically a multiplexing system. You have two device registers exposed, one sets the command (read or write a specific internal register) and the other is the value. It got the read and write the wrong way around, so when I thought I was writing a value, I was actually reading. When I thought I was reading, I was actually seeing the value in the last register I thought I had written. It took two of us over a day to debug this. The fix was simple, but the bug was in the middle of correct-looking code. If I’d manually transcribed the command from the data sheet, I would not have got this wrong because I’d have triple checked it.

Another case it had inverted the condition in an if statement inside an error-handling path. The error handling was a rare case and was asymmetric. Hitting the if case when you wanted the else case was okay but the converse was not. Lots of debugging. I learned from this to read the generated code more carefully, but that increased cognitive load and eliminated most of the benefit. Typing code is not the bottleneck and if I have to think about what I want and then read carefully to check it really is what I want, I am slower.

Most recently, I was writing a simple binary search and insertion-deletion operations for a sorted array. I assumed that this was something that had hundreds of examples in the training data and so would be fine. It had all sorts of corner-case bugs. I eventually gave up fixing them and rewrote the code from scratch.

Last week I did some work on a remote machine where I hadn’t set up Copilot and I felt much more productive. Autocomplete was either correct or not present, so I was spending more time thinking about what to write. I don’t entirely trust this kind of subjective judgement, but it was a data point. Around the same time I wrote some code without clangd set up and that really hurt. It turns out I really rely on AST-aware completion to explore APIs. I had to look up more things in the documentation. Copilot was never good for this because it would just bullshit APIs, so something showing up in autocomplete didn’t mean it was real. This would be improved by using a feedback system to require autocomplete outputs to type check, but then they would take much longer to create (probably at least a 10x increase in LLM compute time) and wouldn’t complete fragments, so I don’t see a good path to being able to do this without tight coupling to the LSP server and possibly not even then.

Yesterday I was writing bits of the CHERIoT Programmers’ Guide and it kept autocompleting text in a different writing style, some of which was obviously plagiarised (when I’m describing precisely how to implement a specific, and not very common, lock type with a futex and the autocomplete is a paragraph of text with a lot of detail, I’m confident you don’t have more than one or two examples of that in the training set). It was distracting and annoying. I wrote much faster after turning it off.

So, after giving it a fair try, I have concluded that it is both a net decrease in productivity and probably an increase in legal liability.

Discussions I am not interested in having:

  • You are holding it wrong. Using Copilot with this magic config setting / prompt tweak makes it better. At its absolute best, it was a small productivity increase, if it needs more effort to use, that will be offset.
  • This other LLM is much better. I don’t care. The costs of the bullshitting far outweighed the benefits when it worked, to be better it would have to not bullshit, and that’s not something LLMs can do.
  • It’s great for boilerplate! No. APIs that require every user to write the same code are broken. Fix them, don’t fill the world with more code using them that will need fixing when the APIs change.
  • Don’t use LLMs for autocomplete, use them for dialogues about the code. Tried that. It’s worse than a rubber duck, which at least knows to stay silent when it doesn’t know what it’s talking about.

The one place Copilot was vaguely useful was hinting at missing abstractions (if it can autocomplete big chunks then my APIs required too much boilerplate and needed better abstractions). The place I thought it might be useful was spotting inconsistent API names and parameter orders but it was actually very bad at this (presumably because of the way it tokenises identifiers?). With a load of examples with consistent names, it would suggest things that didn't match the convention. After using three APIs that all passed the same parameters in the same order, it would suggest flipping the order for the fourth.

#GitHubCopilot #CHERIoT

I've been thinking about making advertising illegal for quite some time but because I am an extremely capable procrastinator, someone beat me to it and wrote a blog post about it. Oh well, now that the idea is out there, let's make it get some traction.

https://simone.org/advertising/

What If We Made Advertising Illegal?

What if we banned all advertising? Not regulate it—abolish it. This proposal would transform manipulation machines, and maybe save democracy itself. A thought experiment worth considering.

Kōdō Simone

I just realized firefox lets you select text by clicking somewhere and then pressing shift+arrow.

It even works if you double click to select a word, then select with ctrl+shift+arrow.

#firefox

If companies are legal persons, is owning a company slavery?

#cooperatives

Physics: "Friction does not depend on velocity"

Robotics: "LOOOOOOL"

The Fyrox console has been updated to Fyrox 0.33

https://github.com/martin-t/cvars

GitHub - martin-t/cvars: Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs.

Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs. - GitHub - martin-t/cvars: Configuration variables and consoles for ...

GitHub
Fyrox Game Engine 0.33

Fyrox 0.33 includes new UI editor, rendering improvements, various editor improvements, script API improvements, async tasks, book improvements and more.

Spent the past few weeks splitting RecWars into a client and server which means a massive rafactoring: `18 files changed, 2465 insertions(+), 1720 deletions(-).`

Obviously many things that worked in singleplayer are completely broken for now...

#rustlang #gamedev #foss