Artem Golubin (@rushter) header
Artem Golubin (@rushter) profile picture

Software Engineer. Infosec, classic ML, network protocols, software internals.

Joined January 2009
Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)Photo by Artem Golubin (@rushter)
Artem Golubin retweeted
Replying to @valvesxyz
I like to look at claims like this in case I can improve Ghostty. I grabbed your source and immediately spotted the issue: your read loop overwrites a 64 KiB ring. Everything older is discarded unparsed per tick. You're faster because you're not actually terminal emulating. It means the number isn't a throughput number. In a kitten benchmark run at the rate you're claiming, roughly 6.6 MB arrives per 60 Hz tick and 64 KiB of it gets parsed. You're read(2)-ing 100% of the data and parsing about 1% of it. There are other minor issues (a small fixed scrollback in a preallocated ring buffer, no grapheme clustering, throwing away data like OSC 8 URIs, etc.), but the major one is simply that you're discarding ~99% of the input. For plain text, e.g. your cat benchmark, the final screen ends up looking right, but the scrollback is missing 99% of the file and each retained chunk starts mid-line. As soon as there are escape sequences in the dropped spans, your emulator is fully out of sync and invalid: a cut inside a CSI prints the parameters as text, and any SGR, mode, title, or alt-screen change in the gap is just... gone. FYI, this is why I don't like when people point at refterm as a terminal benchmark. refterm implements a TINY subset of what a terminal emulator must support, it's closer to a fast file reader, not a terminal emulator. I also don't mean any shade by this. I like to look at technology objectively to try to learn something and improve my own craft and work. So I'm sharing what I found. I modified your code very slightly to parse on every full buffer (rather than per tick). And the results are attached. Both use main commit in each repo at the time of this post. Note the graph is in log scale, the discrepancy between performance for things like Kitty images is measured in GB/s.
179
242
215
8,318
867,377
Artem Golubin retweeted
We made a fake repo with fake bounties, and the bots are applying fake PRs, so we know who is fake, and we can ban them from the Coolify repo. IQ over 1000
190
456
89
10,216
505,804
"in 2025 we will have flying cars" 😂😂😂
116
1,185
202
18,096
1,420,398
Artem Golubin retweeted
fml linkedin is unusable
226
227
102
5,974
689,152
Here is a 72-byte alphanum MD5 collision with 1-byte difference for fun: md5("TEXTCOLLBYfGiJUETHQ4hAcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak") = md5("TEXTCOLLBYfGiJUETHQ4hEcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak")
39
1,558
192
5,435
2,061,955
I’ve spent the last 20 years of my career riding the gravy train of “being good at Google,” but now that Google search results are awful I guess I’ll need to become good at something else.
12
54
5
527
28,708
Artem Golubin retweeted
Python 3.11 is out! It's 25% faster than 3.10, but maybe even better are more precise error messages: docs.python.org/3.11/whatsne… python.org/downloads/
14
296
43
1,552
Artem Golubin retweeted
something good about Python
75
1,114
167
9,677
Artem Golubin retweeted
Mans get a job at google once and sell courses about it for the rest of their lives 🤡
36
112
27
3,020
Artem Golubin retweeted
Podcasts saying literally nothing for 20 minutes.
3,610
71,077
19,232
416,943
Artem Golubin retweeted
The NumPy paper is out! nature.com/articles/s41586-0…
73
2,598
504
9,222
Artem Golubin retweeted
6 months ago someone read the section of my Walker post about him copy-pasting an article (guzey.com/books/why-we-sleep…), reported this to the journal and the article has just been retracted "at the request of the Author" ??? fucking love academic journals cell.com/neuron/pdf/S0896-62…
4
3
1
58
Artem Golubin retweeted
This is by @rushter is a nice intel gathering technique if you're trying to narrow down the owner of some infra - rushter.com/blog/public-ssh-… @AlecMuffett worth thinking about where SSH is exposed on @tor hidden services too as it can be used to enumerate who has access
1
8
3
Detecting SQL injections in Python code using AST rushter.com/blog/detecting-s… by @rushter
3
4
Releasing mlcourse.ai, a.k.a. Open Machine Learning Course by OpenDataScience. There are lots of assignments and some competitions during the course. Interactive rating highly motivates and makes it fun to participate. Next session starts on October 1. Welcome!
74
1
185
How Python saves memory when storing strings buff.ly/2MhIbgY
5
7
Here's @pythonbytes #88: Python has brought computer programming to a vast new audience with @brianokken and @mkennedy pythonbytes.fm/episodes/show… cc @realpython
2
7
28