Better HN
topnewbestaskshowjobs
Log inSign up

antirez

32,092 karma · joined Mar 30, 2007 (19y ago) · 3,852 submissions

I'm a computer programmer based in Sicily (Italy).

Website: http://invece.org

Blog: http://antirez.com

My sci-fi book (English translation): https://www.ibs.it/wohpe-ebook-inglese-salvatore-sanfilippo/e/9791280845337 or Amazon Kindle

Twitter / X: @antirez

Bluesky: https://bsky.app/profile/antirez.bsky.social

Submissions

comment 3d ago · link · parent

Now this can be handled because of development speed but especially because the level of testing coverage you can get today with AI, and even static scrutiny, is immense. So before the frontier models of the latest months there was no way to do something like that without increasing the fragility of the implementation. Now it was possible to try tons of approaches, pick the best, iterate on testing a lot.

comment 3d ago · link · parent

EDIT: "b+ trees instead of skiplists" of course. Sorry, can't edit it anymore.

comment 3d ago · link · parent

It uses two techniques: B+ tree instead of sorted sets, but also the hash table side, the dictionary, is specialized for sorted sets and stores several items per allocation. The B+ tree leaves hold all the members and scores (also in clusters of many elements, 96 max or 4k: that's a big part of the win), rank lookup can skip many children because of meta data, which is part of the ability to go as fast or faster than Redis even if the memory is so much smaller. The hash table points to leaves in the B+ tree, does not have elements at all, and is heavily optimized to do just the minimum, a single byte tag is used as a speed optimization to optimized lookups in an optimistic way. Basically it is the sum of many different techniques conceived during the years and never adopted for fear of complexity (today no longer a problem), and newely discovered techniques.

P.S. I tried several variants with different representations, so this specific implementation is the Pareto frontier in speed/size of many, many attempts.

comment 3d ago · link · parent

For par condicio: I worked at a similar optimization for Redis using different techniques (when I submitted the PR my colleagues informed me that ValKey and another Redis team was working at it, I was not aware: the amoung the three implementation we picked mine after extensive benchmarks) reaching memory savings that sometimes can be tens of percentage of less RAM compared to this ValKey optimization. So if you are exited for less memory for sorted Sets you should try both the implementations. We also got a lot more speed in many use cases compared to the skiplist.

comment 6d ago · link · parent

Accept the reality that the AI answers are for many searches an improvement for the user. Would not be maybe in the web of 20 years ago. Now it was a shit party of useless sites, advertising of all the kind, and other garbage.

comment 2w ago · link · parent

That's not the speed of the inference, but the fact that the default parameters are to max thinking. You can even disable thinking for many queries, or lower it to a smaller value.

comment 2w ago · link · parent

To put this on perspective, consider that with 128GB of unified RAM it can run even fast: https://x.com/antirez/status/2119392658661749175 Like, coding-agent acceptably fast. See later in the reply for the prefill at ~300 t/s but can go even faster for larger prefills.

comment 2w ago · link · parent

I bet we will find this is mostly that smaller models have issues to go against: 1. strong priors that are inverted here in the changes of the benchmarks. 2. underspecified specs for which hidden tests test things not clearly stated, but that very large models can guess knowing they are tested.

comment 3w ago · link · parent

Why this post is here in the front page? The Qwen vector steering performed was a very selective operation that interested only specific layers and weights set, it is non trivial to identify and fix. This is remarkable. Also Experiment 3: no access to forward pass, so why here this post says the contrary of what the paper shows and everybody upvoted it? I don't understand.

comment 3w ago · link · parent

As seen in Rick and Morty

comment 3w ago · link · parent

It is months that I find subtle bugs far more complicated than the most immediately findable issues in the report. Together with the rest of the world. So there must be something wrong with their AI usage.

comment 3w ago · link · parent

Imagine asking for a review before checking with the brutally powerful agents we have today all the low hanging fruits. And, at the point we are, you can likely go at incredible levels of automated bugs seeking and do the whole test in house.

comment 1mo ago · link · parent

"Why you bother about local AI? LOL with the $ you spend for <insert hardware here> you can buy 5 years of 20x account". Yeah. 5 years where you are told what you can do.

14.

The Commodore 64 hardware simulator: break chips and pins, see the results(github.com ↗)

238 points · by antirez · 1mo ago · 33 comments

comment 1mo ago · link · parent

Thanks, I believe the hate is also linked to my AI-positiveness... Funny enough GPT 6 Astra can easily produce a TLA+ model that can be verified under very real-world system model assumptions on the safety of RedLock, which is a paradox to the arguments I see in this thread and to the AI-rage.

comment 1mo ago · link · parent

Redis remained useful for 10+ years because of the design choices that were made, actually. Many other systems/companies failed since the idea, back then, was that a system needed to be linearizable or could not be useful at all. So what you point as a limit of my work was one of the better things I did in my career.

comment 1mo ago · link · parent

I hope he didn't really say this: it is an incredibly basic take. More or less like atomic bomb is hardware, it can be controlled.

comment 2mo ago · link · parent

Fun fact: in the 60s Italy was after the US and UK the county with the most advanced nuclear energy plants. These days still North Italy produces key parts of nuclear reactors in other countries.

comment 2mo ago · link · parent

Because of masked attention in LLMs, if you put the options before the body (the email to analyze), the transformer already knows what it needs to look for, and can use more tokens to create state to address that specific task (BERT has no mask in the attention, so tokens attend also to next tokens). You could also do a few examples in the system prompt to improve calibration.

Another trick that works is to repeat the question two times: "I'm repeating the task and labels for clarity: ..."

comment 2mo ago · link · parent

Anthropic is incredibly good at avoiding all the useless AI risks, while not doing anything serious about the real risks (that is: uncontrolled growth). I'm as pro-AI as I think that eventually it will remove suffering from humans, and will allow us to prosper more and help us with tons of problems we created. However the problem is not job loss or minors using AI (minors are fucked because of cell phones and social networks), the problem is avoiding extinction. For this position I was accused of AI psychosis multiple times, but I'm in good company (Hinton, for instance), so I bet some comment that trivializes this issue will surely reply to this one, but at this point it is important to see what everyone really believes. Anthropic only touches the surface of AI security, consistently.

comment 2mo ago · link · parent

That's perfectly wrong. Since strong coding AI, people venture into huge rewrites and other big changes that automatically make sense but otherwise would not.

comment 3mo ago · link · parent

Sol for low level programming is consistently better, can work alone for more time, and is faster. If you think Fable is so superior, you need to work with Sol ways more.

comment 3mo ago · link · parent

Yes. The article says that you need to read a lot to write well. You actually need to write a lot, and to read carefully, high quality, and potentially low quantity too (to use more time to write).

comment 3mo ago · link · parent

This is simply not true, even if it is commonly repeated among the folks that usually don't really write. Like how reading every source code that comes handy will not turn yourself into a great programmer, to be a good writer you need to: 1. Read selected books, and re-read good books more often then reading new stuff, to understand why they are good. 2. Read, from time to time, some bad book, and understand why it is bad. 3. And obviously you need to write a lot to become good at writing. And writing, in order to improve, is writing remembering, at the same time, the vibrations of the good authors you loved, and especially making the act of choosing of every word you put in the blank page, one after the other.

comment 3mo ago · link · parent

We need companies able to reimagine the devices we use every day in a more sharp way.

comment 3mo ago · link · parent

H3 is quite uncensored, but was not trained on p0rn, so it has no anatomy clues needed to generate that kind of stuff. For softer adult content it is reported to be fine on Reddit.

comment 3mo ago · link · parent

Does not matter much in this case. GPU bound.

comment 3mo ago · link · parent

This implementation is much faster on my M5 Max, like a few minutes for the same video, but on an M5 Max with 128GB, didn't test on M5 Pro. About memory, could be executed on 64GB with a few changes.

comment 3mo ago · link · parent

In the AMA Minimax said that H3 could support sparse attention, that would be a huge speedup! I wonder if there are any news on that. H3 is very cool. EDIT: testing a --sparse-attention optional mode based on what they said in the Reddit post.
12345
129