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.
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
Artem Golubin retweeted
Threat Hunting Introduction: Cobalt Strike rushter.com/blog/threat-hunt…
Artem Golubin retweeted
Here is a 72-byte alphanum MD5 collision with 1-byte difference for fun:
md5("TEXTCOLLBYfGiJUETHQ4hAcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak")
=
md5("TEXTCOLLBYfGiJUETHQ4hEcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak")
Artem Golubin retweeted
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.
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/
Artem Golubin retweeted
How masscan works rushter.com/blog/how-masscan…
Artem Golubin retweeted
Mans get a job at google once and sell courses about it for the rest of their lives 🤡
Artem Golubin retweeted
The NumPy paper is out!
nature.com/articles/s41586-0…
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…
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
Artem Golubin retweeted
Detecting SQL injections in Python code using AST rushter.com/blog/detecting-s… by @rushter
Artem Golubin retweeted
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!
Artem Golubin retweeted
How Python saves memory when storing strings buff.ly/2MhIbgY
Artem Golubin retweeted
Here's @pythonbytes #88: Python has brought computer programming to a vast new audience with @brianokken and @mkennedy pythonbytes.fm/episodes/show… cc @realpython
































